39 nl::json json = nl::json::object();
#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.
This object represents a parameter of the inline keyboard button used to automatically authorize a us...
std::string botUsername
Optional. Username of a bot, which will be used for user authorization. See Setting up a bot for more...
std::string forwardText
Optional. New text of the button in forwarded messages.
bool requestWriteAccess
Optional. Pass True to request the permission for your bot to send messages to the user.
std::string url
An HTTPS URL to be opened with user authorization data added to the query string when the button is p...
nl::json toJson() const
Serializes this object to JSON.
LoginUrl(const nl::json &json)
void fromJson(const nl::json &json)
Deserializes this object from JSON.