聊天室上下行消息事件
聊天室上下行消息仅针对在聊天室 的事件监听、chat_mt_message_notify(聊天室下行消息接收) 、chat_mo_message_notify(聊天室上行消息接收)
字段
数据类型
是否必填
描述
wabaId
String
是
Waba Id
from
String
是
企业Sender
to
String
是
用户WhatsApp 号码
messageType
String
是
消息类型
context
Object
是
消息内容
wamid
String
否
Mete消息ID
conversationId
String
否
会话ID(InnoPaaS聊天室会话ID)
uid
String
否
用户自定义Id
sendTime
String
是
发送时间,UTC,如:2026-07-09T09:11:23.405Z
sendTimestamp
String
是
发送时间戳,精确到毫秒,如:1783588283405
chat_mt_message_notify 示例
{
"id": "b5e984b3-21b2-42a9-b08b-72e5a4096ac6",
"type": "chat_mt_message_notify",
"eventTime": "2023-02-22T12:00:00.000Z",
"body": {
"wabaId": "WHATSAPP_BUSINESS_ACCOUNT_ID",
"from": "wamid.BgNODYxN...",
"to": "PHONE-NUMBER",
"messageType": "text",
"context": {
"text":"this is test message"
},
"wamid": "wamid.BgNODYxN...",
"conversationId": "12312312312312",
"uid":"123123123123123213123",
"sendTime":"2026-07-09T09:11:23.405Z",
"sendTimestamp":"1783588283405"
}
}chat_mo_message_notify 示例
最后更新于