tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
This object represents an inline button that switches the current user to inline mode in a chosen chat, with an optional default inline query. https://core.telegram.org/bots/api#switchinlinequerychosenchat. More...
#include <SwitchInlineQueryChosenChat.hpp>
Public Member Functions | |
SwitchInlineQueryChosenChat ()=default | |
SwitchInlineQueryChosenChat (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::string | query |
Optional. The default inline query to be inserted in the input field. If left empty, only the bot's username will be inserted. More... | |
bool | allowUserChats {} |
Optional. True, if private chats with users can be chosen. More... | |
bool | allowBotChats {} |
Optional. True, if private chats with bots can be chosen. More... | |
bool | allowGroupChats {} |
Optional. True, if group and supergroup chats can be chosen. More... | |
bool | allowChannelChats {} |
Optional. True, if channel chats can be chosen. More... | |
This object represents an inline button that switches the current user to inline mode in a chosen chat, with an optional default inline query. https://core.telegram.org/bots/api#switchinlinequerychosenchat.
Definition at line 9 of file SwitchInlineQueryChosenChat.hpp.
|
default |
|
inlineexplicit |
Definition at line 11 of file SwitchInlineQueryChosenChat.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 44 of file SwitchInlineQueryChosenChat.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 33 of file SwitchInlineQueryChosenChat.hpp.
bool tgbotxx::SwitchInlineQueryChosenChat::allowBotChats {} |
Optional. True, if private chats with bots can be chosen.
Definition at line 22 of file SwitchInlineQueryChosenChat.hpp.
bool tgbotxx::SwitchInlineQueryChosenChat::allowChannelChats {} |
Optional. True, if channel chats can be chosen.
Definition at line 28 of file SwitchInlineQueryChosenChat.hpp.
bool tgbotxx::SwitchInlineQueryChosenChat::allowGroupChats {} |
Optional. True, if group and supergroup chats can be chosen.
Definition at line 25 of file SwitchInlineQueryChosenChat.hpp.
bool tgbotxx::SwitchInlineQueryChosenChat::allowUserChats {} |
Optional. True, if private chats with users can be chosen.
Definition at line 19 of file SwitchInlineQueryChosenChat.hpp.
std::string tgbotxx::SwitchInlineQueryChosenChat::query |
Optional. The default inline query to be inserted in the input field. If left empty, only the bot's username will be inserted.
Definition at line 16 of file SwitchInlineQueryChosenChat.hpp.