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

This object describes the access settings of a bot. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<BotAccessSettings>

Public Attributes

bool isAccessRestricted { }
 True, if only selected users can access the bot. The bot's owner can always access it.
std::optional< std::vector< std::shared_ptr< User > > > addedUsers { }
 Optional. The list of other users who have access to the bot if the access is restricted.

Detailed Description

This object describes the access settings of a bot.

Definition at line 881 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 882 of file Types.h.

Member Data Documentation

◆ addedUsers

std::optional<std::vector<std::shared_ptr<User> > > TgBot::BotAccessSettings::addedUsers { }

Optional. The list of other users who have access to the bot if the access is restricted.

Definition at line 892 of file Types.h.

◆ isAccessRestricted

bool TgBot::BotAccessSettings::isAccessRestricted { }

True, if only selected users can access the bot. The bot's owner can always access it.

Definition at line 887 of file Types.h.


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