toggle_user_emoji_status_permission()

async Client.toggle_user_emoji_status_permission()

Allow or prevent a bot from changing our emoji status.

Usable by Users Bots
Parameters:
  • bot (int | str) – Unique identifier (int) or username (str) of the target bot.

  • enabled (bool) – Whether to allow (True) or prevent (False) the bot from changing our emoji status.

Returns:

bool – On success, True is returned.

Example

await app.toggle_user_emoji_status_permission("my_bot", True)