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...
 
ShippingQuery::Ptr shippingQuery
 Optional. New incoming shipping query. More...
 
PreCheckoutQuery::Ptr preCheckoutQuery
 Optional. New incoming pre-checkout query. More...
 

Detailed Description

This object represents an incoming update.

Definition at line 42 of file Update.h.

Member Typedef Documentation

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

Definition at line 45 of file Update.h.

Member Data Documentation

CallbackQuery::Ptr TgBot::Update::callbackQuery

Optional. New incoming callback query.

Definition at line 85 of file Update.h.

Message::Ptr TgBot::Update::channelPost

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

Definition at line 65 of file Update.h.

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 80 of file Update.h.

Message::Ptr TgBot::Update::editedChannelPost

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

Definition at line 70 of file Update.h.

Message::Ptr TgBot::Update::editedMessage

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

Definition at line 60 of file Update.h.

InlineQuery::Ptr TgBot::Update::inlineQuery

Optional. New incoming inline query.

Definition at line 75 of file Update.h.

Message::Ptr TgBot::Update::message

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

Definition at line 55 of file Update.h.

PreCheckoutQuery::Ptr TgBot::Update::preCheckoutQuery

Optional. New incoming pre-checkout query.

Contains full information about checkout

Definition at line 99 of file Update.h.

ShippingQuery::Ptr TgBot::Update::shippingQuery

Optional. New incoming shipping query.

Only for invoices with flexible price

Definition at line 92 of file Update.h.

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 50 of file Update.h.


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