获取好友历史消息记录
POST
/get_friend_msg_history请求参数
Body 参数application/json
user_id
integer
必需
示例
{
"user_id": 0
}
示例代码
返回响应
成功(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": 379450326,
"user_id": 379450326,
"time": 1727071003,
"message_id": 1898394369,
"real_id": 1898394369,
"message_seq": 1898394369,
"message_type": "private",
"sender": {
"user_id": 379450326,
"nickname": "--",
"card": ""
},
"raw_message": "[CQ:image,file=A6ABA306AAE1AF175C0452868A09824B.png,subType=0,url=https://multimedia.nt.qq.com.cn/download?appid=1406&fileid=Cgk3MjEwMTE2OTISFHk2DU4LCJVL55THYAdYFRGBNBTIGLgaIP4KKKrRk-2w2IgDMgRwcm9k&spec=0&rkey=CAQSKAB6JWENi5LM6IC2hBDLIDV-Ozb5pRGcI6HiFqrC-GYi3MfoTVFONyc,file_size=3384]",
"font": 14,
"sub_type": "friend",
"message": [
{
"type": "image",
"data": {
"file": "A6ABA306AAE1AF175C0452868A09824B.png",
"subType": 0,
"url": "https://multimedia.nt.qq.com.cn/download?appid=1406&fileid=Cgk3MjEwMTE2OTISFHk2DU4LCJVL55THYAdYFRGBNBTIGLgaIP4KKKrRk-2w2IgDMgRwcm9k&spec=0&rkey=CAQSKAB6JWENi5LM6IC2hBDLIDV-Ozb5pRGcI6HiFqrC-GYi3MfoTVFONyc",
"file_size": "3384"
}
}
],
"message_format": "array",
"post_type": "message_sent"
}
]
},
"message": "",
"wording": ""
}
最后修改时间: 1 个月前