获取群历史消息
POST
/get_group_msg_history请求参数
Body 参数application/json
group_id
number
必需
message_seq
number
可选
count
integer
可选
默认值:
20
示例
{
"group_id": 0,
"message_seq": 0,
"count": 20
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
status
string
必需
retcode
integer
必需
data
object
必需
messages
array [object {15}]
必需
message
string
必需
wording
string
必需
示例
{
"status": "ok",
"retcode": 0,
"data": {
"messages": [
{
"self_id": 721011692,
"user_id": 721011692,
"time": 1729603046,
"message_id": 1170696403,
"real_id": 1170696403,
"message_seq": 1170696403,
"message_type": "group",
"sender": {
"user_id": 721011692,
"nickname": "--",
"card": "",
"role": "owner",
"title": ""
},
"raw_message": "[CQ:image,file=A507E29F9F727D689AE43A575A6B74A0.png,subType=0,url=https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=EhQSdGwB1zdTx3vOFHPIk4LH5klh7hj1lTUg_woowbaBuYmiiQMyBHByb2RQgL2jAVoQpNtWwVRr3APaJXD4AV4i-A&spec=0&rkey=CAMSKMa3OFokB_TlF7FTUNo885mvsACBYlQMuIeT35gwt0_yutJf2r5AaUQ,file_size=871157]",
"font": 14,
"sub_type": "normal",
"message": [
{
"type": "image",
"data": {
"file": "A507E29F9F727D689AE43A575A6B74A0.png",
"subType": 0,
"url": "https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=EhQSdGwB1zdTx3vOFHPIk4LH5klh7hj1lTUg_woowbaBuYmiiQMyBHByb2RQgL2jAVoQpNtWwVRr3APaJXD4AV4i-A&spec=0&rkey=CAMSKMa3OFokB_TlF7FTUNo885mvsACBYlQMuIeT35gwt0_yutJf2r5AaUQ",
"file_size": "871157"
}
}
],
"message_format": "array",
"post_type": "message_sent",
"group_id": 860105388
}
]
},
"message": "",
"wording": ""
}
最后修改时间: 1 个月前