-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
不能发送小程序(1217) #240
Comments
As the error log, you can't init |
Hi, I also cannot send the mini-program message whatever I crate from json or send the message back if the message is mini-programe |
When I follow the python-wechaty/examples/ding-dong-bot-oop.py, using if msg.type() == MessageType.MESSAGE_TYPE_MINI_PROGRAM:
mini_program: Optional[MiniProgram] = await msg.to_mini_program() `
it also return the error:
`2022-02-06 23:12:27,754 - Wechaty - ERROR - internal error <WechatyPuppetPayloadError('can"t init mini-program payload {\'appid\': \'wxf872ea5294e051c0\', \'description\': \'欢乐球球\', \'pagePath\': \'?fuid=188521086&shareSource=1&shareId=6&time=1644098964900\', \'iconUrl\': \'http://mmbiz.qpic.cn/mmbiz_png/SB3eCkicPyC3Ap7MJ98018RB6nJf7Zp1u9567qoE4fKlzbCgH6MYBKibyhdrfUGibgv8icfQvgfd6qlrW2aowNe1icw/640?wx_fmt=png&wxfrom=200\', \'thumbUrl\': \'30580201000451304f020100020435200c5902030f5bd1020413e0cdcb020462003e78042a777875706c6f61645f777869645f6b646c346f3469767030383532325f37365f313634343138333136300204011c00030201000400\', \'title\': \'这游戏也太虐了,我为什么要手贱点进来…\', \'username\': \'gh_c7d9baff425d@app\', \'thumbKey\': \'18626dcdbbd8f465adbfb9da3fb00153\', \'thumbSize\': \'38175\', \'thumbMd5\': \'3e108ff9dedc7d0b8547a71d94f49826\'}', None, None)>` How can I fix the error? Thanks! |
@Hyfred I help you beautify the example code above. Please tell me what the token do you use ? |
Closed by inactive, and it has been be fixed. |
Wechaty - ERROR - internal error <WechatyAccessoryBindingError('Do not instantiate class MiniProgram directly, sse with bot.MiniProgram instead. See wechaty/wechaty#1217', None, None)>
The text was updated successfully, but these errors were encountered: