Models the Telegram 'videoChatEnded' update, containing the duration of the ended video chat. Use it when processing incoming video chat termination updates.
// Source: https://github.com/bot4s/telegram | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package com.bot4s.telegram.models
import io.circe.{ Decoder, Encoder }
import io.circe.generic.semiauto.deriveDecoder
import io.circe.generic.extras.semiauto.deriveConfiguredEncoder
import io.circe.generic.extras.Configuration
/**
* This object represents a service message about a video chat ended in the chat.
*
* @param duration
*/
case class VideoChatEnded(
duration: Int
)
object VideoChatEnded {
implicit val customConfig: Configuration = Configuration.default.withSnakeCaseMemberNames
implicit val circeDecoder: Decoder[VideoChatEnded] = deriveDecoder[VideoChatEnded
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key