|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
This object defines the criteria used to request a suitable chat. Information about the selected chat will be shared with the bot when the corresponding button is pressed. The bot will be granted requested rights in the chat if appropriate. https://core.telegram.org/bots/api#keyboardbuttonrequestchat. More...
#include <KeyboardButtonRequestChat.hpp>
Public Member Functions | |
| KeyboardButtonRequestChat ()=default | |
| KeyboardButtonRequestChat (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 ChatShared object. Must be unique within the message. | |
| bool | chatIsChannel {} |
| Pass True to request a channel chat, pass False to request a group or a supergroup chat. | |
| bool | chatIsForum {} |
| Optional. Pass True to request a forum supergroup, pass False to request a non-forum chat. | |
| bool | chatHasUsername {} |
| Optional. Pass True to request a supergroup or a channel with a username, pass False to request a chat without a username. | |
| bool | chatIsCreated {} |
| Optional. Pass True to request a chat owned by the user. | |
| Ptr< ChatAdministratorRights > | userAdministratorRights |
| Optional. A JSON-serialized object listing the required administrator rights of the user in the chat. | |
| Ptr< ChatAdministratorRights > | botAdministratorRights |
| Optional. A JSON-serialized object listing the required administrator rights of the bot in the chat. | |
| bool | botIsMember {} |
| Optional. Pass True to request a chat with the bot as a member. | |
| bool | requestTitle {} |
| Optional. Pass True to request the chat's title. | |
| bool | requestUsername {} |
| Optional. Pass True to request the chat's username. | |
| bool | requestPhoto {} |
| Optional. Pass True to request the chat's photo. | |
This object defines the criteria used to request a suitable chat. Information about the selected chat will be shared with the bot when the corresponding button is pressed. The bot will be granted requested rights in the chat if appropriate. https://core.telegram.org/bots/api#keyboardbuttonrequestchat.
Definition at line 10 of file KeyboardButtonRequestChat.hpp.
|
default |
|
inlineexplicit |
Definition at line 12 of file KeyboardButtonRequestChat.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 69 of file KeyboardButtonRequestChat.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 52 of file KeyboardButtonRequestChat.hpp.
| Ptr<ChatAdministratorRights> tgbotxx::KeyboardButtonRequestChat::botAdministratorRights |
Optional. A JSON-serialized object listing the required administrator rights of the bot in the chat.
Definition at line 36 of file KeyboardButtonRequestChat.hpp.
| bool tgbotxx::KeyboardButtonRequestChat::botIsMember {} |
Optional. Pass True to request a chat with the bot as a member.
Definition at line 39 of file KeyboardButtonRequestChat.hpp.
| bool tgbotxx::KeyboardButtonRequestChat::chatHasUsername {} |
Optional. Pass True to request a supergroup or a channel with a username, pass False to request a chat without a username.
Definition at line 27 of file KeyboardButtonRequestChat.hpp.
| bool tgbotxx::KeyboardButtonRequestChat::chatIsChannel {} |
Pass True to request a channel chat, pass False to request a group or a supergroup chat.
Definition at line 21 of file KeyboardButtonRequestChat.hpp.
| bool tgbotxx::KeyboardButtonRequestChat::chatIsCreated {} |
Optional. Pass True to request a chat owned by the user.
Definition at line 30 of file KeyboardButtonRequestChat.hpp.
| bool tgbotxx::KeyboardButtonRequestChat::chatIsForum {} |
Optional. Pass True to request a forum supergroup, pass False to request a non-forum chat.
Definition at line 24 of file KeyboardButtonRequestChat.hpp.
| std::int32_t tgbotxx::KeyboardButtonRequestChat::requestId {} |
Signed 32-bit identifier of the request, which will be received back in the ChatShared object. Must be unique within the message.
Definition at line 18 of file KeyboardButtonRequestChat.hpp.
| bool tgbotxx::KeyboardButtonRequestChat::requestPhoto {} |
Optional. Pass True to request the chat's photo.
Definition at line 48 of file KeyboardButtonRequestChat.hpp.
| bool tgbotxx::KeyboardButtonRequestChat::requestTitle {} |
Optional. Pass True to request the chat's title.
Definition at line 42 of file KeyboardButtonRequestChat.hpp.
| bool tgbotxx::KeyboardButtonRequestChat::requestUsername {} |
Optional. Pass True to request the chat's username.
Definition at line 45 of file KeyboardButtonRequestChat.hpp.
| Ptr<ChatAdministratorRights> tgbotxx::KeyboardButtonRequestChat::userAdministratorRights |
Optional. A JSON-serialized object listing the required administrator rights of the user in the chat.
Definition at line 33 of file KeyboardButtonRequestChat.hpp.