bots.EditAccessSettings#

class pyrogram.raw.functions.bots.EditAccessSettings#

Edit the access restriction settings of a managed bot; can only be called by the manager bot.

Usable by Users Bots
Details:
  • Layer: 227

  • ID: 31813CD8

Parameters:
  • bot (InputUser) – The managed bot whose access settings to edit

  • restricted (bool, optional) – If set, restricts access to the managed bot to only the owner and the users in add_users

  • add_users (List of InputUser, optional) – Additional users (max 10, excluding the owner) allowed to access the managed bot when restricted is set

Returns:

bool