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

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

Public Attributes

std::int32_t requestId
 Identifier of the request.
 
std::int64_t userId
 Identifier of the shared user.
 

Detailed Description

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.

Member Typedef Documentation

◆ Ptr

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

Definition at line 17 of file UserShared.h.

Member Data Documentation

◆ requestId

std::int32_t TgBot::UserShared::requestId

Identifier of the request.

Definition at line 22 of file UserShared.h.

◆ userId

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.


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