Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如果我启用 singleMode, 我该如何得知机器人账号的 id #386

Closed
GreyElaina opened this issue Jul 2, 2021 · 2 comments
Closed

Comments

@GreyElaina
Copy link

RT, require GET /sessionInfo.

@drsanwujiang
Copy link

利用Webhook的上报功能?

https://github.com/project-mirai/mirai-api-http/blob/master/docs/adapter/WebhookAdapter.md

webhook 不会接收主动请求, 只会接收到事件后向知道地址进行 http 上报. 但远端服务器可以通过 “响应” 进行简单的操作.

webhook 上报的内容为消息、事件的对象 消息类型、事件类型

http 请求会携带配置文件中定义的请求头,以及固定的请求头 qq: xxxxxx, 以表示收到消息事件的账号

@cyanray
Copy link

cyanray commented Jul 4, 2021

确实需要一个获取bot qq的接口,session release接口要用到这个qq。

@ryoii ryoii closed this as completed in 4e7d094 Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants