We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
MessageSegement.forward
mirai-api-http
nonebot-adapter-mirai2==0.0.19 nonebot2==2.0.0rc2
nonebot-adapter-mirai2==0.0.19
nonebot2==2.0.0rc2
nonebot-adapter-mirai2 的实现:
nonebot_adapter_mirai2/nonebot/adapters/mirai2/message.py
Lines 332 to 348 in b756273
mirai-api-http 文档中的描述: mirai-api-http | ForwardMessage 消息类型
mah 中的 nodeList 为 object 类型,而项目中对 node_list 的类型标注为 str。
nodeList
object
node_list
str
The text was updated successfully, but these errors were encountered:
下面的代码可以构建一个能够发送的 ForwardMessage:
ForwardMessage
from nonebot.adapters.mirai2.message import MessageSegment, MessageType MessageSegment( type=MessageType.FORWARD, nodeList=[ { "senderId": 10001, "time": 0, "senderName": "bot", "messageChain": [ MessageSegment.plain("TEST") ] } ] )
Sorry, something went wrong.
@HelloGwkki 这个接口我并没有用过,所以没有留意应该是什么样子的。到时候有空我看看
No branches or pull requests
环境
nonebot-adapter-mirai2==0.0.19
nonebot2==2.0.0rc2
相关资料
nonebot-adapter-mirai2 的实现:
nonebot_adapter_mirai2/nonebot/adapters/mirai2/message.py
Lines 332 to 348 in b756273
mirai-api-http 文档中的描述:
mirai-api-http | ForwardMessage 消息类型
mah 中的
nodeList
为object
类型,而项目中对node_list
的类型标注为str
。The text was updated successfully, but these errors were encountered: