peyk.platforms.telegram.methods.delete_all_message_reactions

async peyk.platforms.telegram.methods.delete_all_message_reactions(self, chat_id: int | str, message_id: int | None = None, *, user_id: int | None = None, actor_chat_id: int | None = None) bool

Use this method to remove up to 10000 recent reactions in a group or a supergroup chat added by a given user or chat. The bot must have the ‘can_delete_messages’ administrator right in the chat. Returns True on success.

Parameters:
  • chat_id – Unique identifier for the target chat or username of the target supergroup in the format @username

  • message_id – Value accepted by this operation.

  • user_id – Identifier of the user whose reactions will be removed, if the reactions were added by a user

  • actor_chat_id – Identifier of the chat whose reactions will be removed, if the reactions were added by a chat

Returns:

Result returned by Telegram on successful execution.

Return type:

bool