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

支持官方机器人新支持的markdown格式消息 #2851

Open
landall opened this issue May 1, 2024 · 1 comment
Open

支持官方机器人新支持的markdown格式消息 #2851

landall opened this issue May 1, 2024 · 1 comment
Labels
t:feature 类型: 新特性

Comments

@landall
Copy link

landall commented May 1, 2024

应该是属于QQ官方机器人文档【文本交互】-【指令操作】这个章节的。
QQ官方机器人有大量Markdown模版相关的接口。

这些接口发出来的消息,Mirai目前实现为{"type":"Plain","text":"[暂不支持该消息类型,请用最新版手机QQ查看]"}

我们在PC端旧版本上看到的具体内容为:

这是一条md消息  
  
>  [这是一个按钮] (mqqapi://aio/inlinecmd?command=%E6%88%91%E6%98%AF%E5%B0%8F%E7%94%B7%E5%A8%98&reply=false&enter=true)  

![]()
  
>

我回复的这条消息,被Mirai识别为:

{"type":"Quote","id":1093558,"senderId":3474523889,"targetId":871301822,"groupId":871301822,"origin":[{"type":"Plain","text":"[暂不支持该消息类型]@少女 \n这是一条md消息  \n  \n>  [这是一个按钮] (mqqapi://aio/inlinecmd?command=%E6%88%91%E6%98%AF%E5%"}]},{"type":"At","target":3474523889,"display":""}

刚才这条在界面上具体的样子是,上边是一行文本“这是一条md消息”,下边是一个超链接“[这是一个按钮]”,
点了之后会在本地直接执行inlinecmd命令,将command后边带的文字,代替你发给对方(是群的话,会自动at发这个链接的人)

希望能支持这种新的消息格式。

@landall landall added the t:feature 类型: 新特性 label May 1, 2024
@landall
Copy link
Author

landall commented May 1, 2024

我用的版本是mirai-core-all-2.16.0-all.jar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t:feature 类型: 新特性
Projects
None yet
Development

No branches or pull requests

1 participant