This object represents a message. https://core.telegram.org/bots/api#message.
std::int64_t migrateToChatId
Optional. The group has been migrated to a supergroup with the specified identifier....
bool channelChatCreated
Optional. Service message: the channel has been created. This field can't be received in a message co...
bool hasMediaSpoiler
Optional. True, if the message media is covered by a spoiler animation.
Ptr< Message > pinnedMessage
Optional. Specified message was pinned. Note that the Message object in this field will not contain f...
std::vector< Ptr< MessageEntity > > entities
Optional. For text messages, special entities like usernames, URLs, bot commands, etc....
Ptr< VideoChatStarted > videoChatStarted
Optional. Service message: video chat started.
Ptr< Chat > forwardFromChat
Optional. For messages forwarded from channels or from anonymous administrators, information about th...
Ptr< Sticker > sticker
Optional. Message is a sticker, information about the sticker.
std::vector< Ptr< MessageEntity > > captionEntities
Optional. For messages with a caption, special entities like usernames, URLs, bot commands,...
std::string connectedWebsite
Optional. The domain name of the website on which the user has logged in. about Telegram Login » http...
Message(const nl::json &json)
std::int32_t messageThreadId
Optional. Unique identifier of a message thread to which the message belongs; for supergroups only.
std::int32_t messageId
Unique message identifier inside this chat.
Ptr< User > leftChatMember
Optional. A member was removed from the group, information about them (this member may be the bot its...
bool isTopicMessage
Optional. True, if the message is sent to a forum topic.
std::vector< Ptr< PhotoSize > > photo
Optional. Message is a photo, available sizes of the photo.
Ptr< Story > story
Optional. Message is a forwarded story.
std::string authorSignature
Optional. Signature of the post author for messages in channels, or the custom title of an anonymous ...
std::string text
Optional. For text messages, the actual UTF-8 text of the message.
Ptr< Animation > animation
Optional. Message is an animation, information about the animation. For backward compatibility,...
Ptr< ForumTopicClosed > forumTopicClosed
Optional. Service message: forum topic closed.
Ptr< ForumTopicCreated > forumTopicCreated
Optional. Service message: forum topic created.
Ptr< SuccessfulPayment > successfulPayment
Optional. Message is a service message about a successful payment, information about the payment....
Ptr< User > forwardFrom
Optional. For forwarded messages, sender of the original message.
Ptr< User > viaBot
Optional. Bot through which the message was sent.
Ptr< Chat > senderChat
Optional. Sender of the message, sent on behalf of a chat. For example, the channel itself for channe...
std::string mediaGroupId
Optional. The unique identifier of a media message group this message belongs to.
Ptr< VideoChatScheduled > videoChatScheduled
Optional. Service message: video chat scheduled.
std::string newChatTitle
Optional. A chat title was changed to this value.
std::string forwardSignature
Optional. For forwarded messages that were originally sent in channels or by an anonymous chat admini...
bool supergroupChatCreated
Optional. Service message: the supergroup has been created. This field can't be received in a message...
Ptr< VideoChatEnded > videoChatEnded
Optional. Service message: video chat ended.
Ptr< GeneralForumTopicHidden > generalForumTopicHidden
Optional. Service message: the 'General' forum topic hidden.
std::time_t forwardDate
Optional. For forwarded messages, date the original message was sent in Unix time.
Ptr< Location > location
Optional. Message is a shared location, information about the location.
Ptr< Document > document
Optional. Message is a general file, information about the file.
Ptr< Invoice > invoice
Optional. Message is an invoice for a payment, information about the invoice. about payments » https:...
Ptr< ChatShared > chatShared
Optional. Service message: a chat was shared with the bot.
Ptr< UserShared > userShared
Optional. Service message: a user was shared with the bot.
Ptr< Video > video
Optional. Message is a video, information about the video.
std::int32_t forwardFromMessageId
Optional. For messages forwarded from channels, identifier of the original message in the channel.
Ptr< InlineKeyboardMarkup > replyMarkup
Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url ...
std::string caption
Optional. Caption for the animation, audio, document, photo, video or voice.
Ptr< Message > replyToMessage
Optional. For replies, the original message. Note that the Message object in this field will not cont...
Ptr< ForumTopicEdited > forumTopicEdited
Optional. Service message: forum topic edited.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
Ptr< WebAppData > webAppData
Optional. Service message: data sent by a Web App.
std::int64_t migrateFromChatId
Optional. The supergroup has been migrated from a group with the specified identifier....
bool isAutomaticForward
Optional. True, if the message is a channel post that was automatically forwarded to the connected di...
Ptr< PassportData > passportData
Optional. Telegram Passport data.
std::time_t editDate
Optional. Date the message was last edited in Unix time.
Ptr< Contact > contact
Optional. Message is a shared contact, information about the contact.
Ptr< ProximityAlertTriggered > proximityAlertTriggered
Optional. Service message. A user in the chat triggered another user's proximity alert while sharing ...
std::string forwardSenderName
Optional. Sender's name for messages forwarded from users who disallow adding a link to their account...
Ptr< Dice > dice
Optional. Message is a dice with random value.
Ptr< MessageAutoDeleteTimerChanged > messageAutoDeleteTimerChanged
Optional. Service message: auto-delete timer settings changed in the chat.
Ptr< Voice > voice
Optional. Message is a voice message, information about the file.
bool groupChatCreated
Optional. Service message: the group has been created.
Ptr< User > from
Optional. Sender of the message; empty for messages sent to channels. For backward compatibility,...
Ptr< Poll > poll
Optional. Message is a native poll, information about the poll.
Ptr< VideoChatParticipantsInvited > videoChatParticipantsInvited
Optional. Service message: new participants invited to a video chat.
Ptr< WriteAccessAllowed > writeAccessAllowed
Optional. Service message: the user allowed the bot to write messages after adding it to the attachme...
Ptr< PhotoSize > newChatPhoto
Optional. A chat photo was change to this value.
Ptr< Venue > venue
Optional. Message is a venue, information about the venue. For backward compatibility,...
bool hasProtectedContent
Optional. True, if the message can't be forwarded.
Ptr< Audio > audio
Optional. Message is an audio file, information about the file.
Ptr< VideoNote > videoNote
Optional. Message is a video note, information about the video message.
nl::json toJson() const
Serializes this object to JSON.
bool deleteChatPhoto
Optional. Service message: the chat photo was deleted.
Ptr< Chat > chat
Conversation the message belongs to.
Ptr< ForumTopicReopened > forumTopicReopened
Optional. Service message: forum topic reopened.
Ptr< Game > game
Optional. Message is a game, information about the game. about games » https://core....
std::time_t date
Date the message was sent in Unix time.
Ptr< GeneralForumTopicUnhidden > generalForumTopicUnhidden
Optional. Service message: the 'General' forum topic unhidden.
std::vector< Ptr< User > > newChatMembers
Optional. New members that were added to the group or supergroup and information about them (the bot ...