tgbot-cpp
Loading...
Searching...
No Matches
TgBot::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. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<SwitchInlineQueryChosenChat>

Public Attributes

std::optional< 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.
std::optional< bool > allowUserChats { }
 Optional. True, if private chats with users can be chosen.
std::optional< bool > allowBotChats { }
 Optional. True, if private chats with bots can be chosen.
std::optional< bool > allowGroupChats { }
 Optional. True, if group and supergroup chats can be chosen.
std::optional< bool > allowChannelChats { }
 Optional. True, if channel chats can be chosen.

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.

Definition at line 13521 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 13522 of file Types.h.

Member Data Documentation

◆ allowBotChats

std::optional<bool> TgBot::SwitchInlineQueryChosenChat::allowBotChats { }

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

Definition at line 13536 of file Types.h.

◆ allowChannelChats

std::optional<bool> TgBot::SwitchInlineQueryChosenChat::allowChannelChats { }

Optional. True, if channel chats can be chosen.

Definition at line 13544 of file Types.h.

◆ allowGroupChats

std::optional<bool> TgBot::SwitchInlineQueryChosenChat::allowGroupChats { }

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

Definition at line 13540 of file Types.h.

◆ allowUserChats

std::optional<bool> TgBot::SwitchInlineQueryChosenChat::allowUserChats { }

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

Definition at line 13532 of file Types.h.

◆ query

std::optional<std::string> TgBot::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 13528 of file Types.h.


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