tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
This object contains information about the user whose identifier was shared with the bot using a KeyboardButtonRequestUser button. https://core.telegram.org/bots/api#usershared. More...
#include <UserShared.hpp>
Public Member Functions | |
UserShared ()=default | |
UserShared (const nl::json &json) | |
nl::json | toJson () const |
Serializes this object to JSON. More... | |
void | fromJson (const nl::json &json) |
Deserializes this object from JSON. More... | |
Public Attributes | |
std::int32_t | requestId {} |
Identifier of the request. More... | |
std::int64_t | userId {} |
Identifier of the shared user. 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. 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. More... | |
This object contains information about the user whose identifier was shared with the bot using a KeyboardButtonRequestUser button. https://core.telegram.org/bots/api#usershared.
Definition at line 7 of file UserShared.hpp.
|
default |
|
inlineexplicit |
Definition at line 9 of file UserShared.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 33 of file UserShared.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 25 of file UserShared.hpp.
std::int32_t tgbotxx::UserShared::requestId {} |
Identifier of the request.
Definition at line 14 of file UserShared.hpp.
std::int64_t tgbotxx::UserShared::userId {} |
Identifier of the shared user. 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. 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.
Definition at line 21 of file UserShared.hpp.