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
There are some class that are also imported from wechaty-puppet package, so we should fix them.
To Reproduce
example code:
fromwechatyimportWechatyfromwechaty_puppetimportEventReadyPayloadimportasyncio# method oneasyncdefon_ready(payload: EventReadyPayload):
"""Any initialization work can be put in here Args: payload (EventReadyPayload): ready data """print(f'receive ready event<{payload}>')
bot=Wechaty()
bot.on('ready', on_ready)
asyncio.run(bot.start())
# method two (suggested)classMyBot(Wechaty):
asyncdefon_ready(self, payload: EventReadyPayload):
"""Any initialization work can be put in here Args: payload (EventReadyPayload): ready data """print(f'receive ready event<{payload}>')
asyncio.run(MyBot().start())
Describe the bug
As described in : https://github.com/wechaty/wechaty.js.org/pull/684#discussion_r588297559
There are some class that are also imported from
wechaty-puppet
package, so we should fix them.To Reproduce
We should keep ths
Additional context
The text was updated successfully, but these errors were encountered: