Package dev.inmo.tgbotapi.types.message.content

Types

Link copied to clipboard
data class AnimationContent(    val media: AnimationFile,     val includedDocument: DocumentFile?,     val text: String?,     val textSources: TextSourcesList = emptyList()) : TextedMediaContent
Link copied to clipboard
data class AudioContent(    val media: AudioFile,     val text: String? = null,     val textSources: TextSourcesList = emptyList()) : AudioMediaGroupContent
Link copied to clipboard
interface AudioMediaGroupContent : MediaGroupContent
Link copied to clipboard
data class ContactContent(val contact: Contact) : MessageContent
Link copied to clipboard
data class DiceContent(val dice: Dice) : MessageContent
Link copied to clipboard
data class DocumentContent(    val media: DocumentFile,     val text: String? = null,     val textSources: TextSourcesList = emptyList()) : DocumentMediaGroupContent
Link copied to clipboard
interface DocumentMediaGroupContent : MediaGroupContent
Link copied to clipboard
data class GameContent(val game: Game) : MessageContent
Link copied to clipboard
data class InvoiceContent(val invoice: Invoice) : MessageContent
Link copied to clipboard
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
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
object LocationContentSerializer : KSerializer<LocationContent>

KSerializer for LocationContent

Link copied to clipboard
interface MediaCollectionContent<T : TelegramMediaFile> : MessageContent, MediaContent
Link copied to clipboard
interface MediaContent : MessageContent
Link copied to clipboard
interface MediaGroupContent : TextedMediaContent
Link copied to clipboard
interface MessageContent : ResendableContent
Link copied to clipboard
data class PhotoContent(    val mediaCollection: Photo,     val text: String? = null,     val textSources: TextSourcesList = emptyList()) : MediaCollectionContent<PhotoSize> , VisualMediaGroupContent
Link copied to clipboard
data class PollContent(val poll: Poll) : MessageContent
Link copied to clipboard
interface ResendableContent
Link copied to clipboard
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
data class StickerContent(val media: Sticker) : MediaContent
Link copied to clipboard
data class TextContent(val text: String, val textSources: TextSourcesList = emptyList()) : MessageContent, TextedInput
Link copied to clipboard
interface TextedMediaContent : MediaContent, TextedInput
Link copied to clipboard
data class VenueContent(val venue: Venue) : MessageContent
Link copied to clipboard
data class VideoContent(    val media: VideoFile,     val text: String? = null,     val textSources: TextSourcesList = emptyList()) : VisualMediaGroupContent
Link copied to clipboard
data class VideoNoteContent(val media: VideoNoteFile) : MediaContent
Link copied to clipboard
interface VisualMediaGroupContent : MediaGroupContent
Link copied to clipboard
data class VoiceContent(    val media: VoiceFile,     val text: String? = null,     val textSources: TextSourcesList = emptyList()) : TextedMediaContent

Functions

Link copied to clipboard
inline fun MediaContent.asDocumentContent(): DocumentContent