BotAccessSettings

class telegram.BotAccessSettings(is_access_restricted, added_users=None, *, api_kwargs=None)[source]

Bases: telegram.TelegramObject

This 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_restricted and added_users are equal.

Added in version 22.8.

Parameters:
is_access_restricted[source]

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

Type:

bool

added_users[source]

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

Type:

Sequence[telegram.User]

classmethod de_json(data, bot=None)[source]

See telegram.TelegramObject.de_json().