Example: How to Translate TS Wechaty to Python
Opened this issue · 1 comments
huan commented
There's a 100 lines class named Image
in charge of downloading the WeChat image to different sizes.
It is a great example for demonstrating how do we translate the TypeScript to Python in Wechaty Way:
Image Class Source Code
- TypeScript: https://github.com/wechaty/wechaty/blob/master/src/user/image.ts
- Python: https://github.com/wechaty/python-wechaty/blob/master/src/wechaty/user/image.py
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.
Link to Go: wechaty/go-wechaty#26
huan commented
We are working on building an official Python Wechaty, it would be great if we have more python developers to join. Here's an example about how to contribute by rewrite TypeScript to Python in Wechaty Way.