README.md 31.7 KB
Newer Older
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
1
# Wechaty [![NPM Version](https://img.shields.io/npm/v/wechaty?color=brightgreen)](https://www.npmjs.com/package/wechaty) [![NPM](https://github.com/wechaty/wechaty/workflows/NPM/badge.svg)](https://github.com/wechaty/wechaty/actions?query=workflow%3ANPM) [![Docker](https://github.com/wechaty/wechaty/workflows/Docker/badge.svg)](https://github.com/wechaty/wechaty/actions?query=workflow%3ADocker)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
2

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
3
[![Wechaty](https://wechaty.js.org/img/wechaty-logo.svg)](https://wechaty.js.org)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
4

5
[![Downloads](https://img.shields.io/npm/dm/wechaty.svg?style=flat-square)](https://www.npmjs.com/package/wechaty)
6
[![GitHub stars](https://img.shields.io/github/stars/wechaty/wechaty.svg?label=github%20stars)](https://github.com/wechaty/wechaty)
7
[![Docker Pulls](https://img.shields.io/docker/pulls/wechaty/wechaty.svg?maxAge=2592000)](https://hub.docker.com/r/wechaty/wechaty/)
8
[![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-blue.svg)](https://www.typescriptlang.org/)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
9
[![Gitter](https://badges.gitter.im/wechaty/wechaty.svg)](https://gitter.im/wechaty/wechaty?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
10
[![Telegram Wechaty Channel](https://img.shields.io/badge/chat-on%20telegram-blue)](https://t.me/wechaty)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
11

L
lijiarui 已提交
12
## :hearts: Connecting Chatbots
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
13

14
Wechaty is a Conversational SDK for Chatbot Makers which can help you create a bot in 6 lines of [JavaScript](https://GitHub.com/Wechaty/wechaty), [Python](https://GitHub.com/Wechaty/python-wechaty/), [Go](https://GitHub.com/Wechaty/go-wechaty/), and [Java](https://GitHub.com/Wechaty/java-wechaty/), with cross-platform support including [Linux, Windows, MacOS](https://github.com/wechaty/wechaty/actions?query=workflow%3ANPM), and [Docker](https://github.com/wechaty/wechaty/actions?query=workflow%3ADocker).
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
15

16 17 18
:octocat: <https://github.com/Wechaty/wechaty>  
:beetle: <https://github.com/Wechaty/wechaty/issues>  
:book: <https://github.com/Wechaty/wechaty/wiki>  
19
:whale: <https://hub.docker.com/r/wechaty/wechaty>  
20

L
lijiarui 已提交
21
## :yum: Voice of Developers
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
22

23
> "Wechaty is a great solution, I believe there would be much more users recognize it." [link](https://github.com/Wechaty/wechaty/pull/310#issuecomment-285574472)  
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
24 25
> &mdash; <cite>@Gcaufy, Tencent Engineer, Author of [WePY](https://github.com/Tencent/wepy)</cite>
>
26
> "太好用,好用的想哭"  
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
27 28
> &mdash; <cite>@xinbenlv, Google Engineer, Founder of HaoShiYou.org</cite>
>
Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
29
> "最好的微信开发库" [link](http://weibo.com/3296245513/Ec4iNp9Ld?type=comment)  
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
30 31
> &mdash; <cite>@Jarvis, Baidu Engineer</cite>
>
Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
32
> "Wechaty让运营人员更多的时间思考如何进行活动策划、留存用户,商业变现" [link](http://mp.weixin.qq.com/s/dWHAj8XtiKG-1fIS5Og79g)  
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
33
> &mdash; <cite>@lijiarui, Founder & CEO of Juzi.BOT.</cite>
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
34
>
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
35
> "If you know js ... try Wechaty, it's easy to use."  
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
36
> &mdash; <cite>@Urinx Uri Lee, Author of [WeixinBot(Python)](https://github.com/Urinx/WeixinBot)</cite>
37 38 39
>
> "Wechaty is a good project, I hope it can continue! Therefore, I became a contributors in open collective."  
> &mdash; <cite>[@Simple](https://github.com/mrwhh)</cite>
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
40

41
See more at [Wiki:Voice Of Developer](https://github.com/Wechaty/wechaty/wiki/Voice%20Of%20Developer)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
42

L
lijiarui 已提交
43
### :raising_hand: Join Us
44

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
45
Wechaty is used in many ChatBot projects by thousands of developers. If you want to talk with other developers, just scan the following QR Code in WeChat with secret code _wechaty_, join our **Wechaty Developers' Home**.
46

Huan (李卓桓)'s avatar
update  
Huan (李卓桓) 已提交
47
![Wechaty Friday.BOT QR Code](https://wechaty.js.org/img/friday-qrcode.svg)
48 49 50

Scan now, because other Wechaty developers want to talk with you too! (secret code: _wechaty_)

L
lijiarui 已提交
51
### :book: Resource
L
lijiarui 已提交
52

53
Wechaty already held lots of talk and got a lot of blogs in the past 4 years, here is all of the wechaty resources:
L
lijiarui 已提交
54

L
lijiarui 已提交
55 56 57 58 59 60
- :video_camera: [Youtube Playlist: Watch all of talk video related with Wechaty](https://www.youtube.com/playlist?list=PL8hd9KDTdarDXf_Rxtr8meKhxtgcXMInh)
- :page_with_curl: [Full Docs](https://wechaty.js.org/)
- :bulb: [Blog: See how developers use wechaty building fantastic project!](https://wechaty.github.io/)
- :beginner: [Wechaty-Getting-Started:Wechaty Starter Project Template that Works Out-of-the-Box](https://github.com/wechaty/wechaty-getting-started)
- :tada: [Wechaty Contributor List: Thanks for their contribution!](https://github.com/wechaty/wechaty/wiki/Contributors)
- :gift: [Juzibot Support Wechaty: Know everything about Wechaty](https://github.com/juzibot/Welcome/wiki/Everything-about-Wechaty)
L
lijiarui 已提交
61

L
lijiarui 已提交
62
## :rocket: The World's Shortest ChatBot Code: 6 lines of JavaScript
Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
63

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
64
```javascript
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
65

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
66
const { Wechaty } = require('wechaty') // import { Wechaty } from 'wechaty'
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
67

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
68
Wechaty.instance() // Global Instance
69 70
.on('scan', (qrcode, status) => console.log(`Scan QR Code to login: ${status}\nhttps://wechaty.js.org/qrcode/${encodeURIComponent(qrcode)}`))
.on('login',            user => console.log(`User ${user} logged in`))
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
71
.on('message',       message => console.log(`Message: ${message}`))
72
.start()
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
73
```
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
74

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
75
> **Notice: Wechaty requires Node.js version >= 12**
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
76

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
77
This bot can log all messages to the console after login by scan.
Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
78

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
79
You can find Wechaty Official Example at [examples/ding-dong-bot.ts](examples/ding-dong-bot.ts), and more from our [Example Directory](https://github.com/Wechaty/wechaty-getting-started/blob/master/examples/).
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
80

L
lijiarui 已提交
81
## :checkered_flag: Requirements
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
82

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
83
1. Node.js v12
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
84
1. `sudo apt-get install build-essential && sudo snap install shellcheck`
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
85

L
lijiarui 已提交
86
## :triangular_flag_on_post: Getting Started
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
87

88 89
[![node](https://img.shields.io/node/v/wechaty.svg?maxAge=604800)](https://nodejs.org/)

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
90
- Wechaty Starter Repository - <https://github.com/wechaty/wechaty-getting-started>
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
91

Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
92
We have a Wechaty starter repository for beginners with the simplest setting. It will be **just work** out-of-the-box after you `clone` & `npm install` & `npm start`.
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
93

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
94
If you are new to Wechaty and want to try it the first time, we'd like to strong recommend you starting from this repository, and using it as your starter template for your project.
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
95

96
Otherwise, please saved the above _The World's Shortest ChatBot Code: 6 lines of JavaScript_ example to a file named `bot.js` before you can use either NPM or Docker to run it.
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
97

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
98
### 1. Npm
Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
99

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
100 101 102
[![NPM Version](https://img.shields.io/npm/v/wechaty?color=brightgreen&label=wechaty%40latest)](https://www.npmjs.com/package/wechaty)
[![npm (tag)](https://img.shields.io/npm/v/wechaty/next?color=yellow&label=wechaty%40next)](https://www.npmjs.com/package/wechaty?activeTab=versions)

103
[![Downloads](https://img.shields.io/npm/dm/wechaty.svg?style=flat-square)](https://www.npmjs.com/package/wechaty)
Huan (李卓桓)'s avatar
layout  
Huan (李卓桓) 已提交
104
[![install size](https://packagephobia.now.sh/badge?p=wechaty)](https://packagephobia.now.sh/result?p=wechaty)
Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
105

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
106 107 108
```shell
npm init
npm install wechaty
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
109

110
# create your first bot.js file, you can copy/paste from the above "The World's Shortest ChatBot Code: 6 lines of JavaScript"
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
111
# then:
112
node bot.js
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
113
```
李文成 已提交
114

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
115
### 2. Docker
Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
116

117 118
[![Docker Pulls](https://img.shields.io/docker/pulls/wechaty/wechaty.svg?maxAge=2592000)](https://hub.docker.com/r/wechaty/wechaty/)
[![Docker Layers](https://images.microbadger.com/badges/image/wechaty/wechaty.svg)](https://microbadger.com/#/images/wechaty/wechaty)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
119

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
120
- Wechaty Starter Repository for Docker - <https://github.com/wechaty/docker-wechaty-getting-started>
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
121

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
122
> Wechaty Docker supports both JavaScript and TypeScript. To use TypeScript just write in TypeScript and save with extension name `.ts`, no need to compile because we use `ts-node` to run it.
123

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
124
2.1. Run JavaScript
125

126
```shell
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
127
# for JavaScript
128
docker run -ti --rm --volume="$(pwd)":/bot wechaty/wechaty bot.js
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
129 130
```

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
131
2.2. Run TypeScript
132

133
```shell
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
134
# for TypeScript
135
docker run -ti --rm --volume="$(pwd)":/bot wechaty/wechaty bot.ts
136 137
```

138
> Learn more about Wechaty Docker at [Wiki:Docker](https://github.com/Wechaty/wechaty/wiki/Docker).
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
139

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
140 141
### 3. Switch Protocol(Puppet)

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
142
Wechaty is very powerful that it can run over different protocols. You can specify the protocol by set the environment variable `WECHATY_PUPPET` to different puppet provider.
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
143

L
lijiarui 已提交
144 145
If you cannot use Web protocol, you can apply other protocal following the instruction here: <https://github.com/wechaty/wechaty/wiki/Support-Developers> We provide free token to support developers build a valuable WeChat chatbot.

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
146 147
Currently we support the following puppet providers:

148 149 150
| Protocol | Puppet Provider | Environment Variable |
| --- | --- | --- |
| Web | PuppetPuppeteer | `export WECHATY_PUPPET=wechaty-puppet-puppeteer` |
L
lijiarui 已提交
151 152
| iPad | PuppetPadplus | `export WECHATY_PUPPET=wechaty-puppet-padplus` |
| Mac | PuppetMacpro | `export WECHATY_PUPPET=wechaty-puppet-macpro` |
153 154
| Mock | PuppetMock | `export WECHATY_PUPPET=wechaty-puppet-mock` |
| Web | PuppetWechat4u | `export WECHATY_PUPPET=wechaty-puppet-wechat4u` |
L
lijiarui 已提交
155 156
| iPad | PuppetPadpro **DEPRECATED** | `export WECHATY_PUPPET=wechaty-puppet-padpro` |
| iPad | PuppetPadchat **DEPRECATED** | `export WECHATY_PUPPET=wechaty-puppet-padchat` |
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
157 158 159

Learn more about Wechaty Puppet from the Puppet Wiki:

160 161
1. Puppet Directory: <https://github.com/Wechaty/wechaty-puppet/wiki/Directory>
1. Puppet Compatibility: <https://github.com/Wechaty/wechaty-puppet/wiki/Compatibility>
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
162

L
lijiarui 已提交
163
## :guitar: API
164

165
Read the Full Documentation at [Wechaty Official API Reference](https://wechaty.github.io/wechaty/)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
166 167 168 169 170

### 1 Class `Wechaty`

Main bot class.

171
A `Bot` is a Wechaty instance that control a specific [wechaty-puppet](https://github.com/Wechaty/wechaty/wiki/Puppet).
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
172

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
173
- `new Wechaty(options?: WechatyOptions)`
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
174
    1. `options.name?: string` the name of this bot(optional)
Z
Zihua Wu 已提交
175
    2. `options.puppet?: string` select which puppet provider we want to use. must be one of the:
176 177
        1. [wechaty-puppet-puppeteer](https://github.com/Wechaty/wechaty-puppet-puppeteer) - Angular Hook for Web Wechat <- This is the DEFAULT
        2. [wechaty-puppet-wechat4u](https://github.com/Wechaty/wechaty-puppet-wechat4u) - HTTP API for Web Wechat
178
        3. [wechaty-puppet-padpro](https://github.com/botorange/wechaty-puppet-padpro) - iPad App Protocol
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
179
        4. [wechaty-puppet-ioscat](https://github.com/linyimin-bupt/wechaty-puppet-ioscat) - iPhone App Hook
180
        5. [wechaty-puppet-mock](https://github.com/Wechaty/wechaty-puppet-mock) - Mock for Testing
Z
Zihua Wu 已提交
181
    3. `options.puppetOptions?: PuppetOptions` options for the puppet provider.
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
182

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
183 184
| Wechaty | API | Description |
| :--- | :--- | :---        |
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
| event | [`login`](https://wechaty.github.io/wechaty/#Wechaty+on) | emit after bot login full successful |
| event | [`logout`](https://wechaty.github.io/wechaty/#Wechaty+on) | emit after the bot log out |
| event | [`friendship`](https://wechaty.github.io/wechaty/#Wechaty+on) | emit when someone sends bot a friend request|
| event | [`message`](https://wechaty.github.io/wechaty/#Wechaty+on) | emit when there's a new message |
| event | [`room-join`](https://wechaty.github.io/wechaty/#Wechaty+on) | emit when anyone join any room |
| event | [`room-topic`](https://wechaty.github.io/wechaty/#Wechaty+on) | emit when someone change room topic |
| event | [`room-leave`](https://wechaty.github.io/wechaty/#Wechaty+on) | emit when anyone leave the room |
| event | [`room-invite`](https://wechaty.github.io/wechaty/#Wechaty+on) | emit when there is a room invitation |
| event | [`scan`](https://wechaty.github.io/wechaty/#Wechaty+on) | emit when the bot needs to show you a QR Code for scanning |
| method | [`start(): Promise<void>`](https://wechaty.github.io/wechaty/#Wechaty+start) | start the bot |
| method | [`stop(): Promise<void>`](https://wechaty.github.io/wechaty/#Wechaty+stop) | stop the bot |
| method | [`logonoff(): boolean`](https://wechaty.github.io/wechaty/#Wechaty+logonoff) | bot login status |
| method | [`logout(): Promise<void>`](https://wechaty.github.io/wechaty/#Wechaty+logout) | logout the bot |
| method | [`userSelf(): ContactSelf`](https://wechaty.github.io/wechaty/#Wechaty+userSelf) | get the login-ed bot contact |
| method | [`say(text: string): Promise<void>`](https://wechaty.github.io/wechaty/#Wechaty+say) | let bot say `text` to itself |
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
200 201 202 203 204

### 2 Class `Contact`

All wechat contacts(friends/non-friends) will be encapsulated as a Contact.

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
205 206
| Contact | API | Description |
| :--- | :--- | :---        |
207 208 209
| static | [`find(query: string): Promise<null \| Contact>`](https://wechaty.github.io/wechaty/#Contact.find) | find contact by name or alias, if the result more than one, return the first one. |
| static | [`findAll(query: string): Promise<Contact[]>`](https://wechaty.github.io/wechaty/#Contact.findAll) | find contact by `name` or `alias` |
| static | [`load(query: string): Contact`](https://wechaty.github.io/wechaty/#Contact.load) | get contact by id |
W
William Chen 已提交
210
| property | `id: readonly string` | get contact id |
211
| method | [`sync(): Promise<void>`](https://wechaty.github.io/wechaty/#Contact+sync) | force reload data for contact , sync data from lowlevel API again|
212
| method | [`say(text: string): Promise<void \| Message>`](https://wechaty.github.io/wechaty/#Contact+say) | send text, Contact, or file to contact, return the message which the bot sent (only `puppet-padplus` supported). |
213 214 215 216 217 218 219 220 221 222
| method | [`self(): boolean`](https://wechaty.github.io/wechaty/#Contact+self) | check if contact is self |
| method | [`name(): string`](https://wechaty.github.io/wechaty/#Contact+name) | get the name from a contact |
| method | [`alias(): Promise<string>`](https://wechaty.github.io/wechaty/#Contact+alias) | get the alias for a contact |
| method | [`alias(newAlias: string): Promise<void>`](https://wechaty.github.io/wechaty/#Contact+alias) | set or delete the alias for a contact |
| method | [`friend(): boolean`](https://wechaty.github.io/wechaty/#Contact+friend) | check if contact is friend |
| method | [`type(): ContactType`](https://wechaty.github.io/wechaty/#Contact+type) | return the type of the Contact |
| method | [`province(): string`](https://wechaty.github.io/wechaty/#Contact+province) | get the region 'province' from a contact |
| method | [`city(): string`](https://wechaty.github.io/wechaty/#Contact+city) | get the region 'city' from a contact |
| method | [`avatar(): Promise<FileBox>`](https://wechaty.github.io/wechaty/#Contact+avatar) | get avatar picture file stream |
| method | [`gender(): ContactGender`](https://wechaty.github.io/wechaty/#Contact+gender) | get gender from a contact |
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
223

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
224 225 226
#### 2.1 Class `ContactSelf`

Class `ContactSelf` is extended from `Contact`.
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
227

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
228 229
| ContactSelf | API | Description |
| :--- | :--- | :---        |
230 231 232
| method | [`avatar(file: FileBox): Promise<void>`](https://wechaty.github.io/wechaty/#ContactSelf+avatar) | set avatar for bot |
| method | [`qrcode(): Promise<string>`](https://wechaty.github.io/wechaty/#ContactSelf+qrcode) | get qrcode for bot |
| method | [`signature(text: string): Promise<void>`](https://wechaty.github.io/wechaty/#ContactSelf+signature) | set signature for bot |
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
233

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
234 235 236 237 238 239
#### 2.2 Class `Friendship`

Send, receive friend request, and friend confirmation events.

| Friendship | API | Description |
| :--- | :--- | :---        |
240 241 242 243 244
| static | [`add(contact: Contact, hello?: string): Promise<void>`](https://wechaty.github.io/wechaty/#Friendship.add) | send a friend invitation to contact |
| method | [`accept(): Promise<void>`](https://wechaty.github.io/wechaty/#Friendship+accept) | accept Friend Request |
| method | [`hello(): string`](https://wechaty.github.io/wechaty/#Friendship+hello) | get the hello string from a friendship invitation |
| method | [`contact(): Contact`](https://wechaty.github.io/wechaty/#Friendship+contact) | get the contact from friendship |
| method | [`type(): FriendshipType`](https://wechaty.github.io/wechaty/#Friendship+type) | return the Friendship Type(unknown, confirm, receive, verify) |
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
245

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
246
### 3 Class `Message`
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
247 248 249

All wechat messages will be encapsulated as a Message.

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
250 251
| Message | API | Description |
| :--- | :--- | :---        |
252 253 254 255 256 257
| static | [`find(query: string): Promise<null \| Message>`](https://wechaty.github.io/wechaty/#Message.find) | find message in cache and return the first one |
| static | [`findAll(query: string): Promise<Message[]>`](https://wechaty.github.io/wechaty/#Message.findAll) | find messages in cache, return a message list |
| method | [`from(): Contact`](https://wechaty.github.io/wechaty/#Message+from) | get the sender from a message |
| method | [`to(): Contact`](https://wechaty.github.io/wechaty/#Message+to) | get the destination of the message |
| method | [`room(): null \| Room`](https://wechaty.github.io/wechaty/#Message+room) | get the room from the message.(If the message is not in a room, then will return `null`) |
| method | [`text(): string`](https://wechaty.github.io/wechaty/#Message+text) | get the text content of the message |
258
| method | [`say(text: string): Promise<void \| Message>`](https://wechaty.github.io/wechaty/#Message+say) | reply a Text, Media File , or contact message to the sender, return the message which the bot sent (only `puppet-padplus` supported). |
259 260 261 262 263 264
| method | [`type(): MessageType`](https://wechaty.github.io/wechaty/#Message+type) | get the type from the message |
| method | [`self(): boolean`](https://wechaty.github.io/wechaty/#Message+self) | check if a message is sent by self |
| method | [`mention(): Contact[]`](https://wechaty.github.io/wechaty/#Message+mention) | get message mentioned contactList. |
| method | [`mentionSelf(): boolean`](https://wechaty.github.io/wechaty/#Message+mentionSelf) | check if a message is mention self |
| method | [`forward(to: Contact): Promise<void>`](https://wechaty.github.io/wechaty/#Message+forward) | Forward the received message |
| method | [`age(): number`](https://wechaty.github.io/wechaty/#Message+age) | the number of seconds since it has been created |
265
| method | [`date(): Date`](https://wechaty.github.io/wechaty/#Message+date) | the time it was created |
266 267
| method | [`toFileBox(): Promise<FileBox>`](https://wechaty.github.io/wechaty/#Message+toFileBox) | extract the Media File from the Message, and put it into the FileBox. |
| method | [`toContact(): Promise<Contact>`](https://wechaty.github.io/wechaty/#Message+toContact) | get Share Card of the Message |
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
268

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
269
### 4 Class `Room`
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
270 271 272

All wechat rooms(groups) will be encapsulated as a Room.

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
273 274
| Room | API | Description |
| :--- | :--- | :---        |
275 276 277 278
| static | [`create(contactList: Contact[], topic?: string): Promise<Room>`](https://wechaty.github.io/wechaty/#Room.create) | create a new room |
| static | [`find(query: string): Promise<null \| Room>`](https://wechaty.github.io/wechaty/#Room.find) | Try to find a room by filter. If get many, return the first one. |
| static | [`findAll(query: string): Promise<Room[]>`](https://wechaty.github.io/wechaty/#Room.findAll) | Find all contacts in a room |
| static | [`load(query: string): Room`](https://wechaty.github.io/wechaty/#Room.load) | load room by room id |
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
279
| property | `id: readonly string` |  |
280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299
| event | [`join`](https://wechaty.github.io/wechaty/#Room+on) | emit when anyone join any room |
| event | [`topic`](https://wechaty.github.io/wechaty/#Room+on) | emit when someone change room topic |
| event | [`leave`](https://wechaty.github.io/wechaty/#Room+on) | emit when anyone leave the room |
| event | [`invite`](https://wechaty.github.io/wechaty/#Room+on) | emit when receive a room invitation |
| method | [`sync(): <Promise<void>`](https://wechaty.github.io/wechaty/#Room+sync) | force reload data for room, sync data from lowlevel API again.
| method | [`say(text: string): Promise<void \| Message>`](https://wechaty.github.io/wechaty/#Room+say) | Send text,media file, contact card, or text with mention @mention contact inside Room, return the message which the bot sent (only `puppet-padplus` supported). |
| method | [`add(contact: Contact): Promise<void>`](https://wechaty.github.io/wechaty/#Room+add) | Add contact in a room |
| method | [`del(contact: Contact): Promise<void>`](https://wechaty.github.io/wechaty/#Room+del) | Delete a contact from the room |
| method | [`quit(): Promise<void>`](https://wechaty.github.io/wechaty/#Room+quit) | Bot quit the room itself |
| method | [`topic(): Promise<string>`](https://wechaty.github.io/wechaty/#Room+topic) | GET topic from the room |
| method | [`topic(newTopic: string): Promise<void>`](https://wechaty.github.io/wechaty/#Room+topic) | SET topic from the room |
| method | [`announce(text: string): Promise<void>`](https://wechaty.github.io/wechaty/#Room+announce) | SET/GET announce from the room |
| method | [`qrcode(): Promise<string>`](https://wechaty.github.io/wechaty/#Room+qrcode) | Get QR Code of the Room from the room, which can be used as scan and join the room. |
| method | [`alias(contact: Contact): Promise<string>`](https://wechaty.github.io/wechaty/#Room+alias) | Return contact's roomAlias in the room |
| method | [`roomAlias(contact: Contact): Promise<string \| null>`](https://wechaty.github.io/wechaty/#Room+roomAlias) | Same as function alias |
| method | [`has(contact: Contact): Promise<boolean>`](https://wechaty.github.io/wechaty/#Room+has) | Check if the room has member `contact` |
| method | [`memberAll(query?: string): Promise<Contact[]>`](https://wechaty.github.io/wechaty/#Room+memberAll) | Find all contacts or with specific name in a room |
| method | [`member(query: string): Promise<null \| Contact>`](https://wechaty.github.io/wechaty/#Room+member) | Find all contacts in a room, if get many, return the first one. |
| method | [`memberList():Promise<Contact[]>`](https://wechaty.github.io/wechaty/#Room+memberList) | get all room member from the room |
| method | [`owner(): null \| Contact`](https://wechaty.github.io/wechaty/#Room+owner) | Get room's owner from the room. |
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
300

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
301 302 303 304 305 306
#### 4.1 Class `RoomInvitation`

Accept room invitation

| RoomInvitation | API | Description |
| :--- | :--- | :---        |
307 308 309 310
| method | [`accept(): Promise<void>`](https://wechaty.github.io/wechaty/#RoomInvitation+accept) | accept Room Invitation |
| method | [`inviter(): Contact`](https://wechaty.github.io/wechaty/#RoomInvitation+inviter) | get the inviter from room invitation |
| method | [`roomTopic(): Promise<string>`](https://wechaty.github.io/wechaty/#RoomInvitation+inviter) | get the room topic from room invitation |
| method | [`date(): Promise<Date>`](https://wechaty.github.io/wechaty/#RoomInvitation+date) | the time it was created |
311
| method | [`age(): Promise<number>`](https://wechaty.github.io/wechaty/#RoomInvitation+age) | the number of seconds since it has been created |
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
312

L
lijiarui 已提交
313
## :eyeglasses: TEST
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
314

315 316
[![NPM](https://github.com/wechaty/wechaty/workflows/NPM/badge.svg)](https://github.com/wechaty/wechaty/actions?query=workflow%3ANPM)
[![Docker](https://github.com/wechaty/wechaty/workflows/Docker/badge.svg)](https://github.com/wechaty/wechaty/actions?query=workflow%3ADocker)
317 318
[![Coverage Status](https://coveralls.io/repos/github/Wechaty/wechaty/badge.svg?branch=master)](https://coveralls.io/github/Wechaty/wechaty?branch=master)
[![Known Vulnerabilities](https://snyk.io/test/github/Wechaty/wechaty/badge.svg)](https://snyk.io/test/github/Wechaty/wechaty)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
319 320 321 322 323 324 325 326 327

Wechaty is fully automatically tested by unit and integration tests, with Continious Integration & Continious Deliver(CI/CD) support powered by CI like Travis, Shippable and Appveyor.

To test Wechaty, run:

```shell
npm test
```

328
Get to know more about the tests from [Wiki:Tests](https://github.com/Wechaty/wechaty/wiki/Tests)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
329

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348
## CREATING WECHATY PLUGIN

Creating and publishing a Wechaty Plugin is simple. Simply expose your module as a function that takes 1 parameter: wechaty. When your plugin is imported by Wechaty, it will pass itself in as the argument, and so you are free to add any configuration that Wechaty supports.

```ts
import { WechatyPlugin } from 'wechaty'

export default const MyPlugin: WechatyPlugin = (wechaty: Wechaty) => {
  // ...
}
```

The `config` exist so the user can pass in customizations to your Plugin. In documenting your Wechaty Plugin, you would lay out your supported config for the user.

See:

1. [Wechaty Plugin Support with KickOut Example #1939](https://github.com/wechaty/wechaty/issues/1939)
1. [Wechaty Plugins Contrib](https://github.com/wechaty/wechaty-plugin-contrib)

L
lijiarui 已提交
349
## :pencil: RELEASE NOTES
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
350

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
351 352
- [Latest Release](https://github.com/Wechaty/wechaty/releases/latest)(All releases [here](https://github.com/Wechaty/wechaty/releases))
- [Changelog](https://github.com/Wechaty/wechaty/blob/master/CHANGELOG.md)
Huan (李卓桓)'s avatar
readme  
Huan (李卓桓) 已提交
353

L
lijiarui 已提交
354
### :saxophone: Views Since Feb 15, 2019
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
355

356
[![HitCount](http://hits.dwyl.io/wechaty/wechaty.svg)](http://hits.dwyl.io/wechaty/wechaty)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
357

L
lijiarui 已提交
358
## :sparkling_heart: POWERED BY WECHATY
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
359

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
360
[![Powered by Wechaty](https://img.shields.io/badge/Powered%20By-Wechaty-brightgreen.svg)](https://wechaty.js.org)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
361

L
lijiarui 已提交
362
### :sparkles: Wechaty Badge
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
363

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
364
```markdown
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
365
[![Powered by Wechaty](https://img.shields.io/badge/Powered%20By-Wechaty-brightgreen.svg)](https://wechaty.js.org)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
366 367
```

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
368
Get more embed html/markdown code from [Wiki:Badge](https://github.com/wechaty/wechaty/wiki/Badge)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
369

L
lijiarui 已提交
370
### :star2: Projects Using Wechaty
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
371

F
f00bar 已提交
372
1. [一个用CNN深度神经网络给图片评分的wechaty项目](https://github.com/huyingxi/wechaty_selfie)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
373 374 375 376
2. [Relay between Telegram and WeChat](https://github.com/Firaenix/TeleChatRelay)
3. [A chat bot managing the HaoShiYou wechat groups run by volunteers of haoshiyou.org](https://github.com/xinbenlv/haoshiyou-bot)
4. [An interactive chat bot to manage a TODO list](https://github.com/coderbunker/candobot)
5. [Forward WeChat messages to telegram](https://github.com/luosheng/Wegram)
377
6. [koa与wechaty实现的微信小助手,可定时提醒与发消息设定定时任务](https://github.com/gengchen528/wechat-assistant)
378
7. [Wechaty Pay - 让线上没有难做的生意](https://github.com/coderwhocode/wechaty-pay)
L
lijiarui 已提交
379
8. [开源社的微信机器人项目](https://github.com/kaiyuanshe/wechat-robot)
380

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
381 382
Pull Request is welcome to add yours!

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
383
Learn more about Projects Using Wechaty at [Wiki:Projects Using Wechaty](https://github.com/wechaty/wechaty/wiki/Projects-Using-Wechaty)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
384

L
lijiarui 已提交
385
## :innocent: Find a Good Server
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
386

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
387
The best practice for running Wechaty Docker/NPM is using a VPS(Virtual Private Server) outside of China, which can save you hours of time because `npm install` and `docker pull` will run smoothly without any problem.
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
388

389
The following VPS providers are used by the Wechaty team, and they worked perfectly in production. You can use the following link to get one in minutes. Also, doing this can support Wechaty because you are referred by us.
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
390 391 392 393 394 395

| Location  | Price | Ram     | Payment           | Provider |
| ---       | ---   | ---     | ---               | ---      |
| Singapore | $5    | 512MB   | Paypal            | [DigitalOcean](https://m.do.co/c/01a54778df5c) |
| Japan     | $5    | 1GB     | Paypal            | [Linode](https://www.linode.com/?r=5fd2b713d711746bb5451111df0f2b6d863e9f63) |
| Korea     | $10   | 1GB     | Alipay, Paypal    | [Netdedi](https://www.netdedi.com/?affid=35) |
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
396
| Singapore | $3.5  | 512MB   | Alipay, Wechat    | [Vultr](https://www.vultr.com/?ref=6986613) |
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
397

L
lijiarui 已提交
398
## :notes: See Also
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
399

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
400
- [RelatedProject](https://github.com/Wechaty/wechaty/wiki/RelatedProject)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
401

L
lijiarui 已提交
402
## :poop: The Story
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
403

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
404
In 2017 ...
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
405

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
406
Huan's daily life/work depends on too much chat on wechat.
407

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
408 409
- Almost 14,000 wechat friends in May 2014, before wechat restricts a total number of friends to 5,000.
- Almost 400 wechat rooms, and most of them have more than 400 members.
410

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
411
Can you imagine that? He was dying...
412

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
413 414 415
So a tireless bot working for me 24x7 on wechat, monitoring/filtering the most important message is badly needed. For example, it highlights discussion which contains the KEYWORDS which he want to follow up(especially in a noisy room). ;-)

At last, It's built for huan's personal study purpose of Automatically Testing.
416

L
lijiarui 已提交
417
## :two_hearts: Contributors
J
jess 已提交
418

419 420
[![GitHub issues](https://img.shields.io/github/issues/wechaty/wechaty.svg)](https://github.com/Wechaty/wechaty/issues)
[![GitHub pull requests](https://img.shields.io/github/issues-pr/wechaty/wechaty.svg)](https://github.com/Wechaty/wechaty/pulls)
421 422 423
[![Open Collective Backers](https://opencollective.com/wechaty/backer/badge.svg?label=open%20collective%20backers&color=blue)](https://opencollective.com/wechaty/)
[![Open Collective Sponsors](https://opencollective.com/wechaty/sponsors/badge.svg?label=open%20collective%20sponsors&color=blue)](https://opencollective.com/wechaty/)

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
424 425 426 427 428 429 430 431 432
[![contributor](https://sourcerer.io/fame/huan/wechaty/wechaty/images/0)](https://sourcerer.io/fame/huan/wechaty/wechaty/links/0)
[![contributor](https://sourcerer.io/fame/huan/wechaty/wechaty/images/1)](https://sourcerer.io/fame/huan/wechaty/wechaty/links/1)
[![contributor](https://sourcerer.io/fame/huan/wechaty/wechaty/images/2)](https://sourcerer.io/fame/huan/wechaty/wechaty/links/2)
[![contributor](https://sourcerer.io/fame/huan/wechaty/wechaty/images/3)](https://sourcerer.io/fame/huan/wechaty/wechaty/links/3)
[![contributor](https://sourcerer.io/fame/huan/wechaty/wechaty/images/4)](https://sourcerer.io/fame/huan/wechaty/wechaty/links/4)
[![contributor](https://sourcerer.io/fame/huan/wechaty/wechaty/images/5)](https://sourcerer.io/fame/huan/wechaty/wechaty/links/5)
[![contributor](https://sourcerer.io/fame/huan/wechaty/wechaty/images/6)](https://sourcerer.io/fame/huan/wechaty/wechaty/links/6)
[![contributor](https://sourcerer.io/fame/huan/wechaty/wechaty/images/7)](https://sourcerer.io/fame/huan/wechaty/wechaty/links/7)

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
433 434
This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
435 436
-----

437
[![Contribute](https://opencollective.com/wechaty/contributors.svg?width=890&button=false)](https://github.com/Wechaty/wechaty/graphs/contributors)
J
jess 已提交
438

L
lijiarui 已提交
439
## :sunglasses: Backers
J
jess 已提交
440

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
441 442
[![Backers on Open Collective](https://opencollective.com/wechaty/backers/badge.svg)](#backers)

J
jess 已提交
443 444
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/wechaty#backer)]

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
445
[![Open Collective Wechaty](https://opencollective.com/wechaty/backers.svg?width=890)](https://opencollective.com/wechaty#backers)
J
jess 已提交
446

L
lijiarui 已提交
447
## :smirk: Sponsors
J
jess 已提交
448

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
449
[![Sponsors on Open Collective](https://opencollective.com/wechaty/sponsors/badge.svg)](#sponsors)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
450

J
jess 已提交
451 452
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/wechaty#sponsor)]

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
453 454
[![Wechaty Sponsor](https://opencollective.com/wechaty/sponsor.svg?width=890)](https://opencollective.com/wechaty/#sponsor)

L
lijiarui 已提交
455
## :point_down: Multi-language Wechaty
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
456

Huan (李卓桓)'s avatar
fix bio  
Huan (李卓桓) 已提交
457 458 459 460 461 462 463 464 465 466 467 468 469 470
[![Python Wechaty](https://img.shields.io/badge/Wechaty-Python-blue)](https://github.com/wechaty/python-wechaty)
[![Go Wechaty](https://img.shields.io/badge/Wechaty-Go-7de)](https://github.com/wechaty/go-wechaty)
[![Java(Kotlin) Wechaty](https://img.shields.io/badge/Wechaty-Java-f80)](https://github.com/wechaty/java-wechaty)
[![Scala Wechaty](https://img.shields.io/badge/Wechaty-Scala-890)](https://github.com/wechaty/scala-wechaty)
[![PHP Wechaty](https://img.shields.io/badge/Wechaty-PHP-99c)](https://github.com/wechaty/php-wechaty)
[![.NET(C#) Wechatyin](https://img.shields.io/badge/Wechaty-.NET-629)](https://github.com/wechaty/dotnet-wechaty)

- [Wechaty](https://github.com/wechaty/wechaty) - Conversatioanl SDK for Chatot Makers (TypeScript)
- [Python Wechaty](https://github.com/wechaty/python-wechaty) - Conversational SDK for Chatbot Makers written in Python
- [Go Wechaty](https://github.com/wechaty/go-wechaty) - Conversational SDK for Chatbot Makers written in Go
- [Java Wechaty](https://github.com/wechaty/java-wechaty) - Conversational SDK for Chatbot Makers written in Java(Kotlin)
- [Scala Wechaty](https://github.com/wechaty/scala-wechaty) - Conversational SDK for Chatbot Makers written in Scala
- [PHP Wechaty](https://github.com/wechaty/php-wechaty) - Conversational SDK for Chatbot Makers written in PHP
- [.Net(C#) Wechaty](https://github.com/wechaty/dotnet-wechaty) - Conversational SDK for Chatbot Makers written in .NET(C#)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
471

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
472
## :raised_hands: Creators
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
473

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
474
1. [Huan](https://github.com/huan) [(李卓桓)](http://linkedin.com/in/zixia), Tencent TVP of Chatbot
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
475
1. [Rui (李佳芮)](https://pre-angel.com/peoples/jiarui-li/), Microsoft AI MVP
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
476 477

[![Profile of Huan LI (李卓桓) on StackOverflow](https://stackoverflow.com/users/flair/1123955.png)](https://stackoverflow.com/users/1123955/huan)
J
jess 已提交
478

L
lijiarui 已提交
479
## :email: Copyright & License
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
480

Huan (李卓桓)'s avatar
clean  
Huan (李卓桓) 已提交
481
- Code & Docs © 2016-now Huan, Rui, and Wechaty Community Contributors
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
482 483
- Code released under the Apache-2.0 License
- Docs released under Creative Commons