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(), val spoilered: Boolean = false, val quote: TextQuote? = null, val showCaptionAboveMedia: Boolean = false) : TextedMediaContent, SpoilerableMediaContent, WithCustomizedCaptionMediaContent
Link copied to clipboard
Link copied to clipboard
@Serializable
data class AudioContent(val media: AudioFile, val text: String? = null, val textSources: TextSourcesList = emptyList(), val quote: TextQuote? = null) : AudioMediaGroupPartContent
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(), val quote: TextQuote? = null) : DocumentMediaGroupPartContent
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 GiveawayContent(chat: Chat, messageId: MessageId, val giveaway: Giveaway) : MessageContent
Link copied to clipboard
@Serializable
data class GiveawayPublicResultsContent(val giveaway: GiveawayPublicResults) : MessageContent
Link copied to clipboard
@Serializable
data class InvoiceContent(val invoice: Invoice) : MessageContent
Link copied to clipboard
Link copied to clipboard
@Serializable
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
@Serializable(with = LocationContentSerializer::class)
sealed interface LocationContent : MessageContent

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

KSerializer for LocationContent

Link copied to clipboard
Link copied to clipboard
sealed interface MediaContent : MessageContent
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable
sealed interface MessageContent : ResendableContent
Link copied to clipboard
@Serializable
data class PaidMediaInfoContent(val paidMediaInfo: PaidMediaInfo, val text: String? = null, val textSources: TextSourcesList = emptyList(), val quote: TextQuote? = null, val showCaptionAboveMedia: Boolean = false) : MessageContent, TextedContent, WithCustomizableCaption, WithOptionalQuoteInfo
Link copied to clipboard
@Serializable
data class PhotoContent(val mediaCollection: PhotoFile, val text: String? = null, val textSources: TextSourcesList = emptyList(), val spoilered: Boolean = false, val quote: TextQuote? = null, val showCaptionAboveMedia: Boolean = false) : MediaCollectionContent<PhotoSize> , VisualMediaGroupPartContent, WithOptionalQuoteInfo
Link copied to clipboard
Link copied to clipboard
@Serializable
data class PollContent(val poll: Poll) : MessageContent
Link copied to clipboard
Link copied to clipboard
sealed interface ResendableContent
Link copied to clipboard
Link copied to clipboard
@Serializable
data class StaticLocationContent(val location: StaticLocation) : LocationContent

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 StoryContent(chat: Chat, messageId: MessageId, val story: Story) : MessageContent
Link copied to clipboard
Link copied to clipboard
@Serializable
data class TextContent(val text: String, val textSources: TextSourcesList = emptyList(), val linkPreviewOptions: LinkPreviewOptions? = null, val quote: TextQuote? = null) : TextedContent, WithOptionalQuoteInfo
Link copied to clipboard

All the subtypes of this content will have text and textSources fields

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(), val spoilered: Boolean = false, val quote: TextQuote? = null, val showCaptionAboveMedia: Boolean = false) : VisualMediaGroupPartContent
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(), val quote: TextQuote? = null) : TextedMediaContent
Link copied to clipboard

Functions

Link copied to clipboard