tgbot-cpp
Loading...
Searching...
No Matches
TgBot::ChatShared Class Reference

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< ChatSharedPtr
 

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::Ptrphoto
 Optional. Available sizes of the chat photo, if the photo was requested by the bot.
 

Detailed Description

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.

Member Typedef Documentation

◆ Ptr

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

Definition at line 21 of file ChatShared.h.

Member Data Documentation

◆ chatId

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.

◆ photo

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.

◆ requestId

std::int32_t TgBot::ChatShared::requestId

Identifier of the request.

Definition at line 26 of file ChatShared.h.

◆ title

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.

◆ username

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.


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