tgbot-cpp
|
This object represents an incoming update. More...
#include <Update.h>
Public Types | |
typedef std::shared_ptr< Update > | Ptr |
Public Attributes | |
std::int32_t | updateId |
The update's unique identifier. | |
Message::Ptr | message |
Optional. New incoming message of any kind - text, photo, sticker, etc. | |
Message::Ptr | editedMessage |
Optional. New version of a message that is known to the bot and was edited. | |
Message::Ptr | channelPost |
Optional. New incoming channel post of any kind - text, photo, sticker, etc. | |
Message::Ptr | editedChannelPost |
Optional. New version of a channel post that is known to the bot and was edited. | |
BusinessConnection::Ptr | businessConnection |
Optional. The bot was connected to or disconnected from a business account, or a user edited an existing connection with the bot. | |
Message::Ptr | businessMessage |
Optional. New non-service message from a connected business account. | |
Message::Ptr | editedBusinessMessage |
Optional. New version of a message from a connected business account. | |
BusinessMessagesDeleted::Ptr | deletedBusinessMessages |
Optional. Messages were deleted from a connected business account. | |
MessageReactionUpdated::Ptr | messageReaction |
Optional. A reaction to a message was changed by a user. | |
MessageReactionCountUpdated::Ptr | messageReactionCount |
Optional. Reactions to a message with anonymous reactions were changed. | |
InlineQuery::Ptr | inlineQuery |
Optional. New incoming inline query. | |
ChosenInlineResult::Ptr | chosenInlineResult |
Optional. The result of an inline query that was chosen by a user and sent to their chat partner. | |
CallbackQuery::Ptr | callbackQuery |
Optional. New incoming callback query. | |
ShippingQuery::Ptr | shippingQuery |
Optional. New incoming shipping query. | |
PreCheckoutQuery::Ptr | preCheckoutQuery |
Optional. New incoming pre-checkout query. | |
Poll::Ptr | poll |
Optional. New poll state. | |
PollAnswer::Ptr | pollAnswer |
Optional. A user changed their answer in a non-anonymous poll. | |
ChatMemberUpdated::Ptr | myChatMember |
Optional. The bot's chat member status was updated in a chat. | |
ChatMemberUpdated::Ptr | chatMember |
Optional. A chat member's status was updated in a chat. | |
ChatJoinRequest::Ptr | chatJoinRequest |
Optional. A request to join the chat has been sent. | |
ChatBoostUpdated::Ptr | chatBoost |
Optional. A chat boost was added or changed. | |
ChatBoostRemoved::Ptr | removedChatBoost |
Optional. A boost was removed from a chat. | |
This object represents an incoming update.
At most one of the optional parameters can be present in any given update.
typedef std::shared_ptr<Update> TgBot::Update::Ptr |
BusinessConnection::Ptr TgBot::Update::businessConnection |
Message::Ptr TgBot::Update::businessMessage |
CallbackQuery::Ptr TgBot::Update::callbackQuery |
Message::Ptr TgBot::Update::channelPost |
ChatBoostUpdated::Ptr TgBot::Update::chatBoost |
ChatJoinRequest::Ptr TgBot::Update::chatJoinRequest |
ChatMemberUpdated::Ptr TgBot::Update::chatMember |
ChosenInlineResult::Ptr TgBot::Update::chosenInlineResult |
Optional. The result of an inline query that was chosen by a user and sent to their chat partner.
Please see our documentation on the feedback collecting for details on how to enable these updates for your bot.
BusinessMessagesDeleted::Ptr TgBot::Update::deletedBusinessMessages |
Message::Ptr TgBot::Update::editedBusinessMessage |
Message::Ptr TgBot::Update::editedChannelPost |
Message::Ptr TgBot::Update::editedMessage |
InlineQuery::Ptr TgBot::Update::inlineQuery |
Message::Ptr TgBot::Update::message |
MessageReactionUpdated::Ptr TgBot::Update::messageReaction |
MessageReactionCountUpdated::Ptr TgBot::Update::messageReactionCount |
Optional. Reactions to a message with anonymous reactions were changed.
The bot must be an administrator in the chat and must explicitly specify "message_reaction_count" in the list of allowedUpdates to receive these updates. The updates are grouped and can be sent with delay up to a few minutes.
ChatMemberUpdated::Ptr TgBot::Update::myChatMember |
Poll::Ptr TgBot::Update::poll |
PollAnswer::Ptr TgBot::Update::pollAnswer |
PreCheckoutQuery::Ptr TgBot::Update::preCheckoutQuery |
ChatBoostRemoved::Ptr TgBot::Update::removedChatBoost |
ShippingQuery::Ptr TgBot::Update::shippingQuery |
std::int32_t TgBot::Update::updateId |
The update's unique identifier.
Update identifiers start from a certain positive number and increase sequentially. This identifier becomes especially handy if you're using webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially.