Sinch Node.js SDK - v1.5.0
    Preparing search index...

    Interface ReactionEvent

    Object reflecting an event that is created when a contact reacts/unreacts with an emoji to a particular MT message. Currently, this is only supported for the Messenger and Instagram channels. See Reaction Event for more details.

    interface ReactionEvent {
        action:
            | "REACTION_ACTION_UNKNOWN"
            | "REACTION_ACTION_REACT"
            | "REACTION_ACTION_UNREACT";
        emoji: string;
        message_id: string;
        reaction_category?: string;
    }
    Index

    Properties

    action:
        | "REACTION_ACTION_UNKNOWN"
        | "REACTION_ACTION_REACT"
        | "REACTION_ACTION_UNREACT"

    Type of action

    emoji: string

    Indicates that an emoji reaction was placed on a message. This value is the string representation of the emoji. For example: "\u{2764}\u{FE0F}"

    message_id: string

    The ID of the MT message that this reaction is associated with.

    reaction_category?: string

    If present, represents the grouping of emojis. Example values: "smile", "angry", "sad", "wow", "love", "like", "dislike", "other"