Skip to content

qushulan/wechat2tg

 
 

Repository files navigation

WeChat Message Forwarding to Telegram

English | 中文

This project is based on wechaty and aims to forward WeChat messages to a Telegram bot. It is currently in the testing phase and uses the UOS protocol's puppet implementation, which can bypass some issues with certain accounts not being able to log in to the WeChat web version.

Currently implemented features include:

  1. Forwarding group messages that @ you in WeChat to a Telegram bot
  2. Forwarding private WeChat messages containing images, voice messages, text, or videos to a Telegram bot
  3. Group message whitelist

Usage

Using Node.js v16 or higher

  1. Install dependencies:

    npm install
  2. Configure the Telegram bot's token and proxy information in the .env file.

  3. Run the program:

    npm start
  4. Scan the QR code to log in to your WeChat account.

Using Docker

docker run -itd --env BOT_TOKEN="" --env HOST="" --env PORT="" --env USERNAME="" --env PASSWORD="" --env PROTOCOL="socks5" finalpi/wechat2tg:latest

Using docker-compose

docker-compose up -d

Disclaimer

This project is only for technical research and learning purposes, and must not be used for illegal activities.

License

MIT

Thanks

Thanks to JetBrains for their support of this project. Jetbrains

About

微信消息转发到telegram

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.2%
  • Dockerfile 4.8%