You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// params are just for example constmsg=newwechaty.MiniProgram({appid: 'foo_appid',username: 'foo_name@app',title: 'foo_title',description: 'blabla',pagePath: 'foo_path',iconUrl: 'foo_icon',thumbUrl: 'foo_url',thumbKey: 'foo_key',});
Obviously, the given value "" for originalMessageToUserName which could not pass the validation caused the error 💡.
I changed the value of originalMessageToUserName to the bot's wechat id manually(is that right? what is originalMessageToUserName?), and sent the msg again...
It worked 🎉! MiniProgram was sent and received successfully.
But another error printed:
Error: can not find message in cache for messageId: xxxxx
😓
So, what is the way to send a MiniProgram correctly?
The text was updated successfully, but these errors were encountered:
Construct a MiniProgram with params like this:
Error occured when trying send the msg:
Then I looked into the codes:
https://github.com/padlocal/wechaty-puppet-padlocal/blob/5608567a6c8b75839a90f50d61768b06e7391042/src/puppet-padlocal.ts#L797-L802
and in PadLocalClientApi#getEncryptedFile, there was a check for params:
Obviously, the given value
""
fororiginalMessageToUserName
which could not pass the validation caused the error 💡.I changed the value of
originalMessageToUserName
to the bot's wechat id manually(is that right? what isoriginalMessageToUserName
?), and sent the msg again...It worked 🎉! MiniProgram was sent and received successfully.
But another error printed:
😓
So, what is the way to send a MiniProgram correctly?
The text was updated successfully, but these errors were encountered: