Closed readen closed 1 year ago
消息体的格式如下 { "uuid": "54b83e3cac29aa5635a4b540ac8a9882", "event": { "app_id": "cli_a3210d06667a5062", "chat_type": "group", "employee_id": "xx", "is_mention": true, "message_id": "", "msg_type": "text", "open_chat_id": "xx", "open_id": "xx", "open_message_id": "om_6063760aecb6cac19dd3e6ac5dec5478", "parent_id": "", "root_id": "", "tenant_key": "xx", "text": "<at open_id=\"xx\">机器人</at> ddd", "text_without_at_bot": " ddd", "type": "message", "union_id": "on_cdff065033c515aa1abd4d67c3768c73", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 12_4_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.99 Safari/537.36 Lark/5.10.13 LarkLocale/zh_CN ttnet SDK-Version/5.10.49", "user_open_id": "xx" }, "token": "xx", "ts": "1672757393.949837", "type": "event_callback" }
{ "uuid": "54b83e3cac29aa5635a4b540ac8a9882", "event": { "app_id": "cli_a3210d06667a5062", "chat_type": "group", "employee_id": "xx", "is_mention": true, "message_id": "", "msg_type": "text", "open_chat_id": "xx", "open_id": "xx", "open_message_id": "om_6063760aecb6cac19dd3e6ac5dec5478", "parent_id": "", "root_id": "", "tenant_key": "xx", "text": "<at open_id=\"xx\">机器人</at> ddd", "text_without_at_bot": " ddd", "type": "message", "union_id": "on_cdff065033c515aa1abd4d67c3768c73", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 12_4_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.99 Safari/537.36 Lark/5.10.13 LarkLocale/zh_CN ttnet SDK-Version/5.10.49", "user_open_id": "xx" }, "token": "xx", "ts": "1672757393.949837", "type": "event_callback" }
目前能支持,对应的事件为'message'。
消息体的格式如下
{ "uuid": "54b83e3cac29aa5635a4b540ac8a9882", "event": { "app_id": "cli_a3210d06667a5062", "chat_type": "group", "employee_id": "xx", "is_mention": true, "message_id": "", "msg_type": "text", "open_chat_id": "xx", "open_id": "xx", "open_message_id": "om_6063760aecb6cac19dd3e6ac5dec5478", "parent_id": "", "root_id": "", "tenant_key": "xx", "text": "<at open_id=\"xx\">机器人</at> ddd", "text_without_at_bot": " ddd", "type": "message", "union_id": "on_cdff065033c515aa1abd4d67c3768c73", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 12_4_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.99 Safari/537.36 Lark/5.10.13 LarkLocale/zh_CN ttnet SDK-Version/5.10.49", "user_open_id": "xx" }, "token": "xx", "ts": "1672757393.949837", "type": "event_callback" }