31 std::vector<Ptr<PhotoSize>>
photo;
36 nl::json json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_field)
#define OBJECT_SERIALIZE_FIELD(json, json_field, field)
Available objects: https://core.telegram.org/bots/api#available-types.
#define OBJECT_DESERIALIZE_FIELD(json, json_field, field, default_value, optional)
Deserialize.
#define OBJECT_DESERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_field, optional)
This object contains information about a user that was shared with the bot using a KeyboardButtonRequ...
nl::json toJson() const
Serializes this object to JSON.
SharedUser(const nl::json &json)
std::int64_t userId
Identifier of the shared user. This number may have more than 32 significant bits and some programmin...
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::string username
Optional. Username of the user, if the username was requested by the bot.
std::string lastName
Optional. Last name of the user, if the name was requested by the bot.
std::string firstName
Optional. First name of the user, if the name was requested by the bot.
std::vector< Ptr< PhotoSize > > photo
Optional. Available sizes of the chat photo, if the photo was requested by the bot.