Skip to content

[BUG] listener của reaction khi thả dưới app zalo gMsgID = 0 #360

Description

@hphong0147

Mình có dùng Listener reaction để lắng nghe event thả cảm xúc dưới app zalo nhưng vấn đề là mình ko thể lấy đc message_id khi thả reaction,cụ thể là gMsgID là 0 nhưng mình thử trên app zalo desktop thì lại bình thường vẫn lấy đc.Admin cho em hỏi có phải lỗi phía api ko ạ và đây là đoạn code và log mà em gọi

api.listener.on("reaction", async (reaction) => {
                console.log("😀 Received reaction:", JSON.stringify(reaction));
}
{
    "data": {
        "actionId": "1613363535484",
        "msgId": "7970889894523",
        "cliMsgId": "1782286279460",
        "msgType": "chat.reaction",
        "uidFrom": "8780300047720658810",
        "idTo": "7560225984834507848",
        "content": {
            "rType": 5,
            "rMsg": [
              {
                "cMsgID": 1782286269667,
                "gMsgID": 0,
                "msgType": 1
              }
            ],
            "source": 0,
            "msgSender": "211235336",
            "rIcon": "/-heart"
         },
        "ts": "1782286279518",
        "ttl": 0
    },
    "threadId": "7560225984834507848",
    "isSelf": false,
    "isGroup": true
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions