获取消息详情
POST
/get_msg
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
message_id
number
必需
示例
{
"message_id": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:3000/get_msg' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
status
string
必需
retcode
integer
必需
data
object
必需
self_id
integer
必需
user_id
integer
必需
time
integer
必需
message_id
integer
必需
real_id
integer
必需
message_seq
integer
必需
message_type
string
必需
sender
object
必需
raw_message
string
必需
font
integer
必需
sub_type
string
必需
message
array [object {2}]
必需
message_format
string
必需
post_type
string
必需
group_id
integer
必需
message
string
必需
wording
string
必需
示例
{
"status": "ok",
"retcode": 0,
"data": {
"self_id": 721011692,
"user_id": 721011692,
"time": 1729679125,
"message_id": 966671988,
"real_id": 966671988,
"message_seq": 966671988,
"message_type": "group",
"sender": {
"user_id": 721011692,
"nickname": "--",
"card": "",
"role": "owner",
"title": ""
},
"raw_message": "您好",
"font": 14,
"sub_type": "normal",
"message": [
{
"type": "text",
"data": {
"text": "您好"
}
}
],
"message_format": "array",
"post_type": "message_sent",
"group_id": 860105388
},
"message": "",
"wording": ""
}
修改于 2024-10-23 10:28:24