Skip to content
Download Beeper

Remove a reaction

client.Chats.Messages.Reactions.Delete(ctx, reactionKey, body) (*ChatMessageReactionDeleteResponse, error)
DELETE/v1/chats/{chatID}/messages/{messageID}/reactions/{reactionKey}

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

ParametersExpand Collapse
reactionKey string

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

minLength1
body ChatMessageReactionDeleteParams
ChatID param.Field[string]

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

MessageID param.Field[string]

Message ID.

ReturnsExpand Collapse
type ChatMessageReactionDeleteResponse struct{…}
ChatID string

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

MessageID string

Message ID.

ReactionKey string

Reaction key that was removed.

Success bool

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

Remove a reaction

package main

import (
  "context"
  "fmt"

  "github.com/beeper/desktop-api-go"
  "github.com/beeper/desktop-api-go/option"
)

func main() {
  client := beeperdesktopapi.NewClient(
    option.WithAccessToken("My Access Token"),
  )
  reaction, err := client.Chats.Messages.Reactions.Delete(
    context.TODO(),
    "x",
    beeperdesktopapi.ChatMessageReactionDeleteParams{
      ChatID: "!NCdzlIaMjZUmvmvyHU:beeper.com",
      MessageID: "1343993",
    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", reaction.ChatID)
}
{
  "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
}