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

Types

Link copied to clipboard
data class ContactContent(contact: Contact) : MessageContent
Link copied to clipboard
data class DiceContent(dice: Dice) : MessageContent
Link copied to clipboard
data class GameContent(game: Game) : MessageContent
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

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
data class PollContent(poll: Poll) : MessageContent
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

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