set_managed_bot_access_settings()

async Client.set_managed_bot_access_settings()

Use this method to get the access settings of a managed bot.

Usable by Users Bots
Parameters:
  • user_id (int | str) – Unique identifier (int) or username (str) of the managed bot whose access settings will be changed.

  • is_access_restricted (bool) – Pass True, if only selected users can access the bot. The bot’s owner can always access it.

  • added_user_ids (List of int | str, optional) – List of up to 10 identifiers of users who will have access to the bot in addition to its owner. Ignored if is_access_restricted is False.

Returns:

bool – On success, True is returned.