Skip to main content

Scala Wechaty

Scala Wechaty

Scala Wechaty is a Scala programming client derived from the Wechaty ecosystem. Scala's static types help avoid bugs in complex applications, hence Scala wechaty is very easy to use, implement and is also very efficient. You can find more information on Scala-Wechaty here. The General Architecture Diagram illustrates how the Scala-Wechaty can be implemented on the already existing TypeScript Wechaty ecosystem.

Features of Scala-Wechaty

  • Stable interaction with back-end gRPC, continuous and stable operation.
  • The front end implements some functions of Contact and Message.

Getting Started

Run the below command for starting the Scala-Wechaty bot.

git clone
cd scala-wechaty-getting-started
make install
export WECHATY_PUPPET=wechaty-puppet-hostie
export WECHATY_PUPPET_HOSTIE_TOKEN=your_token_at_here
make bot # or
scala examples/ding-dong-bot.scala

Translation of TypeScript to Scala

There is a hundred (100) lines class named Image in charge of downloading the WeChat image to different sizes. Below are the links to the Image class for both TypeScript and Scala for a better understanding of the code and the translation.

Do checkout the blogs and Github links to get more details about the Scala-Wechaty.


For more information on the Scala-Wechaty releases and its history the below link can be visited.