wechaty / python-wechaty

Python Wechaty is a Conversational RPA SDK for Chatbot Makers written in Python
https://wechaty.readthedocs.io/zh_CN/latest/
Apache License 2.0
1.55k stars 229 forks source link

🐛🐛 python-wechaty发送链接报错 #339

Open 1914049892 opened 2 years ago

1914049892 commented 2 years ago
image

代码是按照教程里main复制的,但是触发以后会出现下面的报错。

image

希望有大神可以帮忙参考一下

1914049892 commented 2 years ago

Wechaty - ERROR - internal error <the field is required in dataclass<<class 'wechaty_puppet.schemas.url_link.UrlLinkPayload'>>> 这是报错

wj-Mcat commented 2 years ago

Yes, there are some changed data schema in the puppet which I have fixed it. You can upgrade the version of wechaty to run your bot.

1914049892 commented 2 years ago

yes,I uesd 'wechay.UrlLink' to complete my work before, but I find a better way, using 'wechaty_puppet.schemas.url_link.UrlLinkPayload' also send the url's message

wj-Mcat commented 2 years ago

This is the tricky way which is not suggested. You can use the standard way to send message to avoid the latent issue. But anyway, as long as you're happy.

wj-Mcat commented 2 years ago

I think this issue has been fixed with latest version of wechaty, @1914049892 right ?