bots.AccessSettings#

class pyrogram.raw.types.bots.AccessSettings#

Access restriction settings for a managed bot.

Constructor of AccessSettings.

Details:
  • Layer: 227

  • ID: DD1FBF93

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

  • add_users (List of User, optional) – Additional users (max 10, excluding the owner) who can access the managed bot; only present when restricted is set

Functions:

This object can be returned by 1 function.

bots.GetAccessSettings

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