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

Types

ContactContent
Link copied to clipboard
data class ContactContent(contact: Contact) : MessageContent
DiceContent
Link copied to clipboard
data class DiceContent(dice: Dice) : MessageContent
GameContent
Link copied to clipboard
data class GameContent(game: Game) : MessageContent
LiveLocationContent
Link copied to clipboard
data class LiveLocationContent(location: LiveLocation) : LocationContent

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

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>

KSerializer for LocationContent

PollContent
Link copied to clipboard
data class PollContent(poll: Poll) : MessageContent
StaticLocationContent
Link copied to clipboard
data class StaticLocationContent(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

TextContent
Link copied to clipboard
data class TextContent(text: String, textSources: TextSourcesList) : MessageContent, TextedInput
VenueContent
Link copied to clipboard
data class VenueContent(venue: Venue) : MessageContent