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
accordding to the api doc:
Wechaty Name. When you set this: new Wechaty({profile: 'wechatyName'}) it will generate a file called wechatyName.memory-card.json. This file stores the bot's login information. If the file is valid, the bot can auto login so you don't need to scan the qrcode to login again. Also, you can set the environment variable for WECHATY_PROFILE to set this value when you start. eg: WECHATY_PROFILE="your-cute-bot-name" node bot.js. This field is deprecated, please use name instead. https://github.com/wechaty/wechaty/issues/2049
Yes, the doc of python-wechaty is in a early stage, which will be improved in this summer. So I suggest that you can checkout the source code and example code to get the details about your problem.
Yes, the doc of python-wechaty is in a early stage, which will be improved in this summer. So I suggest that you can checkout the source code and example code to get the details about your problem.
Activity
wj-Mcat commentedon May 1, 2022
There is no json file configured in
WechatyOption.namefield which is to figure out the name of th bot.So, how do you know there is json file base on WechatyOption?
BTW, if you have the bot logined onece, the bot will keep online until you call
bot.logoutmethod.Please feel free to tell me more.
panwudi commentedon May 2, 2022

accordding to the api doc: Wechaty Name. When you set this: new Wechaty({profile: 'wechatyName'}) it will generate a file called wechatyName.memory-card.json. This file stores the bot's login information. If the file is valid, the bot can auto login so you don't need to scan the qrcode to login again. Also, you can set the environment variable for WECHATY_PROFILE to set this value when you start. eg: WECHATY_PROFILE="your-cute-bot-name" node bot.js. This field is deprecated, please use name instead. https://github.com/wechaty/wechaty/issues/2049wj-Mcat commentedon May 2, 2022
The above is the docs of ts-wechaty, not python-wechaty. So there are many differences between them.
I suggest that you can take a look at python-wechaty document or the source code of python-wechaty.
panwudi commentedon May 2, 2022
Wechaty 类中并没有logout这个方法啊? 源码里面也只有 on_logout
panwudi commentedon May 2, 2022
python-wechaty的文档里也错误的写了机器人登录保存文件

wj-Mcat commentedon May 2, 2022
Yes, the doc of python-wechaty is in a early stage, which will be improved in this summer. So I suggest that you can checkout the source code and example code to get the details about your problem.
panwudi commentedon May 2, 2022
嗯,谢谢。 另外heartbeat 捕获事件也不生效,不管是在Wechaty基类还是在实例里面的 on_heartbeat 方法中随便插一句输出语句都不生效。 我要如何监控到机器人在正常运行呢?
python学了三周,就为这个机器人现学的,可能问题比较低级。谢谢
shavingha commentedon Nov 30, 2023
where do you store login state ??
I have change computer, AND I can autologin too.......