# 频道消息事件


## 用户添加或删除消息回应（小表情）

```json
{
  "sequence": 8830551,
  "type": "5003",
  "notify_type": "",
  "data": {
    "channel_id": "3638452309568749568",
    "emoji": "[cube_doge]",
    "is_add": 1,
    "msg_id": "1843536909979836416",
    "user_id": 8829926
  },
  "timestamp": 1728454873111
}
```

其中，“type: '5003'”代表用户添加或删除消息回应（小表情）。

“data”对象具体内容如下：

|字段|类型|描述|
|----|----|----|
|**channel_id**|string|特定的频道 ID，用于标识消息所属的频道。|
|**emoji**|string|包含具体的表情符号内容。|
|**is_add**|int|该标识用于确定用户的操作，1 表示添加消息回应小表情，0 表示删除消息回应小表情。|
|**msg_id**|string|消息 ID。|
|**user_id**|int64|用户ID。|

## 卡片Button点击事件
**type:card_message_btn_click**

```
{
  "sequence": 16262218082,
  "
  type": "card_message_btn_click",
  "notify_type": "",
  "data": {
    "channel_base_info": {
      "channel_id": "369004237398395xxx",
      "channel_name": "默认频道",
      "channel_type": 1
    },
    "event": "link-to",
    "msg_id": "1856516177490542xxx",
    "os_type": "web",
    "room_base_info": {
      "room_avatar": "",
      "room_id": "369004237384583xxx",
      "room_name": "测试房间"
    },
    "send_time": 1731462951354,
    "sender_info": {
      "avatar": "https://cdn.max-c.com/heybox/profile/avatar/heygirl_3.png",
      "avatar_decoration": {
        "src_type": "image",
        "src_url": "https://imgheybox.max-c.com/oa/2024/08/19/02e11b983bbd0fdcd5d9db03989ad713.gif"
      },
      "bot": false,
      "level": 10,
      "medals": null,
      "nickname": "测试用户",
      "roles": null,
      "room_nickname": "",
      "tag": null,
      "user_id": 4302xxxx
    },
    "text": "复制",
    "value": "https://chat.top"
  },
  "timestamp": 1731462951362
}
```
| 字段名 | 类型 | 描述 |
| ---- | ---- | ---- |
| room_base_info |Object| 房间基础信息|
| channel_base_info |Object| 频道基础信息|
| sender_info |Object| 发送者信息|
| event | 字符串（String） | 对应发送的卡片消息中的Button组件中的 event|
| msg_id | 字符串（String） | 用户点击的消息ID|
| text | 字符串（String） | 用户点击的卡片消息的指定Button的text |
| value | 字符串（String） | 用户点击的卡片消息的指定Button的Value |

![](https://imgheybox.max-c.com/oa/2024/11/13/486a2ad92b3b92de23eb94c95104489a.png)



