Skip to main content

Polyglot Wechaty

OpenAPI Wechaty TypeScript Wechaty Python Wechaty Go Wechaty Kotlin(Java) Wechaty Scala Wechaty PHP Wechaty .NET Wechaty Rust Wechaty DIY Wechaty

LanguageGit RepoMaintainer(s)Getting Started Template
OpenAPIopenapi@huanopenapi-wechaty-getting-started
TypeScriptwechaty@huan @lijiaruiwechaty-getting-started
Pythonpython-wechaty@wj-Mcatpython-wechaty-getting-started
Gogo-wechaty@dingdayu @dchaofeigo-wechaty-getting-started
Javajava-wechaty@diaozxin007java-wechaty-getting-started
Scalascala-wechaty@jcaiscala-wechaty-getting-started
PHPphp-wechaty@zhangchunshengphp-wechaty-getting-started
.NETdotnet-wechaty@echofool @jesndotnet-wechaty-getting-started
Rustrust-wechaty@lucifer1004rust-wechaty-getting-started

Wechaty Polyglot

Wechaty has the world's shortest lines code of chatbot in all programming languages!.This section gives an overview of implementing in different programming languages.Wechaty in all programming languages have the same API, as the TypeScript documented version.

If you are a total beginner to Wechaty, this project is the best starting point for you. You can run it on a Cloud IDE in a couple of steps or locally on your machine. Features of Wechaty Getting Started project

  • It works in all operating systems like Linux, Mac or Windows.
  • It Supports all puppets like Web, Pad, Windows, and Mac.
  • It replies with a dong message whenever it receives a ding message.

Running Wechaty Getting Started Project on a cloud-based IDE

The fastest way to get started with Wechaty is to use a Cloud-based IDE for running the Wechaty Getting Started Project. You can either use Gitpod or Google Cloud Shell. If you are a total beginner, then we recommend Gitpod.

Getting Started Templates

git clone git@github.com:wechaty/wechaty-getting-started.git
cd wechaty-getting-started

GitHub: https://github.com/wechaty/wechaty-getting-started

Install & Start

make install
make bot

Implementation of Chatbots in different languages

Check the below implementation of Wechaty bot in different languages.

import { Wechaty } from 'wechaty'

async function main () {
const bot = new Wechaty()
bot
.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`))
.on('message', message => console.log(`Message: ${message}`))
await bot.start()
}

main()
.catch(console.error)

Blogs

Here are some of the blogs related to latest Wechaty Beta releases and also some other helpful links.

Support

Gitter Channel

You can join our Gitter network if you aren’t already a member.

WeChat Rooms

We have Polyglot Wechaty User Group on WeChat, and we are always looking for new members.

Scan the above QR Code to add Friday BOT to your WeChat:

Wechaty Developers' Discord Community

Then, send it one of the following message to join a specific language group:

Secret CodeLanguage Group
openapi wechatyOpenAPI(Swagger/gRPC) Wechaty User Group
python wechatyPython Wechaty User Group
java wechatyJava Wechaty User Group
go wechatyGo Wechaty User Group
dotnet wechatydotNet(.NET) Wechaty User Group
rust wechatyRust Wechaty User Group
php wechatyPHP Wechaty User Group
scala wechatyscala Wechaty User Group
typescript wechatyTypeScript Wechaty User Group