https://github.com/wechaty/java-wechaty-getting-started
Java Wechaty Starter Project Template that Works Out-of-the-Box
https://github.com/wechaty/java-wechaty-getting-started
chatbot getting-started java wechaty
Last synced: 7 months ago
JSON representation
Java Wechaty Starter Project Template that Works Out-of-the-Box
- Host: GitHub
- URL: https://github.com/wechaty/java-wechaty-getting-started
- Owner: wechaty
- License: apache-2.0
- Created: 2020-05-13T15:14:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-29T15:46:04.000Z (about 5 years ago)
- Last Synced: 2025-06-06T10:11:38.001Z (8 months ago)
- Topics: chatbot, getting-started, java, wechaty
- Language: Makefile
- Homepage: https://gitpod.io/#https://github.com/wechaty/java-wechaty-getting-started
- Size: 55.7 KB
- Stars: 52
- Watchers: 5
- Forks: 44
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# java-wechaty-getting-started [](https://mvnrepository.com/artifact/io.github.wechaty/wechaty) [](https://github.com/wechaty/java-wechaty-getting-started/actions?query=workflow%3A%22Java+CI+with+Maven%22)
[](https://github.com/wechaty/java-wechaty-getting-started)
Java Wechaty Starter Project Template that Works Out-of-the-Box
[](https://gitpod.io/#https://github.com/wechaty/java-wechaty-getting-started)
[](https://github.com/wechaty/java-wechaty)
## Connecting Chatbots
[](https://github.com/Wechaty/wechaty)
[](https://mvnrepository.com/artifact/io.github.wechaty/wechaty)
Wechaty is a RPA SDK for Wechat **Individual** Account that can help you create a chatbot in 6 lines of Java.
## The World's Shortest Java ChatBot: 6 lines of Code
```java
class Bot{
public static void main(String args[]){
Wechaty bot = Wechaty.instance()
.onScan((qrcode, statusScanStatus, data) -> System.out.println(QrcodeUtils.getQr(qrcode)))
.onLogin(user -> System.out.println("User logined :" + user))
.onMessage(message -> System.out.println("Message:" + message))
.start(true);
}
}
```
## Usage
### Install
```sh
# Install Maven
apt install maven
make install
```
### Run
```sh
export WECHATY_PUPPET_SERVICE_TOKEN=your_token_at_here
make bot
```
## Wechaty Getting Started in Multiple Languages
- [TypeScript Wechaty Getting Started](https://github.com/wechaty/wechaty-getting-started)
- [Python Wechaty Getting Started](https://github.com/wechaty/python-wechaty-getting-started)
- [Java Wechaty Getting Started](https://github.com/wechaty/java-wechaty-getting-started)
- [Go Wechaty Getting Started](https://github.com/wechaty/go-wechaty-getting-started)
## Badge
[](https://github.com/wechaty/java-wechaty)
```md
[](https://github.com/wechaty/java-wechaty)
```
## Maintainers
[@wechaty/java](https://github.com/orgs/wechaty/teams/java/members)
## Copyright & License
- Code & Docs © 2020 Wechaty Contributors
- Code released under the Apache-2.0 License
- Docs released under Creative Commons