Message

data class Message(message_id: Long, from: User?, sender_chat: Chat?, date: Long, chat: Chat, forward_from: User?, forward_from_chat: Chat?, forward_from_message_id: Long?, forward_signature: String?, forward_sender_name: String?, forward_date: Long?, reply_to_message: Message?, via_bot: User?, edit_date: Long?, media_group_id: String?, author_signature: String?, text: String?, entities: List<MessageEntity>?, animation: Animation?, audio: Audio?, document: Document?, photo: List<PhotoSize>?, sticker: Sticker?, video: Video?, video_note: VideoNote?, voice: Voice?, caption: String?, caption_entities: List<MessageEntity>?, contact: Contact?, dice: Dice?, game: Game?, poll: Poll?, venue: Venue?, location: Location?, new_chat_members: List<User>?, left_chat_member: User?, new_chat_title: String?, new_chat_photo: List<PhotoSize>?, delete_chat_photo: Boolean?, group_chat_created: Boolean?, supergroup_chat_created: Boolean?, channel_chat_created: Boolean?, message_auto_delete_timer_changed: MessageAutoDeleteTimerChanged?, migrate_to_chat_id: Long?, migrate_from_chat_id: Long?, pinned_message: Message?, invoice: Invoice?, successful_payment: SuccessfulPayment?, connected_website: String?, passport_data: PassportData?, proximity_alert_triggered: ProximityAlertTriggered?, voice_chat_scheduled: VoiceChatScheduled?, voice_chat_started: VoiceChatStarted?, voice_chat_ended: VoiceChatEnded?, voice_chat_participants_invited: VoiceChatParticipantsInvited?, reply_markup: InlineKeyboardMarkup?) : TelegramModel

This object represents a message.

Constructors

Message
Link copied to clipboard
fun Message(message_id: Long, from: User? = null, sender_chat: Chat? = null, date: Long, chat: Chat, forward_from: User? = null, forward_from_chat: Chat? = null, forward_from_message_id: Long? = null, forward_signature: String? = null, forward_sender_name: String? = null, forward_date: Long? = null, reply_to_message: Message? = null, via_bot: User? = null, edit_date: Long? = null, media_group_id: String? = null, author_signature: String? = null, text: String? = null, entities: List<MessageEntity>? = null, animation: Animation? = null, audio: Audio? = null, document: Document? = null, photo: List<PhotoSize>? = null, sticker: Sticker? = null, video: Video? = null, video_note: VideoNote? = null, voice: Voice? = null, caption: String? = null, caption_entities: List<MessageEntity>? = null, contact: Contact? = null, dice: Dice? = null, game: Game? = null, poll: Poll? = null, venue: Venue? = null, location: Location? = null, new_chat_members: List<User>? = null, left_chat_member: User? = null, new_chat_title: String? = null, new_chat_photo: List<PhotoSize>? = null, delete_chat_photo: Boolean? = null, group_chat_created: Boolean? = null, supergroup_chat_created: Boolean? = null, channel_chat_created: Boolean? = null, message_auto_delete_timer_changed: MessageAutoDeleteTimerChanged? = null, migrate_to_chat_id: Long? = null, migrate_from_chat_id: Long? = null, pinned_message: Message? = null, invoice: Invoice? = null, successful_payment: SuccessfulPayment? = null, connected_website: String? = null, passport_data: PassportData? = null, proximity_alert_triggered: ProximityAlertTriggered? = null, voice_chat_scheduled: VoiceChatScheduled? = null, voice_chat_started: VoiceChatStarted? = null, voice_chat_ended: VoiceChatEnded? = null, voice_chat_participants_invited: VoiceChatParticipantsInvited? = null, reply_markup: InlineKeyboardMarkup? = null)
Creates a Message.

Properties

animation
Link copied to clipboard
val animation: Animation? = null
Optional.
audio
Link copied to clipboard
val audio: Audio? = null
Optional.
author_signature
Link copied to clipboard
val author_signature: String? = null
Optional.
caption
Link copied to clipboard
val caption: String? = null
Optional.
caption_entities
Link copied to clipboard
val caption_entities: List<MessageEntity>? = null
Optional.
channel_chat_created
Link copied to clipboard
val channel_chat_created: Boolean? = null
Optional.
chat
Link copied to clipboard
val chat: Chat
Conversation the message belongs to
connected_website
Link copied to clipboard
val connected_website: String? = null
Optional.
contact
Link copied to clipboard
val contact: Contact? = null
Optional.
date
Link copied to clipboard
val date: Long
Date the message was sent in Unix time
delete_chat_photo
Link copied to clipboard
val delete_chat_photo: Boolean? = null
Optional.
dice
Link copied to clipboard
val dice: Dice? = null
Optional.
document
Link copied to clipboard
val document: Document? = null
Optional.
edit_date
Link copied to clipboard
val edit_date: Long? = null
Optional.
entities
Link copied to clipboard
val entities: List<MessageEntity>? = null
Optional.
forward_date
Link copied to clipboard
val forward_date: Long? = null
Optional.
forward_from
Link copied to clipboard
val forward_from: User? = null
Optional.
forward_from_chat
Link copied to clipboard
val forward_from_chat: Chat? = null
Optional.
forward_from_message_id
Link copied to clipboard
val forward_from_message_id: Long? = null
Optional.
forward_sender_name
Link copied to clipboard
val forward_sender_name: String? = null
Optional.
forward_signature
Link copied to clipboard
val forward_signature: String? = null
Optional.
from
Link copied to clipboard
val from: User? = null
Optional.
game
Link copied to clipboard
val game: Game? = null
Optional.
group_chat_created
Link copied to clipboard
val group_chat_created: Boolean? = null
Optional.
invoice
Link copied to clipboard
val invoice: Invoice? = null
Optional.
left_chat_member
Link copied to clipboard
val left_chat_member: User? = null
Optional.
location
Link copied to clipboard
val location: Location? = null
Optional.
media_group_id
Link copied to clipboard
val media_group_id: String? = null
Optional.
message_auto_delete_timer_changed
Link copied to clipboard
Optional.
message_id
Link copied to clipboard
val message_id: Long
Unique message identifier inside this chat
migrate_from_chat_id
Link copied to clipboard
val migrate_from_chat_id: Long? = null
Optional.
migrate_to_chat_id
Link copied to clipboard
val migrate_to_chat_id: Long? = null
Optional.
new_chat_members
Link copied to clipboard
val new_chat_members: List<User>? = null
Optional.
new_chat_photo
Link copied to clipboard
val new_chat_photo: List<PhotoSize>? = null
Optional.
new_chat_title
Link copied to clipboard
val new_chat_title: String? = null
Optional.
passport_data
Link copied to clipboard
val passport_data: PassportData? = null
Optional.
photo
Link copied to clipboard
val photo: List<PhotoSize>? = null
Optional.
pinned_message
Link copied to clipboard
val pinned_message: Message? = null
Optional.
poll
Link copied to clipboard
val poll: Poll? = null
Optional.
proximity_alert_triggered
Link copied to clipboard
val proximity_alert_triggered: ProximityAlertTriggered? = null
Optional.
reply_markup
Link copied to clipboard
val reply_markup: InlineKeyboardMarkup? = null
Optional.
reply_to_message
Link copied to clipboard
val reply_to_message: Message? = null
Optional.
sender_chat
Link copied to clipboard
val sender_chat: Chat? = null
Optional.
sticker
Link copied to clipboard
val sticker: Sticker? = null
Optional.
successful_payment
Link copied to clipboard
val successful_payment: SuccessfulPayment? = null
Optional.
supergroup_chat_created
Link copied to clipboard
val supergroup_chat_created: Boolean? = null
Optional.
text
Link copied to clipboard
val text: String? = null
Optional.
venue
Link copied to clipboard
val venue: Venue? = null
Optional.
via_bot
Link copied to clipboard
val via_bot: User? = null
Optional.
video
Link copied to clipboard
val video: Video? = null
Optional.
video_note
Link copied to clipboard
val video_note: VideoNote? = null
Optional.
voice
Link copied to clipboard
val voice: Voice? = null
Optional.
voice_chat_ended
Link copied to clipboard
val voice_chat_ended: VoiceChatEnded? = null
Optional.
voice_chat_participants_invited
Link copied to clipboard
val voice_chat_participants_invited: VoiceChatParticipantsInvited? = null
Optional.
voice_chat_scheduled
Link copied to clipboard
val voice_chat_scheduled: VoiceChatScheduled? = null
Optional.
voice_chat_started
Link copied to clipboard
val voice_chat_started: VoiceChatStarted? = null
Optional.