https://www.example.com
.
Example:https://www.example.com?SdkAppid=$SDKAppID&CallbackCommand=$CallbackCommand&contenttype=json&ClientIP=$ClientIP&OptPlatform=$OptPlatform
Parameter | Description |
https | The request protocol is HTTPS, and the request method is POST |
www.example.com | Callback URL |
SdkAppid | SDKAppID allocated by the Chat console at the time of Application creation |
CallbackCommand | Fixed to Group.CallbackAfterReadReceipt |
contenttype | Fixed value: JSON |
ClientIP | Client IP, such as 127.0.0.1 |
OptPlatform | Client platform, see the meaning of OptPlatform in Webhook Overview: Callback Protocol |
{"CallbackCommand": "Group.CallbackAfterReadReceipt", // Callback after read receipt"GroupId": "@TGS#2TTV7VSII", // Group ID"Type": "Public", // Group Type"GroupMsgReceiptList": [ // Read Receipt Message{"MsgSeq": 1,"ReadNum": 1, // Group message read count"UnreadNum": 6 // Group message unread count"ReadReceiptMembers":[{"Member_Account":"user0"}]},{"MsgSeq": 2,"ReadNum": 1,"UnreadNum": 6,"ReadReceiptMembers":[{"Member_Account":"user0"}]}],"EventTime":"1670574414123"// Event trigger timestamp in milliseconds}
Field | Type | Description |
CallbackCommand | String | Callback command |
GroupId | String | Operating Group ID |
Type | String | |
GroupMsgReceiptList | Array | Read Receipt Information |
MsgSeq | Integer | Message Seq |
ReadNum | Integer | Number of Read Members |
UnreadNum | Integer | Number of Unread Members |
ReadReceiptMembers | Array | List of Read Members, Member_Account is the UserID of members who have read |
EventTime | Integer | Event trigger timestamp in milliseconds |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0 // Ignore callback result}
Field | Type | Attribute | Description |
ActionStatus | String | Required | Processed Request Result: OK: Indicates successful processing FAIL: Indicates failure |
ErrorCode | Integer | Required | Error Code, entering 0 here means to ignore the response result |
ErrorInfo | String | Required | Error message |
Was this page helpful?