tgbotxx 1.1.9.2
Telegram Bot C++ Library
Loading...
Searching...
No Matches
Update.hpp
Go to the documentation of this file.
1#pragma once
3
4namespace tgbotxx {
6 struct CallbackQuery;
7 struct ChatJoinRequest;
8 struct ChatMemberUpdated;
9 struct ChosenInlineResult;
10 struct InlineQuery;
11 struct Message;
12 struct Poll;
13 struct PollAnswer;
14 struct PreCheckoutQuery;
15 struct ShippingQuery;
16 struct MessageReactionUpdated;
17 struct MessageReactionCountUpdated;
18 struct ChatBoostUpdated;
19 struct ChatBoostRemoved;
20 struct BusinessConnection;
21 struct BusinessMessagesDeleted;
22 struct PaidMediaPurchased;
23
119}
std::shared_ptr< T > Ptr
Definition Ptr.hpp:6
This object represents an incoming update. At most one of the optional parameters can be present in a...
Definition Update.hpp:27
Ptr< Message > message
Optional. New incoming message of any kind — text, photo, sticker, etc.
Definition Update.hpp:39
Ptr< ChatMemberUpdated > myChatMember
Optional. The bot's chat member status was updated in a chat. For private chats, this update is recei...
Definition Update.hpp:98
Ptr< Message > editedBusinessMessage
Optional. New version of a message from a connected business account.
Definition Update.hpp:57
Update()=default
Ptr< Message > channelPost
Optional. New incoming channel post of any kind — text, photo, sticker, etc.
Definition Update.hpp:45
Ptr< MessageReactionCountUpdated > messageReactionCount
Optional. Reactions to a message with anonymous reactions were changed. The bot must be an administra...
Definition Update.hpp:70
nl::json toJson() const
Serializes this object to JSON.
Ptr< ChatJoinRequest > chatJoinRequest
Optional. A request to join the chat has been sent. The bot must have the can_invite_users administra...
Definition Update.hpp:104
Ptr< ShippingQuery > shippingQuery
Optional. New incoming shipping query. Only for invoices with flexible price.
Definition Update.hpp:83
Ptr< PollAnswer > pollAnswer
Optional. A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls t...
Definition Update.hpp:95
Ptr< ChatMemberUpdated > chatMember
Optional. A chat member's status was updated in a chat. The bot must be an administrator in the chat ...
Definition Update.hpp:101
Ptr< Message > editedChannelPost
Optional. New version of a channel post that is known to the bot and was edited.
Definition Update.hpp:48
Ptr< ChatBoostRemoved > removedChatBoost
Optional. A boost was removed from a chat. The bot must be an administrator in the chat to receive th...
Definition Update.hpp:110
Ptr< PaidMediaPurchased > purchasedPaidMedia
Optional. A user purchased paid media with a non-empty payload sent by the bot in a non-channel chat.
Definition Update.hpp:89
void fromJson(const nl::json &json)
Deserializes this object from JSON.
Ptr< Message > editedMessage
Optional. New version of a message that is known to the bot and was edited.
Definition Update.hpp:42
Ptr< MessageReactionUpdated > messageReaction
Optional. A reaction to a message was changed by a user. The bot must be an administrator in the chat...
Definition Update.hpp:65
Ptr< InlineQuery > inlineQuery
Optional. New incoming inline query.
Definition Update.hpp:73
Ptr< PreCheckoutQuery > preCheckoutQuery
Optional. New incoming pre-checkout query. Contains full information about checkout.
Definition Update.hpp:86
Ptr< Message > businessMessage
Optional. New message from a connected business account.
Definition Update.hpp:54
Ptr< ChatBoostUpdated > chatBoost
Optional. A chat boost was added or changed. The bot must be an administrator in the chat to receive ...
Definition Update.hpp:107
Update(const nl::json &json)
Ptr< CallbackQuery > callbackQuery
Optional. New incoming callback query.
Definition Update.hpp:80
Ptr< Poll > poll
Optional. New poll state. Bots receive only updates about stopped polls and polls,...
Definition Update.hpp:92
Ptr< ChosenInlineResult > chosenInlineResult
Optional. The result of an inline query that was chosen by a user and sent to their chat partner....
Definition Update.hpp:77
std::int32_t updateId
The update's unique identifier. Update identifiers start from a certain positive number and increase ...
Definition Update.hpp:36
Ptr< BusinessMessagesDeleted > deletedBusinessMessages
Optional. Messages were deleted from a connected business account.
Definition Update.hpp:60
Ptr< BusinessConnection > businessConnection
Optional. The bot was connected to or disconnected from a business account, or a user edited an exist...
Definition Update.hpp:51