This object represents a message.
text: string
For text messages, the actual UTF-8 text of the message
entities: MessageEntity[]
For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text
Message is an animation, information about the animation. For backward compatibility, when this field is set, the document field will also be set
video_note: VideoNote
Message is a video note, information about the video message
Message is a venue, information about the venue. For backward compatibility, when this field is set, the location field will also be set
paid_media: PaidMediaInfo
Message contains paid media; information about the paid media
checklist_tasks_done: ChecklistTasksDone
Service message: some tasks in a checklist were marked as done or not done
checklist_tasks_added: ChecklistTasksAdded
Service message: tasks were added to a checklist
suggested_post_info: SuggestedPostInfo
Information about suggested post parameters if the message is a suggested post in a channel direct messages chat. If the message is an approved or declined suggested post, then it can't be edited.
suggested_post_approved: SuggestedPostApproved
Service message: a suggested post was approved
Service message: approval of a suggested post has failed
suggested_post_declined: SuggestedPostDeclined
Service message: a suggested post was declined
suggested_post_paid: SuggestedPostPaid
Service message: payment for a suggested post was received
suggested_post_refunded: SuggestedPostRefunded
Service message: payment for a suggested post was refunded
new_chat_members: User[]
New members that were added to the group or supergroup and information about them (the bot itself may be one of these members)
left_chat_member: User
A member was removed from the group, information about them (this member may be the bot itself)
new_chat_title: string
A chat title was changed to this value
new_chat_photo: PhotoSize[]
A chat photo was change to this value
delete_chat_photo: true
Service message: the chat photo was deleted
group_chat_created: true
Service message: the group has been created
supergroup_chat_created: true
Service message: the supergroup has been created. This field can't be received in a message coming through updates, because bot can't be a member of a supergroup when it is created. It can only be found in reply_to_message if someone replies to a very first message in a directly created supergroup.
channel_chat_created: true
Service message: the channel has been created. This field can't be received in a message coming through updates, because bot can't be a member of a channel when it is created. It can only be found in reply_to_message if someone replies to a very first message in a channel.
Service message: auto-delete timer settings changed in the chat
migrate_to_chat_id: number
The group has been migrated to a supergroup with the specified identifier.
migrate_from_chat_id: number
The supergroup has been migrated from a group with the specified identifier.
pinned_message: MaybeInaccessibleMessage
Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.
Message is an invoice for a payment, information about the invoice. More about payments »
successful_payment: SuccessfulPayment
Message is a service message about a successful payment, information about the payment. More about payments »
refunded_payment: RefundedPayment
Message is a service message about a refunded payment, information about the payment. More about payments »
connected_website: string
The domain name of the website on which the user has logged in. More about Telegram Login »
write_access_allowed: WriteAccessAllowed
Service message: the user allowed the bot to write messages after adding it to the attachment or side menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess
passport_data: PassportData
Telegram Passport data
Service message. A user in the chat triggered another user's proximity alert while sharing Live Location.
boost_added: ChatBoostAdded
Service message: user boosted the chat
chat_background_set: ChatBackground
forum_topic_created: ForumTopicCreated
Service message: forum topic created
forum_topic_edited: ForumTopicEdited
Service message: forum topic edited
forum_topic_closed: ForumTopicClosed
Service message: forum topic closed
forum_topic_reopened: ForumTopicReopened
Service message: forum topic reopened
giveaway_created: GiveawayCreated
Service message: a scheduled giveaway was created
giveaway_winners: GiveawayWinners
A giveaway with public winners was completed
giveaway_completed: GiveawayCompleted
Service message: a giveaway without public winners was completed
gift_upgrade_sent: GiftInfo
Service message: upgrade of a gift was purchased after the gift was sent
unique_gift: UniqueGiftInfo
Service message: a unique gift was sent or received
Service message: the price for paid messages has changed in the chat
Service message: the price for paid messages in the corresponding direct messages chat of a channel has changed
video_chat_scheduled: VideoChatScheduled
Service message: video chat scheduled
video_chat_started: VideoChatStarted
Service message: video chat started
video_chat_ended: VideoChatEnded
Service message: video chat ended
Service message: new participants invited to a video chat
web_app_data: WebAppData
Service message: data sent by a Web App