Message
This object represents a message.
Constructors
Properties
Optional. Signature of the post author for messages in channels, or the custom title of an anonymous group administrator
Optional. Service message: user boosted the chat
Optional. Unique identifier of the business connection from which the message was received. If non-empty, the message belongs to a chat of the corresponding business account that is independent from any potential bot chat which might share the same identifier.
Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption
Optional. 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.
Optional. Service message: chat background set
Optional. Service message: a chat was shared with the bot
Optional. The domain name of the website on which the user has logged in. More about Telegram Login: https://core.telegram.org/widgets/login
Optional. Service message: the chat photo was deleted
Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text
Optional. Information about the message that is being replied to, which may come from another chat or forum topic
Optional. Service message: forum topic closed
Optional. Service message: forum topic created
Optional. Service message: forum topic edited
Optional. Service message: forum topic reopened
Optional. Information about the original message for forwarded messages
Optional. Service message: the 'General' forum topic hidden
Optional. Service message: the 'General' forum topic unhidden
Optional. Service message: a giveaway without public winners was completed
Optional. Service message: a scheduled giveaway was created
Optional. A giveaway with public winners was completed
Optional. Service message: the group has been created
Optional. True, if the message media is covered by a spoiler animation
Optional. True, if the message can't be forwarded
Optional. True, if the message is a channel post that was automatically forwarded to the connected discussion group
Optional. True, if the message was sent by an implicit action, for example, as an away or a greeting business message, or as a scheduled message
Optional. True, if the message is sent to a forum topic
Optional. A member was removed from the group, information about them (this member may be the bot itself)
Optional. Options used for link preview generation for the message, if it is a text message and link preview options were changed
Optional. The unique identifier of a media message group this message belongs to
Optional. Service message: auto-delete timer settings changed in the chat
Optional. Unique identifier of a message thread to which the message belongs; for supergroups only
Optional. The supergroup has been migrated from a group with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.
Optional. The group has been migrated to a supergroup with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.
Optional. New members that were added to the group or supergroup and information about them (the bot itself may be one of these members)
Optional. A chat photo was change to this value
Optional. A chat title was changed to this value
Optional. Message contains paid media; information about the paid media
Optional. Telegram Passport data
Optional. 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.
Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live Location.
Optional. Message is a service message about a refunded payment, information about the payment. More about payments: https://core.telegram.org/bots/api#payments
Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons.
Optional. For replies in the same chat and message thread, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.
Optional. For replies to a story, the original story
Optional. If the sender of the message boosted the chat, the number of boosts added by the user
Optional. The bot that actually sent the message on behalf of the business account. Available only for outgoing messages sent on behalf of the connected business account.
Optional. Sender of the message, sent on behalf of a chat. For example, the channel itself for channel posts, the supergroup itself for messages from anonymous group administrators, the linked channel for messages automatically forwarded to the discussion group. For backward compatibility, the field from contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat.
Optional. True, if the caption must be shown above the message media
Optional. Message is a service message about a successful payment, information about the payment. More about payments: https://core.telegram.org/bots/api#payments
Optional. 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.
Optional. Service message: users were shared with the bot
Optional. Service message: video chat ended
Optional. Service message: new participants invited to a video chat
Optional. Service message: video chat scheduled
Optional. Service message: video chat started
Optional. Service message: data sent by a Web App
Optional. 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