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?
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?