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

Bug: 2.6.2版本,接收老版消息卡片时解析报错 #110

Open
ww1126811502 opened this issue Oct 18, 2024 · 0 comments
Open

Bug: 2.6.2版本,接收老版消息卡片时解析报错 #110

ww1126811502 opened this issue Oct 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ww1126811502
Copy link

操作系统

Windows

Python 版本

3.10.0

NoneBot 版本

2.3.3

飞书适配器版本

2.6.2

描述问题

bot在私聊收到消息卡片时报错:
TypeError: MessageSegment.interactive() got an unexpected keyword argument 'title'

完整堆栈:
10-18 10:36:16 [INFO] uvicorn | 192.168.40.83:63152 - "POST /feishu/cli_a79a04a4015ed00b HTTP/1.0" 200
Task exception was never retrieved
future: <Task finished name='Task-43' coro=<Bot.handle_event() done, defined at E:\spcae\AlertBot.venv\lib\site-packages\nonebot\adapters\feishu\bot.py:395> exception=TypeError("MessageSegment.interactive() got an unexpected keyword argument 'title'")>
Traceback (most recent call last):
File "E:\spcae\AlertBot.venv\lib\site-packages\nonebot\adapters\feishu\bot.py", line 397, in handle_event
_check_at_me(self, event)
File "E:\spcae\AlertBot.venv\lib\site-packages\nonebot\adapters\feishu\bot.py", line 70, in _check_at_me
if not (message := event.get_message()):
File "E:\spcae\AlertBot.venv\lib\site-packages\nonebot\adapters\feishu\event.py", line 149, in get_message
deserialized = Message.deserialize(
File "E:\spcae\AlertBot.venv\lib\site-packages\nonebot\adapters\feishu\message.py", line 686, in deserialize
msg.append(seg_builder(**parsed_content))
TypeError: MessageSegment.interactive() got an unexpected keyword argument 'title'

复现步骤

向bot发送消息卡片即可

期望的结果

d

截图或日志

d

@ww1126811502 ww1126811502 added the bug Something isn't working label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant