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

This object contains information about the chat whose identifier 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 userId
 Identifier of the shared chat.
 

Detailed Description

This object contains information about the chat whose identifier was shared with the bot using a KeyboardButtonRequestChat button.

Definition at line 14 of file ChatShared.h.

Member Typedef Documentation

◆ Ptr

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

Definition at line 17 of file ChatShared.h.

Member Data Documentation

◆ requestId

std::int32_t TgBot::ChatShared::requestId

Identifier of the request.

Definition at line 22 of file ChatShared.h.

◆ userId

std::int64_t TgBot::ChatShared::userId

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 32 of file ChatShared.h.


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