https://github.com/wechaty/wechaty-puppet-padchat
Padchat Puppet for Wechaty
https://github.com/wechaty/wechaty-puppet-padchat
Last synced: about 1 year ago
JSON representation
Padchat Puppet for Wechaty
- Host: GitHub
- URL: https://github.com/wechaty/wechaty-puppet-padchat
- Owner: wechaty
- License: apache-2.0
- Archived: true
- Created: 2018-05-18T02:25:30.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-12-01T12:35:00.000Z (over 6 years ago)
- Last Synced: 2024-10-13T23:47:23.341Z (almost 2 years ago)
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/wechaty-puppet-padchat
- Size: 913 KB
- Stars: 281
- Watchers: 22
- Forks: 46
- Open Issues: 84
-
Metadata Files:
- Readme: README-en.md
- License: LICENSE
Awesome Lists containing this project
README
# WECHATY-PUPPET-PADCHAT (DEPRECATED)
[](https://github.com/chatie/wechaty)
[](https://www.npmjs.com/package/wechaty-puppet-padchat)
[](https://www.npmjs.com/package/wechaty-puppet-padchat?activeTab=versions)
[](https://www.typescriptlang.org/)
[](https://travis-ci.com/lijiarui/wechaty-puppet-padchat) [](https://greenkeeper.io/)
# DEPRECATED
This project is no longer maintained and supported, for people who need to use iPad way connect to wechat, please check [`wechaty-puppet-padpro`](https://github.com/botorange/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](https://github.com/Chatie/wechaty/issues/1167).
## INSTALL
```shell
npm install wechaty
npm install wechaty-puppet-padchat
```
## SOURCE
```ts
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()
```
## RUN
```shell
./node_modules/.bin/ts-node examples/wechaty-padchat-bot.ts
```
## Get Token
Scan the qrcode to contact us and ask for token

[More info about token](https://github.com/lijiarui/wechaty-puppet-padchat/wiki/Buy-Padchat-Token)
## Doc
https://docs.chatie.io/wechaty
## AUTHOR
Jiarui LI
## LICENSE
Apache-2.0