- 咸鱼api
- 机器人api
- wechatAgents_go_api
- xy_bot
- 朋友
- 群组
- 登录
- 工具
- 红包
- 用户
- 消息
机器人消息推送
SaltedFishApi
SaltedFishApi
POST
https://api.frz.fan/robot_api/MessagePush
请求数据为json格式(暂定用json格式) 返回数据为protobuf格式(压缩空间 节省带宽) 请自行学习
请求参数
Header 参数
data
string
可选
示例值:
app1231
appid
string
必需
Body 参数application/json
robot_id
string
必需
robot_name
string
机器人的名字
is_group
boolean
是否为群聊
type
integer
必需
content
string
执行的内容
message_id
消息的id
chatroom_id
string
群id
chatroom_name
string
群名称
user_id
string
用户id
username
string
用户名称
at_user_id
string
被操作的用户id
at_user_name
string
被操作的用户名称
platform
string
必需
instruction_request_name
string
执行的指令
set_timed_task
boolean
可选
set_timed_task_info
object
设置定时任务
timed_task_run_time
integer
可选
task_name
string
任务的名称
task_args
string
任务的参数
app_id
string
必需
timestamp
integer
时间戳
current_time
string
时间
signature
string
签名
示例
{
"robot_id": "robot122223",
"robot_name": "RobotOne",
"is_group": true,
"type": 1,
"content": "Hello, this is a test message!",
"message_id": 1234567890123456800,
"chatroom_id": "chatroom456",
"chatroom_name": "Test Chatroom",
"user_id": "user789",
"username": "JohnDoe",
"at_user_id": "user101",
"at_user_name": "JaneDoe",
"platform": "wx",
"instruction_request_name": "SignIn",
"call_whether_need_at": true,
"set_timed_task": true,
"set_timed_task_info": {
"timed_task_run_time": 1700000000,
"task_name": "BackupData",
"task_args": "arg1,arg2,arg3"
},
"app_id": "app1231",
"timestamp": 1699999999,
"current_time": "2024-12-24T10:00:00Z",
"signature": "abc123signature"
}
返回响应
🟢200成功
text/event-stream
Body
object {0}
修改于 2025-02-22 10:35:36