# dev.inmo.tgbotapi.types.message.content

docs

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

## Types

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

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

LocationContent
Link copied to clipboard
interface LocationContent : MessageContent
Content 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

LocationContentSerializer
Link copied to clipboard
object LocationContentSerializer : KSerializer< LocationContent >
Content copied to clipboard

KSerializer for LocationContent

MediaCollectionContent
Link copied to clipboard
interface MediaCollectionContent < T : TelegramMediaFile > : MessageContent, MediaContent
Content copied to clipboard
MediaContent
Link copied to clipboard
interface MediaContent : MessageContent
Content copied to clipboard
MediaGroupContent
Link copied to clipboard
interface MediaGroupContent : TextedMediaContent
Content copied to clipboard
MessageContent
Link copied to clipboard
interface MessageContent : ResendableContent
Content copied to clipboard
PhotoContent
Link copied to clipboard
data class PhotoContent ( val mediaCollection: Photo , val text: String ? = null, val textSources: TextSourcesList = emptyList()) : MediaCollectionContent < PhotoSize > , VisualMediaGroupContent
Content copied to clipboard
PollContent
Link copied to clipboard
data class PollContent (val poll: Poll ) : MessageContent
Content copied to clipboard
ResendableContent
Link copied to clipboard
interface ResendableContent
Content copied to clipboard
StaticLocationContent
Link copied to clipboard
data class StaticLocationContent (val location: StaticLocation ) : LocationContent
Content 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

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

## Functions

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