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

Types

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

KSerializer for LocationContent

PollContent
Link copied to clipboard
common
data class PollContent(poll: Poll) : MessageContent
StaticLocationContent
Link copied to clipboard
common
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
common
data class TextContent(text: String, textSources: TextSourcesList) : MessageContent, TextedInput
VenueContent
Link copied to clipboard
common
data class VenueContent(venue: Venue) : MessageContent