|
std::int32_t | messageId |
| Unique message identifier inside this chat.
|
|
std::int32_t | messageThreadId |
| Optional. Unique identifier of a message thread to which the message belongs; for supergroups only.
|
|
User::Ptr | from |
| Optional. Sender of the message; empty for messages sent to channels.
|
|
Chat::Ptr | senderChat |
| Optional. Sender of the message, sent on behalf of a chat.
|
|
std::int32_t | senderBoostCount |
| Optional. If the sender of the message boosted the chat, the number of boosts added by the user.
|
|
User::Ptr | senderBusinessBot |
| Optional. The bot that actually sent the message on behalf of the business account.
|
|
std::uint32_t | date |
| Date the message was sent in Unix time.
|
|
std::string | businessConnectionId |
| Optional. Unique identifier of the business connection from which the message was received.
|
|
Chat::Ptr | chat |
| Chat the message belongs to.
|
|
MessageOrigin::Ptr | forwardOrigin |
| Optional. Information about the original message for forwarded messages.
|
|
bool | isTopicMessage |
| Optional. True, if the message is sent to a forum topic.
|
|
bool | isAutomaticForward |
| Optional. True, if the message is a channel post that was automatically forwarded to the connected discussion group.
|
|
Message::Ptr | replyToMessage |
| Optional. For replies in the same chat and message thread, the original message.
|
|
ExternalReplyInfo::Ptr | externalReply |
| Optional. Information about the message that is being replied to, which may come from another chat or forum topic.
|
|
TextQuote::Ptr | quote |
| Optional. For replies that quote part of the original message, the quoted part of the message.
|
|
Story::Ptr | replyToStory |
| Optional. For replies to a story, the original story.
|
|
User::Ptr | viaBot |
| Optional. Bot through which the message was sent.
|
|
std::uint32_t | editDate |
| Optional. Date the message was last edited in Unix time.
|
|
bool | hasProtectedContent |
| Optional. True, if the message can't be forwarded.
|
|
bool | isFromOffline |
| 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.
|
|
std::string | mediaGroupId |
| Optional. The unique identifier of a media message group this message belongs to.
|
|
std::string | authorSignature |
| Optional. Signature of the post author for messages in channels, or the custom title of an anonymous group administrator.
|
|
std::string | text |
| Optional. For text messages, the actual UTF-8 text of the message.
|
|
std::vector< MessageEntity::Ptr > | entities |
| Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text.
|
|
LinkPreviewOptions::Ptr | linkPreviewOptions |
| Optional. Options used for link preview generation for the message, if it is a text message and link preview options were changed.
|
|
Animation::Ptr | animation |
| Optional. Message is an animation, information about the animation.
|
|
Audio::Ptr | audio |
| Optional. Message is an audio file, information about the file.
|
|
Document::Ptr | document |
| Optional. Message is a general file, information about the file.
|
|
std::vector< PhotoSize::Ptr > | photo |
| Optional. Message is a photo, available sizes of the photo.
|
|
Sticker::Ptr | sticker |
| Optional. Message is a sticker, information about the sticker.
|
|
Story::Ptr | story |
| Optional. Message is a forwarded story.
|
|
Video::Ptr | video |
| Optional. Message is a video, information about the video.
|
|
VideoNote::Ptr | videoNote |
| Optional. Message is a video note, information about the video message.
|
|
Voice::Ptr | voice |
| Optional. Message is a voice message, information about the file.
|
|
std::string | caption |
| Optional. Caption for the animation, audio, document, photo, video or voice.
|
|
std::vector< MessageEntity::Ptr > | captionEntities |
| Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption.
|
|
bool | hasMediaSpoiler |
| Optional. True, if the message media is covered by a spoiler animation.
|
|
Contact::Ptr | contact |
| Optional. Message is a shared contact, information about the contact.
|
|
Dice::Ptr | dice |
| Optional. Message is a dice with random value.
|
|
Game::Ptr | game |
| Optional. Message is a game, information about the game.
|
|
Poll::Ptr | poll |
| Optional. Message is a native poll, information about the poll.
|
|
Venue::Ptr | venue |
| Optional. Message is a venue, information about the venue.
|
|
Location::Ptr | location |
| Optional. Message is a shared location, information about the location.
|
|
std::vector< User::Ptr > | newChatMembers |
| Optional. New members that were added to the group or supergroup and information about them (the bot itself may be one of these members)
|
|
User::Ptr | leftChatMember |
| Optional. A member was removed from the group, information about them (this member may be the bot itself)
|
|
std::string | newChatTitle |
| Optional. A chat title was changed to this value.
|
|
std::vector< PhotoSize::Ptr > | newChatPhoto |
| Optional. A chat photo was change to this value.
|
|
bool | deleteChatPhoto |
| Optional. Service message: the chat photo was deleted.
|
|
bool | groupChatCreated |
| Optional. Service message: the group has been created.
|
|
bool | supergroupChatCreated |
| Optional. Service message: the supergroup has been created.
|
|
bool | channelChatCreated |
| Optional. Service message: the channel has been created.
|
|
MessageAutoDeleteTimerChanged::Ptr | messageAutoDeleteTimerChanged |
| Optional. Service message: auto-delete timer settings changed in the chat.
|
|
std::int64_t | migrateToChatId |
| Optional. The group has been migrated to a supergroup with the specified identifier.
|
|
std::int64_t | migrateFromChatId |
| Optional. The supergroup has been migrated from a group with the specified identifier.
|
|
Message::Ptr | pinnedMessage |
| Optional. Specified message was pinned.
|
|
Invoice::Ptr | invoice |
| Optional. Message is an invoice for a payment, information about the invoice.
|
|
SuccessfulPayment::Ptr | successfulPayment |
| Optional. Message is a service message about a successful payment, information about the payment.
|
|
UsersShared::Ptr | usersShared |
| Optional. Service message: users were shared with the bot.
|
|
ChatShared::Ptr | chatShared |
| Optional. Service message: a chat was shared with the bot.
|
|
std::string | connectedWebsite |
| Optional. The domain name of the website on which the user has logged in.
|
|
WriteAccessAllowed::Ptr | writeAccessAllowed |
| 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
|
|
PassportData::Ptr | passportData |
| Optional. Telegram Passport data.
|
|
ProximityAlertTriggered::Ptr | proximityAlertTriggered |
| Optional. Service message.
|
|
ChatBoostAdded::Ptr | boostAdded |
| Optional. Service message: user boosted the chat.
|
|
ForumTopicCreated::Ptr | forumTopicCreated |
| Optional. Service message: forum topic created.
|
|
ForumTopicEdited::Ptr | forumTopicEdited |
| Optional. Service message: forum topic edited.
|
|
ForumTopicClosed::Ptr | forumTopicClosed |
| Optional. Service message: forum topic closed.
|
|
ForumTopicReopened::Ptr | forumTopicReopened |
| Optional. Service message: forum topic reopened.
|
|
GeneralForumTopicHidden::Ptr | generalForumTopicHidden |
| Optional. Service message: the 'General' forum topic hidden.
|
|
GeneralForumTopicUnhidden::Ptr | generalForumTopicUnhidden |
| Optional. Service message: the 'General' forum topic unhidden.
|
|
GiveawayCreated::Ptr | giveawayCreated |
| Optional. Service message: a scheduled giveaway was created.
|
|
Giveaway::Ptr | giveaway |
| Optional. The message is a scheduled giveaway message.
|
|
GiveawayWinners::Ptr | giveawayWinners |
| Optional. A giveaway with public winners was completed.
|
|
GiveawayCompleted::Ptr | giveawayCompleted |
| Optional. Service message: a giveaway without public winners was completed.
|
|
VideoChatScheduled::Ptr | videoChatScheduled |
| Optional. Service message: video chat scheduled.
|
|
VideoChatStarted::Ptr | videoChatStarted |
| Optional. Service message: video chat started.
|
|
VideoChatEnded::Ptr | videoChatEnded |
| Optional. Service message: video chat ended.
|
|
VideoChatParticipantsInvited::Ptr | videoChatParticipantsInvited |
| Optional. Service message: new participants invited to a video chat.
|
|
WebAppData::Ptr | webAppData |
| Optional. Service message: data sent by a Web App.
|
|
InlineKeyboardMarkup::Ptr | replyMarkup |
| Optional. Inline keyboard attached to the message.
|
|
This object represents a message.
Definition at line 65 of file Message.h.