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
typealias AnimationMessage = CommonMessage<AnimationContent>
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
typealias AudioMediaGroupMessage = CommonMessage<AudioMediaGroupContent>
Link copied to clipboard
typealias AudioMessage = CommonMessage<AudioContent>
Link copied to clipboard
data class ContactContent(val contact: Contact) : MessageContent
Link copied to clipboard
typealias ContactMessage = CommonMessage<ContactContent>
Link copied to clipboard
data class DiceContent(val dice: Dice) : MessageContent
Link copied to clipboard
typealias DiceMessage = CommonMessage<DiceContent>
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
typealias DocumentMediaGroupMessage = CommonMessage<DocumentMediaGroupContent>
Link copied to clipboard
typealias DocumentMessage = CommonMessage<DocumentContent>
Link copied to clipboard
data class GameContent(val game: Game) : MessageContent
Link copied to clipboard
typealias GameMessage = CommonMessage<GameContent>
Link copied to clipboard
data class InvoiceContent(val invoice: Invoice) : MessageContent
Link copied to clipboard
typealias InvoiceMessage = CommonMessage<InvoiceContent>
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
typealias LiveLocationMessage = CommonMessage<LiveLocationContent>
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
typealias LocationMessage = CommonMessage<LocationContent>
Link copied to clipboard
interface MediaCollectionContent<T : TelegramMediaFile> : MessageContent, MediaContent
Link copied to clipboard
typealias MediaCollectionMessage<T> = CommonMessage<MediaCollectionContent<T>>
Link copied to clipboard
interface MediaContent : MessageContent
Link copied to clipboard
interface MediaGroupContent : TextedMediaContent
Link copied to clipboard
typealias MediaGroupMessage = CommonMessage<MediaGroupContent>
Link copied to clipboard
typealias MediaMessage = CommonMessage<MediaContent>
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
typealias PhotoMessage = CommonMessage<PhotoContent>
Link copied to clipboard
data class PollContent(val poll: Poll) : MessageContent
Link copied to clipboard
typealias PollMessage = CommonMessage<PollContent>
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
typealias StaticLocationMessage = CommonMessage<StaticLocationContent>
Link copied to clipboard
data class StickerContent(val media: Sticker) : MediaContent
Link copied to clipboard
typealias StickerMessage = CommonMessage<StickerContent>
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
typealias TextedMediaMessage = CommonMessage<TextedMediaContent>
Link copied to clipboard
typealias TextMessage = CommonMessage<TextContent>
Link copied to clipboard
data class VenueContent(val venue: Venue) : MessageContent
Link copied to clipboard
typealias VenueMessage = CommonMessage<VenueContent>
Link copied to clipboard
data class VideoContent(    val media: VideoFile,     val text: String? = null,     val textSources: TextSourcesList = emptyList()) : VisualMediaGroupContent
Link copied to clipboard
typealias VideoMessage = CommonMessage<VideoContent>
Link copied to clipboard
data class VideoNoteContent(val media: VideoNoteFile) : MediaContent
Link copied to clipboard
typealias VideoNoteMessage = CommonMessage<VideoNoteContent>
Link copied to clipboard
interface VisualMediaGroupContent : MediaGroupContent
Link copied to clipboard
typealias VisualMediaGroupMessage = CommonMessage<VisualMediaGroupContent>
Link copied to clipboard
data class VoiceContent(    val media: VoiceFile,     val text: String? = null,     val textSources: TextSourcesList = emptyList()) : TextedMediaContent
Link copied to clipboard
typealias VoiceMessage = CommonMessage<VoiceContent>

Functions

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