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