tgbot-cpp
|
This object contains information about the user whose identifier was shared with the bot using a KeyboardButtonRequestUser button. More...
#include <UserShared.h>
Public Types | |
typedef std::shared_ptr< UserShared > | Ptr |
Public Attributes | |
std::int32_t | requestId |
Identifier of the request. | |
std::int64_t | userId |
Identifier of the shared user. | |
This object contains information about the user whose identifier was shared with the bot using a KeyboardButtonRequestUser button.
Definition at line 14 of file UserShared.h.
typedef std::shared_ptr<UserShared> TgBot::UserShared::Ptr |
Definition at line 17 of file UserShared.h.
std::int32_t TgBot::UserShared::requestId |
Identifier of the request.
Definition at line 22 of file UserShared.h.
std::int64_t TgBot::UserShared::userId |
Identifier of the shared user.
The bot may not have access to the user and could be unable to use this identifier, unless the user 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 UserShared.h.