Skip to content
Download Beeper

Remove a reaction

chats.messages.reactions.delete(strreaction_key, ReactionDeleteParams**kwargs) -> ReactionDeleteResponse
DELETE/v1/chats/{chatID}/messages/{messageID}/reactions/{reactionKey}

Remove the reaction added by the authenticated user from an existing message.

ParametersExpand Collapse
chat_id: str

Chat ID. Input routes also accept the local chat ID from this installation when available.

message_id: str

Message ID.

reaction_key: str

Reaction key to remove (emoji, shortcode, or custom emoji key)

minLength1
ReturnsExpand Collapse
class ReactionDeleteResponse: …
chat_id: str

Chat ID. Input routes also accept the local chat ID from this installation when available.

message_id: str

Message ID.

reaction_key: str

Reaction key that was removed.

success: Literal[true]

Always true. Indicates the reaction removal was queued; failures return an error response.

Remove a reaction

import os
from beeper_desktop_api import BeeperDesktop

client = BeeperDesktop(
    access_token=os.environ.get("BEEPER_ACCESS_TOKEN"),  # This is the default and can be omitted
)
reaction = client.chats.messages.reactions.delete(
    reaction_key="x",
    chat_id="!NCdzlIaMjZUmvmvyHU:beeper.com",
    message_id="1343993",
)
print(reaction.chat_id)
{
  "chatID": "!whatsapp_15550101002:ba_EvYDBBsZbRQAy3UOSWqG0LuTVkc.local-whatsapp.localhost",
  "messageID": "1343993",
  "reactionKey": "❤️",
  "success": true
}
Returns Examples
{
  "chatID": "!whatsapp_15550101002:ba_EvYDBBsZbRQAy3UOSWqG0LuTVkc.local-whatsapp.localhost",
  "messageID": "1343993",
  "reactionKey": "❤️",
  "success": true
}