peyk.platforms.telegram.methods.delete_message_reaction¶
- async peyk.platforms.telegram.methods.delete_message_reaction(self, chat_id: int | str, message_id: int, *, user_id: int | None = None, actor_chat_id: int | None = None) bool¶
Use this method to remove a reaction from a message in a group or a supergroup 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 – Identifier of the target message
user_id – Identifier of the user whose reaction will be removed, if the reaction was added by a user
actor_chat_id – Identifier of the chat whose reaction will be removed, if the reaction was added by a chat
- Returns:
Result returned by Telegram on successful execution.
- Return type:
bool