tgbot-cpp
TgBot::Update Class Reference

This object represents an incoming update. More...

#include <Update.h>

Public Types

typedef std::shared_ptr< UpdatePtr
 

Public Attributes

int32_t updateId
 The update‘s unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID 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. More...
 
Message::Ptr message
 Optional. New incoming message of any kind — text, photo, sticker, etc. More...
 
Message::Ptr editedMessage
 Optional. New version of a message that is known to the bot and was edited. More...
 
Message::Ptr channelPost
 Optional. New incoming channel post of any kind — text, photo, sticker, etc. More...
 
Message::Ptr editedChannelPost
 Optional. New version of a channel post that is known to the bot and was edited. More...
 
InlineQuery::Ptr inlineQuery
 Optional. New incoming inline query. More...
 
ChosenInlineResult::Ptr chosenInlineResult
 Optional. The result of an inline query that was chosen by a user and sent to their chat partner. More...
 
CallbackQuery::Ptr callbackQuery
 Optional. New incoming callback query. More...
 

Detailed Description

This object represents an incoming update.

Definition at line 40 of file Update.h.

Member Typedef Documentation

◆ Ptr

typedef std::shared_ptr<Update> TgBot::Update::Ptr

Definition at line 43 of file Update.h.

Member Data Documentation

◆ callbackQuery

CallbackQuery::Ptr TgBot::Update::callbackQuery

Optional. New incoming callback query.

Definition at line 83 of file Update.h.

◆ channelPost

Message::Ptr TgBot::Update::channelPost

Optional. New incoming channel post of any kind — text, photo, sticker, etc.

Definition at line 63 of file Update.h.

◆ chosenInlineResult

ChosenInlineResult::Ptr TgBot::Update::chosenInlineResult

Optional. The result of an inline query that was chosen by a user and sent to their chat partner.

Definition at line 78 of file Update.h.

◆ editedChannelPost

Message::Ptr TgBot::Update::editedChannelPost

Optional. New version of a channel post that is known to the bot and was edited.

Definition at line 68 of file Update.h.

◆ editedMessage

Message::Ptr TgBot::Update::editedMessage

Optional. New version of a message that is known to the bot and was edited.

Definition at line 58 of file Update.h.

◆ inlineQuery

InlineQuery::Ptr TgBot::Update::inlineQuery

Optional. New incoming inline query.

Definition at line 73 of file Update.h.

◆ message

Message::Ptr TgBot::Update::message

Optional. New incoming message of any kind — text, photo, sticker, etc.

Definition at line 53 of file Update.h.

◆ updateId

int32_t TgBot::Update::updateId

The update‘s unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID 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.

Definition at line 48 of file Update.h.


The documentation for this class was generated from the following file: