python-wechaty icon indicating copy to clipboard operation
python-wechaty copied to clipboard

🐛🐛 python-wechaty发送链接报错

Open 1914049892 opened this issue 3 years ago • 5 comments

image 代码是按照教程里main复制的,但是触发以后会出现下面的报错。 image 希望有大神可以帮忙参考一下

1914049892 avatar Jul 04 '22 04:07 1914049892

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

1914049892 avatar Jul 04 '22 04:07 1914049892

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.

wj-Mcat avatar Jul 04 '22 05:07 wj-Mcat

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

1914049892 avatar Jul 04 '22 05:07 1914049892

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 avatar Jul 04 '22 05:07 wj-Mcat

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

wj-Mcat avatar Jul 06 '22 11:07 wj-Mcat