tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::SwitchInlineQueryChosenChat Struct Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SwitchInlineQueryChosenChat() [1/2]

tgbotxx::SwitchInlineQueryChosenChat::SwitchInlineQueryChosenChat ( )
default

◆ SwitchInlineQueryChosenChat() [2/2]

tgbotxx::SwitchInlineQueryChosenChat::SwitchInlineQueryChosenChat ( const nl::json &  json)
inlineexplicit

Definition at line 11 of file SwitchInlineQueryChosenChat.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::SwitchInlineQueryChosenChat::fromJson ( const nl::json &  json)
inline

Deserializes this object from JSON.

Definition at line 44 of file SwitchInlineQueryChosenChat.hpp.

◆ toJson()

nl::json tgbotxx::SwitchInlineQueryChosenChat::toJson ( ) const
inline

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 33 of file SwitchInlineQueryChosenChat.hpp.

Member Data Documentation

◆ allowBotChats

bool tgbotxx::SwitchInlineQueryChosenChat::allowBotChats {}

Optional. True, if private chats with bots can be chosen.

Definition at line 22 of file SwitchInlineQueryChosenChat.hpp.

◆ allowChannelChats

bool tgbotxx::SwitchInlineQueryChosenChat::allowChannelChats {}

Optional. True, if channel chats can be chosen.

Definition at line 28 of file SwitchInlineQueryChosenChat.hpp.

◆ allowGroupChats

bool tgbotxx::SwitchInlineQueryChosenChat::allowGroupChats {}

Optional. True, if group and supergroup chats can be chosen.

Definition at line 25 of file SwitchInlineQueryChosenChat.hpp.

◆ allowUserChats

bool tgbotxx::SwitchInlineQueryChosenChat::allowUserChats {}

Optional. True, if private chats with users can be chosen.

Definition at line 19 of file SwitchInlineQueryChosenChat.hpp.

◆ query

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.


The documentation for this struct was generated from the following file: