tgbot-cpp
|
This object contains information about a chat that was shared with the bot using a KeyboardButtonRequestChat button. More...
#include <ChatShared.h>
Public Types | |
typedef std::shared_ptr< ChatShared > | Ptr |
Public Attributes | |
std::int32_t | requestId |
Identifier of the request. | |
std::int64_t | chatId |
Identifier of the shared chat. | |
std::string | title |
Optional. Title of the chat, if the title was requested by the bot. | |
std::string | username |
Optional. Username of the chat, if the username was requested by the bot and available. | |
std::vector< PhotoSize::Ptr > | photo |
Optional. Available sizes of the chat photo, if the photo was requested by the bot. | |
This object contains information about a chat that was shared with the bot using a KeyboardButtonRequestChat button.
Definition at line 18 of file ChatShared.h.
typedef std::shared_ptr<ChatShared> TgBot::ChatShared::Ptr |
Definition at line 21 of file ChatShared.h.
std::int64_t TgBot::ChatShared::chatId |
Identifier of the shared chat.
The bot may not have access to the chat and could be unable to use this identifier, unless the chat is already known to the bot by some other means.
This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.
Definition at line 36 of file ChatShared.h.
std::vector<PhotoSize::Ptr> TgBot::ChatShared::photo |
Optional. Available sizes of the chat photo, if the photo was requested by the bot.
Definition at line 51 of file ChatShared.h.
std::int32_t TgBot::ChatShared::requestId |
Identifier of the request.
Definition at line 26 of file ChatShared.h.
std::string TgBot::ChatShared::title |
Optional. Title of the chat, if the title was requested by the bot.
Definition at line 41 of file ChatShared.h.
std::string TgBot::ChatShared::username |
Optional. Username of the chat, if the username was requested by the bot and available.
Definition at line 46 of file ChatShared.h.