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
Python Wechaty is an Open Source software application for building chatbots. It is a modern Conversational RPA SDK which Chatbot makers can use to create a bot in a few lines of code.
20
+
21
+
You can use Wechaty to build a chatbot which automates conversations and interact with people through instant messaging platforms such as WhatsApp, WeChat, WeCom, Gitter and Lark among others.
25
22
26
-
## Connecting Chatbots
23
+
## Features
27
24
28
-
[](https://github.com/Wechaty/wechaty)
25
+
***Message Processing**: You can use the simple code, similar to natural language, to process the message receving & sending.
26
+
***Plugin System**: You can use the community-contributed plugins to handle your scenario.
27
+
***Write onece, run multi IM platform**: python wechaty support many IM platforms with one code, all of you need to do is switch the token token type.
28
+
***Wechaty UI**: you can use the powerful wechaty-ui to create interactive chatbot
29
+
* ...
29
30
30
-
Wechaty is a Conversational SDK for Chatbot Makers that can help you create a bot in 9 lines of Python.
31
31
32
-
## Voice of the Developers
32
+
## Getting Started
33
33
34
-
> "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)
35
-
> — <cite>@Gcaufy, Tencent Engineer, Author of [WePY](https://github.com/Tencent/wepy)</cite>
36
-
>
37
-
> "太好用,好用的想哭"
38
-
> — <cite>@xinbenlv, Google Engineer, Founder of HaoShiYou.org</cite>
> — <cite>@lijiarui, Founder & CEO of Juzi.BOT.</cite>
45
-
>
46
-
> "If you know js ... try Wechaty, it's easy to use."
47
-
> — <cite>@Urinx Uri Lee, Author of [WeixinBot(Python)](https://github.com/Urinx/WeixinBot)</cite>
34
+
There are few steps to start your bot, and we give a [bot-template](https://github.com/wechaty/python-wechaty-template) for you to getting started quickly.
48
35
49
-
See more at [Wiki:Voice Of Developer](https://github.com/Wechaty/wechaty/wiki/Voice%20Of%20Developer)
50
36
51
37
## Join Us
52
38
@@ -56,177 +42,6 @@ Wechaty is used in many ChatBot projects by thousands of developers. If you want
56
42
57
43
Scan now, because other Wechaty Python developers want to talk with you too! (secret code: _python wechaty_)
58
44
59
-
## The World's Shortest Python ChatBot: 9 lines of Code
60
-
61
-
```python
62
-
from wechaty import Wechaty
63
-
64
-
import asyncio
65
-
asyncdefmain():
66
-
bot = Wechaty()
67
-
bot.on('scan', lambdastatus, qrcode, data: print('Scan QR Code to login: {}\nhttps://wechaty.js.org/qrcode/{}'.format(status, qrcode)))
We already have Wechaty in TypeScript, It will be not too hard to translate the TypeScript(TS) to Python(PY) because [wechaty](https://github.com/wechaty/wechaty) has only 3,000 lines of the TS code, they are well designed and de-coupled by the [wechaty-puppet](https://github.com/wechaty/wechaty-puppet/) abstraction. So after we have translated those 3,000 lines of TypeScript code, we will almost be done.
78
-
79
-
As we have already a ecosystem of Wechaty in TypeScript, so we will not have to implement everything in Python, especially, in the Feb 2020, we have finished the [wechaty-grpc](https://github.com/wechaty/grpc) service abstracting module with the [wechaty-puppet-service](https://github.com/wechaty/wechaty-puppet-service) implmentation.
80
-
81
-
The following diagram shows out that we can reuse almost everything in TypeScript, and what we need to do is only the block located at the top right of the diagram: `Wechaty (Python)`.
If you are interested in the translation and want to look at how it works, it will be a good start from reading and comparing those two `Image` class files in TypeScript and Python at the same time.
0 commit comments