realhuhu / py-plugin

miao py-plugin
GNU General Public License v3.0
48 stars 3 forks source link

send_group_forward_msg方法无法处理messages为MessageSegment的node消息 #20

Closed ProblemFactory closed 1 year ago

ProblemFactory commented 1 year ago

在使用nonebot_plugin_epicfree插件时遇到了调用py-plugin/nonebot/adapters/onebot/v11/bot.pysend_group_forward_msg失败的问题。此时messages中的元素为type为node的MessageSegment类型,需要使用i.data['nickname'], i.data['user_id']i.data['content']读取其中内容而不是i['data']['name'], i['data']['uin'], i['data']['content']

realhuhu commented 1 year ago

已修复