wechaty / puppet-official-account

Wechaty Puppet for WeChat Official Account
https://wechaty.js.org/2020/11/06/wechaty-puppet-oa-released-en/
Apache License 2.0
16 stars 7 forks source link

适配Wechaty1.x 字段 #30

Closed leochen-g closed 1 year ago

leochen-g commented 1 year ago

1、适配Wechaty 1.x 部分字段 2、修复message为空的问题 3、解决头像为空的问题

leochen-g commented 1 year ago

LGTM

Thank you very much for the improvements!

跑单元测试的 测试公众号好像是不通的,导致没法通过test

huan commented 1 year ago
Error: OfficialAccount sendCustomMessage() can send message <{"content":"wechaty-puppet-official-account CI testing","msgtype":"text","touser":"ooEEu1Pdb4otFUedqOx_LP1p8sSQ"}>

The OA account in unit tests is my developing account; it can only be successful if the target user sends a message to the OA account in the past 24 hours because of the limitation of Tencent.

I (my WeChat account in this OA is ooEEu1Pdb4otFUedqOx_LP1p8sSQ) have just sent a message to the OA account in the unit test; I think it will work in the following 24 hours.

Please feel free to provide better solutions if you have any new ideas, and I'm open to discussing them.

Thanks!

huan commented 1 year ago

It seems the CI works now:

image