tgbot-cpp
Loading...
Searching...
No Matches
TgBot::BotCommandScope Struct Reference

This object represents the scope to which bot commands are applied. Currently, the following 7 scopes are supported: BotCommandScopeDefault BotCommandScopeAllPrivateChats BotCommandScopeAllGroupChats BotCommandScopeAllChatAdministrators BotCommandScopeChat BotCommandScopeChatAdministrators BotCommandScopeChatMember. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<BotCommandScope>

Public Attributes

std::variant< std::shared_ptr< BotCommandScopeDefault >, std::shared_ptr< BotCommandScopeAllPrivateChats >, std::shared_ptr< BotCommandScopeAllGroupChats >, std::shared_ptr< BotCommandScopeAllChatAdministrators >, std::shared_ptr< BotCommandScopeChat >, std::shared_ptr< BotCommandScopeChatAdministrators >, std::shared_ptr< BotCommandScopeChatMember > > value

Detailed Description

This object represents the scope to which bot commands are applied. Currently, the following 7 scopes are supported: BotCommandScopeDefault BotCommandScopeAllPrivateChats BotCommandScopeAllGroupChats BotCommandScopeAllChatAdministrators BotCommandScopeChat BotCommandScopeChatAdministrators BotCommandScopeChatMember.

Definition at line 933 of file Types.h.

Member Typedef Documentation

◆ Ptr

using TgBot::BotCommandScope::Ptr = std::shared_ptr<BotCommandScope>

Definition at line 934 of file Types.h.

Member Data Documentation

◆ value

std::variant<std::shared_ptr<BotCommandScopeDefault>, std::shared_ptr<BotCommandScopeAllPrivateChats>, std::shared_ptr<BotCommandScopeAllGroupChats>, std::shared_ptr<BotCommandScopeAllChatAdministrators>, std::shared_ptr<BotCommandScopeChat>, std::shared_ptr<BotCommandScopeChatAdministrators>, std::shared_ptr<BotCommandScopeChatMember> > TgBot::BotCommandScope::value

Definition at line 940 of file Types.h.


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