|
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 | date |
| Date the message was sent in Unix time.
|
|
Chat::Ptr | chat |
| Conversation the message belongs to.
|
|
User::Ptr | forwardFrom |
| Optional. For forwarded messages, sender of the original message.
|
|
Chat::Ptr | forwardFromChat |
| Optional. For messages forwarded from channels or from anonymous administrators, information about the original sender chat.
|
|
std::int32_t | forwardFromMessageId |
| Optional. For messages forwarded from channels, identifier of the original message in the channel.
|
|
std::string | forwardSignature |
| Optional. For forwarded messages that were originally sent in channels or by an anonymous chat administrator, signature of the message sender if present.
|
|
std::string | forwardSenderName |
| Optional. Sender's name for messages forwarded from users who disallow adding a link to their account in forwarded messages.
|
|
std::int32_t | forwardDate |
| Optional. For forwarded messages, date the original message was sent in Unix time.
|
|
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, the original message.
|
|
User::Ptr | viaBot |
| Optional. Bot through which the message was sent.
|
|
std::int32_t | editDate |
| Optional. Date the message was last edited in Unix time.
|
|
bool | hasProtectedContent |
| Optional. True, if the message can't be forwarded.
|
|
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.
|
|
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.
|
|
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. https://core.telegram.org/bots/api#games.
|
|
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.
|
|
UserShared::Ptr | userShared |
| Optional. Service message: a user was 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 added to the attachment menu to write messages.
|
|
PassportData::Ptr | passportData |
| Optional. Telegram Passport data.
|
|
ProximityAlertTriggered::Ptr | proximityAlertTriggered |
| Optional. Service message.
|
|
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.
|
|
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 55 of file Message.h.