BotAccessSettings¶
- class telegram.BotAccessSettings(is_access_restricted, added_users=None, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObjectThis object describes the access settings of a bot.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
is_access_restrictedandadded_usersare equal.Returned In
Added in version 22.8.
- Parameters:
is_access_restricted (
bool) –True, if only selected users can access the bot. The bot’s owner can always access it.added_users (Sequence[
telegram.User], optional) – The list of other users who have access to the bot if the access is restricted.
- is_access_restricted[source]¶
True, if only selected users can access the bot. The bot’s owner can always access it.- Type:
- added_users[source]¶
Optional. The list of other users who have access to the bot if the access is restricted.
- Type:
Sequence[
telegram.User]