setManagedBotAccessSettings
Returns: TrueOfficial docs ↗
Use this method to change the access settings of a managed bot. Returns True on success.
Parameters
user_idIntegerRequiredUser identifier of the managed bot whose access settings will be changed
is_access_restrictedBooleanRequiredPass True, if only selected users can access the bot. The bot's owner can always access it.
added_user_idsInteger[]OptionalA JSON-serialized 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
On success, True is returned.