Package-level declarations

Types

Link copied to clipboard
@Serializable
data class AnimationContent(val media: AnimationFile, val includedDocument: DocumentFile?, val text: String?, val textSources: TextSourcesList = emptyList()) : TextedMediaContent
Link copied to clipboard
Link copied to clipboard
@Serializable
data class AudioContent(val media: AudioFile, val text: String? = null, val textSources: TextSourcesList = emptyList()) : AudioMediaGroupContent
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable
data class ContactContent(val contact: Contact) : MessageContent
Link copied to clipboard
Link copied to clipboard
@Serializable
data class DiceContent(val dice: Dice) : MessageContent
Link copied to clipboard
Link copied to clipboard
@Serializable
data class DocumentContent(val media: DocumentFile, val text: String? = null, val textSources: TextSourcesList = emptyList()) : DocumentMediaGroupContent
Link copied to clipboard
Link copied to clipboard
@Serializable
data class GameContent(val game: Game) : MessageContent
Link copied to clipboard
Link copied to clipboard
@Serializable
data class InvoiceContent(val invoice: Invoice) : MessageContent
Link copied to clipboard
Link copied to clipboard
@Serializable(with = LocationContentSerializer::class)
data class LiveLocationContent(val location: LiveLocation) : LocationContent

LocationContent which represents content with LiveLocation. In case you are tracking this content throw message changes, may evolve to StaticLocationContent

Link copied to clipboard

MessageContent with location. This interface contains copy method for cases when you do not want to use some class casts for copying of content

Link copied to clipboard
@Serializer(forClass = LocationContent::class)
object LocationContentSerializer : KSerializer<LocationContent>

KSerializer for LocationContent

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable
data class PhotoContent(val mediaCollection: Photo, val text: String? = null, val textSources: TextSourcesList = emptyList()) : MediaCollectionContent<PhotoSize> , VisualMediaGroupContent
Link copied to clipboard
Link copied to clipboard
@Serializable
data class PollContent(val poll: Poll) : MessageContent
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Just a LocationContent with StaticLocation. It could be LiveLocationContent in previous time in case when somebody has sent LiveLocation in chat and then stop to broadcast location

Link copied to clipboard
@Serializable
data class StickerContent(val media: Sticker) : MediaContent
Link copied to clipboard
Link copied to clipboard
@Serializable
data class TextContent(val text: String, val textSources: TextSourcesList = emptyList()) : MessageContent, TextedInput
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable
data class VenueContent(val venue: Venue) : MessageContent
Link copied to clipboard
Link copied to clipboard
@Serializable
data class VideoContent(val media: VideoFile, val text: String? = null, val textSources: TextSourcesList = emptyList()) : VisualMediaGroupContent
Link copied to clipboard
Link copied to clipboard
@Serializable
data class VideoNoteContent(val media: VideoNoteFile) : MediaContent
Link copied to clipboard
Link copied to clipboard
@Serializable
data class VoiceContent(val media: VoiceFile, val text: String? = null, val textSources: TextSourcesList = emptyList()) : TextedMediaContent
Link copied to clipboard

Functions

Link copied to clipboard