đ§ set_managed_bot_access_settings
Use this method to change the access settings of a managed bot.
âī¸ Parameters
user_id(int): User identifier of the managed bot whose access settings will be changedis_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 ofint) (optional): A 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
đ Examples
-đĒĢ Required Parameters
await bot.set_managed_bot_access_settings(
user_id=your_user_id_here,
is_access_restricted=your_is_access_restricted_here
)
-đ All Parameters
await bot.set_managed_bot_access_settings(
user_id=your_user_id_here,
is_access_restricted=your_is_access_restricted_here,
added_user_ids=your_added_user_ids_here
)