Chronocat Satori (0.0.50)
Download OpenAPI specification:Download
URL: https://github.com/chrononeko License: AGPL-3.0
这是一份 Chronocat Satori OpenAPI 的完整定义文件。
任何时候,你都可以从 https://chronocat.vercel.app/openapi.yaml 获取到此文件。
创建私聊频道
创建一个私聊频道。
Authorizations:
satori
Request Body schema: application/json
要私聊的用户
user_id required | string |
Responses
Request samples
- Payload
Content type
application/json
{- "user_id": "string"
}
Response samples
- 200
Content type
application/json
{- "id": "string",
- "name": "string",
- "type": 0,
- "parent_id": "string",
- "avatar": "string"
}
获取群组列表
获取当前用户加入的全部群组。
Authorizations:
satori
Request Body schema: application/json
分页
next | string (分页令牌) 获取下一页时提供的分页令牌,获取第一页时为空。 |
Responses
Request samples
- Payload
Content type
application/json
{- "next": "string"
}
Response samples
- 200
Content type
application/json
[- {
- "data": [
- {
- "id": "string",
- "name": "string",
- "avatar": "string"
}
], - "next": "string"
}
]
获取群组成员列表
获取群组成员列表。
Authorizations:
satori
Request Body schema: application/json
群组
guild_id required | string |
next | string (分页令牌) 获取下一页时提供的分页令牌,获取第一页时为空。 |
Responses
Request samples
- Payload
Content type
application/json
{- "guild_id": "string",
- "next": "string"
}
Response samples
- 200
Content type
application/json
{- "data": [
- {
- "user": {
- "id": "string",
- "name": "string",
- "nick": "string",
- "avatar": "string",
- "is_bot": true
}, - "nick": "string",
- "avatar": "string"
}
], - "next": "string"
}
发送消息
发送一条消息。
Authorizations:
satori
Request Body schema: application/json
发送的目标和消息内容
channel_id required | string (目标频道) 消息要发送到的频道。 在 Chronocat,群聊对应的频道为群号, 私聊对应的频道为 private: 后跟 QQ 号。 |
content required | string (消息内容) 消息的内容。 格式为 Satori 消息元素字符串。 |
Responses
Request samples
- Payload
Content type
application/json
{- "channel_id": "string",
- "content": "string"
}
Response samples
- 200
Content type
application/json
[- {
- "id": "string",
- "content": "string",
- "channel": {
- "id": "string",
- "name": "string",
- "type": 0,
- "parent_id": "string",
- "avatar": "string"
}, - "guild": {
- "id": "string",
- "name": "string",
- "avatar": "string"
}, - "member": {
- "user": {
- "id": "string",
- "name": "string",
- "nick": "string",
- "avatar": "string",
- "is_bot": true
}, - "nick": "string",
- "avatar": "string"
}, - "user": {
- "id": "string",
- "name": "string",
- "nick": "string",
- "avatar": "string",
- "is_bot": true
}, - "created_at": 0,
- "updated_at": 0
}
]
获取好友列表
获取好友列表。
Authorizations:
satori
Request Body schema: application/json
分页
next | string (分页令牌) 获取下一页时提供的分页令牌,获取第一页时为空。 |
Responses
Request samples
- Payload
Content type
application/json
{- "next": "string"
}
Response samples
- 200
Content type
application/json
[- {
- "data": [
- {
- "id": "string",
- "name": "string",
- "nick": "string",
- "avatar": "string",
- "is_bot": true
}
], - "next": "string"
}
]