Message Class
extends BaseRepresents a message
Properties
animationaudioauthorSignatureboostAddedbusinessConnectionIdcaptioncaptionEntitieschannelChatCreatedchatchatBackgroundSetchatSharedclientconnectedWebsitecontactdatedeleteChatPhotodicedocumenteditDateeffectIdentitiesexternalReplyforumTopicClosedforumTopicCreatedforumTopicEditedforumTopicReopenedforwardOrigingamegeneralForumTopicHiddengeneralForumTopicUnhiddengiveawaygiveawayCompletedgiveawayCreatedgiveawayWinnersgroupChatCreatedhasMediaSpoilerhasProtectedContentidinvoiceisAutomaticForwardisFromOfflineisTopicMessageleftChatMemberlinkPreviewOptionslocationmediaGroupIdmessageAutoDeleteTimerChangedmigrateFromChatIdmigrateToChatIdnewChatMembersnewChatPhotonewChatTitlepaidMediapassportDataphotopinnedMessagepollproximityAlertTriggeredquotereplyMarkupreplyToMessagereplyToStorysendersenderBoostCountsenderBusinessBotsenderChatshowCaptionAboveMediastickerstorysuccessfulPaymentsuperGroupChatCreatedtextthreadIduserSharedvenueviaBotvideovideoChatEndedvideoChatParticipantsInvitedvideoChatScheduledvideoChatStartedvideoNotevoicewebAppDatawriteAccessAllowedProperties
animation Animation
Message is an animation, information about the animation. For backward compatibility, when this field is set, the
See the codeauthorSignature string
Signature of the post author for messages in channels, or the custom title of an anonymous group administrator
See the codeboostAdded ChatBoostAdded
See the codebusinessConnectionId string
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.
See the codechannelChatCreated boolean
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 supergroup when it is created. It can only be found in
See the codechatBackgroundSet any
See the codeclient Client
See the codeentities
For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text
See the codeexternalReply ExternalReplyInfo
Information about the message that is being replied to, which may come from another chat or forum topic
See the codeforumTopicClosed ForumTopicClosed
See the codeforumTopicCreated ForumTopicCreated
See the codeforumTopicEdited ForumTopicEdited
See the codeforumTopicReopened ForumTopicReopened
See the codeforwardOrigin MessageOrigin
Information about the original message for forwarded messages
See the codegeneralForumTopicHidden GeneralForumTopicHidden
See the codegiveaway Giveaway
See the codegiveawayCompleted GiveawayCompleted
See the codegiveawayCreated GiveawayCreated
See the codegiveawayWinners GiveawayWinners
See the codeisAutomaticForward boolean
Whether the message is a channel post that was automatically forwarded to the connected discussion group
See the codeisFromOffline boolean
Whether the message was sent by an implicit action, for example, as an away or a greeting business message, or as a scheduled message
See the codeleftChatMember
Service message. A member was removed from the group, information about them (this member may be the bot itself)
See the codelinkPreviewOptions LinkPreviewOptions
Options used for link preview generation for the message, if it is a text message and link preview options were changed
See the codemediaGroupId string
The unique identifier of a media message group this message belongs to
See the codemessageAutoDeleteTimerChanged MessageAutoDeleteTimerChanged
See the codemigrateFromChatId number
See the codemigrateToChatId number
See the codenewChatMembers
Service message. New members that were added to the group or supergroup and information about them (the bot itself may be one of these members)
See the codepassportData any
See the codeproximityAlertTriggered ProximityAlertTriggered
See the codequote TextQuote
For replies that quote part of the original message, the quoted part of the message
See the codereplyMarkup InlineKeyboardMarkup
See the codereplyToMessage Message
For replies in the same chat and message thread, the original message. Note that the Message in this field will not contain further
See the codesender User
Sender of the message; empty for messages sent to channels. For backward compatibility, the field contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat.
See the codesenderBoostCount number
If the sender of the message boosted the chat, the number of boosts added by the user
See the codesenderBusinessBot User
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.
See the codesenderChat Chat
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
See the codeshowCaptionAboveMedia boolean
*true*, if the caption must be shown above the message media
See the codesuccessfulPayment SuccessfulPayment
See the codesuperGroupChatCreated boolean
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
See the codethreadId number
Unique identifier of a message thread to which the message belongs; for supergroups only
See the codevenue Venue
Message is a venue, information about the venue. For backward compatibility, when this property is set, the
See the code