跳转至

get_chatroom_msgs

ChatroomMsg dataclass

吧群消息

属性:

名称 类型 描述
msg_id int

消息id

msg_key str

消息key

msg_type int

消息类型

user_id int

发送者user_id 为0时表示系统消息

content dict

消息内容的原始json字符串解析得到的结构 随消息类型变化

text str

文本消息的正文 非文本消息为空字符串

create_time int

发送时间 10位时间戳 以秒为单位

ChatroomMsgs dataclass

吧群消息列表

属性:

名称 类型 描述
objs list[ChatroomMsg]

吧群消息列表

err Exception | None

捕获的异常