get_bot_access_settings()¶
- Client.get_bot_access_settings()¶
Get the access settings of a bot.
Usable by Users Bots- Parameters:
bot (
int|str) – Unique identifier (int) or username (str) of the bot.- Returns:
AccessSettings– The bot access settings.
Example
settings = await app.get_bot_access_settings("@mybot") print(settings.restricted, settings.add_users)