获取群历史消息
POST
/get_group_msg_history
请求参数
Body 参数application/json
group_id
group_id
One of
message_seq
message_id
One of
count
number
数量
reverseOrder
boolean
倒序
示例
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/get_group_msg_history' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
status
enum<string>
必需
枚举值:
ok
retcode
number
必需
data
object
必需
message
array[object (消息详情) {16}]
必需
message
string
必需
wording
string
必需
echo
string | null
必需
示例
{
"status": "ok",
"retcode": 0,
"data": {
"message": [
{
"self_id": 0,
"user_id": 0,
"time": 0,
"message_id": 0,
"message_seq": 0,
"real_id": 0,
"message_type": "string",
"sender": {
"user_id": 0,
"nickname": "string",
"sex": "male",
"age": 0,
"card": "string",
"role": "owner"
},
"raw_message": "string",
"font": 0,
"sub_type": "string",
"message": [
{
"type": "text",
"data": {
"text": "string"
}
}
],
"message_format": "string",
"post_type": "string",
"message_sent_type": "string",
"group_id": 0
}
]
},
"message": "string",
"wording": "string",
"echo": "string"
}
修改于 2024-10-31 10:52:13