This project is no longer maintained and supported, for people who need to use iPad way connect to wechat, please check wechaty-puppet-padpro
wechaty-puppet-padpro
is an upgrade version of this project, provides more features and more stable service.
This module is a sub module of Wechaty Puppet.
npm install wechaty
npm install wechaty-puppet-padchat
import { Wechaty } from 'wechaty'
const WECHATY_PUPPET_PADCHAT_TOKEN = 'your-token-here'
const puppet = 'wechaty-puppet-padchat'
const puppetOptions = {
token: WECHATY_PUPPET_PADCHAT_TOKEN,
}
const bot = new Wechaty({
puppet,
puppetOptions,
})
// You are all set
// Run wechaty
bot
.on('scan', (qrcode, status) => console.log(`Scan QR Code to login: ${status}\nhttps://api.qrserver.com/v1/create-qr-code/?data=${encodeURIComponent(qrcode)}`))
.on('login', user => console.log(`User ${user} logined`))
.on('message', message => console.log(`Message: ${message}`))
.start()
./node_modules/.bin/ts-node examples/wechaty-padchat-bot.ts
Scan the qrcode to contact us and ask for token
https://docs.chatie.io/wechaty
Jiarui LI [email protected]
Apache-2.0