Solved by UOS. WeChat Account that registered after 2017 mignt not be able to login Web Wechat, so it can not use PuppetWeChat with Wechaty. Please make sure your WeChat Account can be able to login by visiting https://wx.qq.com
Web API can not create room and invite members to room since 2018.
Can not Receive/Send message from Work Wechat.
If you want to break the above limitations, please consider to use a Wechaty Puppet other than using Web API, like wechaty-puppet-padchat.
We use stealth to make puppeteer more like a normal browser, if you want to disabled it, just set the WECHATY_PUPPET_WECHAT_PUPPETEER_STEALTHLESS environment variable to 1. eg. WECHATY_PUPPET_WECHAT_PUPPETEER_STEALTHLESS=1 ts-node your-bot.ts
In rare cases, we could meet some problem and see Error: Could not find expected browser when we start PuppetWeChatBridge and try to run initBrowser(). A easy way to solve this problem is set WECHATY_PUPPET_WECHAT_ENDPOINT environment variable to <your executablePath>. eg. WECHATY_PUPPET_WECHAT_ENDPOINT=/usr/bin/chromium-browser ts-node your-bot.ts
WECHATY-PUPPET-WECHAT
Wechaty Puppet for WeChat
KNOWN LIMITATIONS
WeChat Account that registered after 2017 mignt not be able to login Web Wechat, so it can not use PuppetWeChat with Wechaty. Please make sure your WeChat Account can be able to login by visiting https://wx.qq.comIf you want to break the above limitations, please consider to use a Wechaty Puppet other than using Web API, like wechaty-puppet-padchat.
Learn more about the Puppet at Wechaty wiki: Puppet
Note for Developers in China
Cause
storage.googleapis.comis blocked in mainland china, you’d better config by following guide.1. Linux & Mac
2. Windows
Learn more from https://github.com/GoogleChrome/puppeteer/issues/1597#issuecomment-351945645
How to set puppeteer launchOptions?
An example of adding executablePath to puppeteer.launch():
We use stealth to make puppeteer more like a normal browser, if you want to disabled it, just set the
WECHATY_PUPPET_WECHAT_PUPPETEER_STEALTHLESSenvironment variable to1. eg.WECHATY_PUPPET_WECHAT_PUPPETEER_STEALTHLESS=1 ts-node your-bot.tsIn rare cases, we could meet some problem and see
Error: Could not find expected browserwhen we start PuppetWeChatBridge and try to runinitBrowser(). A easy way to solve this problem is setWECHATY_PUPPET_WECHAT_ENDPOINTenvironment variable to<your executablePath>. eg.WECHATY_PUPPET_WECHAT_ENDPOINT=/usr/bin/chromium-browser ts-node your-bot.tspuppetOptions
HISTORY
master v1.12 (Mar 11, 2022)
Release stable for the standard Web Protocol
v1.0 (Oct 30, 2021)
Release 1.0 of Wechaty Puppet for WeChat
v0.28 (Apr 13, 2021)
重磅:绕过登录限制,wechaty免费版web协议重放荣光
v0.26 (Mar 4, 2021)
Rename NPM package name from
wechaty-puppet-puppeteertowechaty-puppet-wechatv0.24 (Feb 20, 2021)
v0.22 (Jun 18, 2020)
Release a version before upgrade.
v0.14 (Aug, 2018)
v0.2 (May, 2018)
wechaty-puppet-puppeteerFAQ
1. chrome-linux/chrome: error while loading shared libraries: libXXX.so.x: cannot open shared object file: No such file or directory
You need to be able to run chrome in your Linux environment. If you are using Ubuntu Linux:
apt install libnss3apt install libgbm-devapt install libxshmfence-devapt install libxss1See: https://github.com/wechaty/wechaty/issues/1152
AUTHOR
Huan LI Tencent TVP of Chatbot <zixia@zixia.net>
COPYRIGHT & LICENSE