delete_all_message_reactions()#

Client.delete_all_message_reactions()[source]#

Use this method to remove up to 10000 recent reactions in a group or a supergroup chat added by a given user or chat.

Note

The bot must have the can_delete_messages administrator right in the chat.

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

  • user_id (int | str, optional) – Unique identifier (int) or username (str) of the user whose reactions will be removed, if the reactions were added by a user.

  • actor_chat_id (int | str, optional) – Unique identifier (int) or username (str) of the chat whose reactions will be removed, if the reactions were added by a chat.

Returns:

bool – True on success, False otherwise.