tgbot-cpp
TgBot::Update Class Reference

#include <Update.h>

Public Types

typedef std::shared_ptr< UpdatePtr
 

Public Attributes

int32_t updateId
 
Message::Ptr message
 
Message::Ptr editedMessage
 
Message::Ptr channelPost
 
Message::Ptr editedChannelPost
 
InlineQuery::Ptr inlineQuery
 
ChosenInlineResult::Ptr chosenInlineResult
 
CallbackQuery::Ptr callbackQuery
 

Detailed Description

This object represents an incoming update.

Definition at line 39 of file Update.h.

Member Typedef Documentation

◆ Ptr

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

Definition at line 42 of file Update.h.

Member Data Documentation

◆ callbackQuery

CallbackQuery::Ptr TgBot::Update::callbackQuery

Optional. New incoming callback query.

Definition at line 82 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 62 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 77 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 67 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 57 of file Update.h.

◆ inlineQuery

InlineQuery::Ptr TgBot::Update::inlineQuery

Optional. New incoming inline query

Definition at line 72 of file Update.h.

◆ message

Message::Ptr TgBot::Update::message

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

Definition at line 52 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 47 of file Update.h.


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