whatsapp-api-js - v5.2.0
    Preparing search index...

    Class Reaction

    Reaction API object

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constructors

    • Create a Reaction object for the API

      Parameters

      • message_id: string

        The message's id (wamid) to react to

      • emoji: string

        The emoji to react with, defaults to empty string to remove a reaction

      Returns Reaction

      import { Reaction } from "whatsapp-api-js/messages";

      const reaction_message = new Reaction("message_id", "👍");

      If a non-emoji or more than one emoji is provided

    • Create a remove Reaction object for the API

      Parameters

      • message_id: string

        The message's id (wamid) to react to

      Returns Reaction

      import { Reaction } from "whatsapp-api-js/messages";

      const reaction_remove_message = new Reaction("message_id");

    Properties

    emoji: string

    The reaction emoji

    message_id: string

    The message's id to react to