|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
TThis object defines the criteria used to request suitable users. Information about the selected users will be shared with the bot when the corresponding button is pressed. More about requesting users » https://core.telegram.org/bots/features#chat-and-user-selection https://core.telegram.org/bots/api#keyboardbuttonrequestusers. More...
#include <KeyboardButtonRequestUsers.hpp>
Public Member Functions | |
| KeyboardButtonRequestUsers ()=default | |
| KeyboardButtonRequestUsers (const nl::json &json) | |
| nl::json | toJson () const |
| Serializes this object to JSON. | |
| void | fromJson (const nl::json &json) |
| Deserializes this object from JSON. | |
Public Attributes | |
| std::int32_t | requestId {} |
| Signed 32-bit identifier of the request, which will be received back in the UsersShared object. https://core.telegram.org/bots/api#usersshared. | |
| bool | userIsBot {} |
| Optional. Pass True to request a bot, pass False to request a regular user. If not specified, no additional restrictions are applied. | |
| bool | userIsPremium {} |
| Optional. Pass True to request a premium user, pass False to request a non-premium user. If not specified, no additional restrictions are applied. | |
| std::int32_t | maxQuantity {1} |
| Optional. The maximum number of users to be selected; 1-10. Defaults to 1. | |
| bool | requestName {} |
| Optional. Pass True to request the users' first and last names. | |
| bool | requestUsername {} |
| Optional. Pass True to request the users' usernames. | |
| bool | requestPhoto {} |
| Optional. Pass True to request the users' photos. | |
TThis object defines the criteria used to request suitable users. Information about the selected users will be shared with the bot when the corresponding button is pressed. More about requesting users » https://core.telegram.org/bots/features#chat-and-user-selection https://core.telegram.org/bots/api#keyboardbuttonrequestusers.
Definition at line 9 of file KeyboardButtonRequestUsers.hpp.
|
default |
|
inlineexplicit |
Definition at line 11 of file KeyboardButtonRequestUsers.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 54 of file KeyboardButtonRequestUsers.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 41 of file KeyboardButtonRequestUsers.hpp.
| std::int32_t tgbotxx::KeyboardButtonRequestUsers::maxQuantity {1} |
Optional. The maximum number of users to be selected; 1-10. Defaults to 1.
Definition at line 27 of file KeyboardButtonRequestUsers.hpp.
| std::int32_t tgbotxx::KeyboardButtonRequestUsers::requestId {} |
Signed 32-bit identifier of the request, which will be received back in the UsersShared object. https://core.telegram.org/bots/api#usersshared.
Definition at line 18 of file KeyboardButtonRequestUsers.hpp.
| bool tgbotxx::KeyboardButtonRequestUsers::requestName {} |
Optional. Pass True to request the users' first and last names.
Definition at line 30 of file KeyboardButtonRequestUsers.hpp.
| bool tgbotxx::KeyboardButtonRequestUsers::requestPhoto {} |
Optional. Pass True to request the users' photos.
Definition at line 36 of file KeyboardButtonRequestUsers.hpp.
| bool tgbotxx::KeyboardButtonRequestUsers::requestUsername {} |
Optional. Pass True to request the users' usernames.
Definition at line 33 of file KeyboardButtonRequestUsers.hpp.
| bool tgbotxx::KeyboardButtonRequestUsers::userIsBot {} |
Optional. Pass True to request a bot, pass False to request a regular user. If not specified, no additional restrictions are applied.
Definition at line 21 of file KeyboardButtonRequestUsers.hpp.
| bool tgbotxx::KeyboardButtonRequestUsers::userIsPremium {} |
Optional. Pass True to request a premium user, pass False to request a non-premium user. If not specified, no additional restrictions are applied.
Definition at line 24 of file KeyboardButtonRequestUsers.hpp.