Telegram Enslaves WeChat
Happy Chinese New Year🎉! It's seventh lunar month also end of the holiday. So i learn to do something meaningful, get rid of some bad shit.
The ringleader of Chinese increasingly closed Internet - WeChat, kidnapped my family and friends, forced me to use their so-called social software(spyware actually). And I'm not looking for network neutrality cuz we're far far away from it. That fuckin spyware doing something worse. Like scan my disk for privacy, do content review to decide what I could see, filter what I'm sayin without telling me👿.
Since that imp enslaves me and I have no escape, I decide to let my Telegram enslaves that imp and then talk to my Telegram equally and freely, without getting my hands dirty.
Libs Version
Libraries to use:
- EH Forwarder Bot (EFB) 2.0 Beta - extensible chat tunneling framework
- EFB Telegram Master Channel (ETM) - EFB Telegram Master Channel
- EFB WeChat Slave Channel (EWS). - EFB WeChat Slave Channel
It's important to know EWS is now Alpha version so it's unstable and changes rapidly. So again, I use:
- Python 3.6 (It requires Python >= 3.6)
- EFB 2.0.0b13
- ETM 2.0.0b18
- EWS 2.0.0a16
Requirements
- Telegram and WeChat account (seriously?)
- Telegram bot
- VPS (that can access the real Internet)
Setup the Telegram Bot
- Ask @BotFather for a new bot,
/newbot
- Name it,
WeChat Slave
- Choose a username for ur bot (unique),
panda_wechat_bot
- Set
/setprivacy
status toDisable
- Set
/setjoingroups
status toEnable
Optional:
-
Set bot's profile photo:
/setuserpic
-
Set bot's description:
/setdescription
-
Set bot's about text:
/setabouttext
-
Set commands helper:
/setcommands
Commands helper:
help - Show commands list. link - Link a remote chat to a group. chat - Generate a chat head. info - Display information of the current Telegram chat. update_info - Update the group name and profile picture. unlink_all - Unlink all remote chats from a group. extra - Access additional features from Slave Channels.
Get Token
Ask @BotFather for your Bot's token: /token
, record it like: 123456789:EXAMPLEOF5BOTTOEKN5TOACCESS5HTTPAPI
.
Ask @get_id_bot for your Chat ID, record it like: 716124421
.
Deploy and Config on Server
Installation
sudo apt update
sudo apt install -y python3 python3-pip python3-pil python3-setuptools python3-numpy python3-yaml python3-requests
sudo apt install -y ffmpeg libmagic-dev libwebp-dev screen
pip3 install imageio==2.4.0
pip3 install ehforwarderbot==2.0.0b13
pip3 install efb-telegram-master==2.0.0b18
pip3 install efb-wechat-slave==2.0.0a16
Enable EFB in the profile
mkdir -p ~/.ehforwarderbot/profiles/default
vim ~/.ehforwarderbot/profiles/default/config.yaml
Set the master and slave:
master_channel: "blueset.telegram"
slave_channels:
- "blueset.wechat"
Set token and admin
mkdir -p ~/.ehforwarderbot/profiles/default/blueset.telegram
vim ~/.ehforwarderbot/profiles/default/blueset.telegram/config.yaml
Set token as Bot's token recorded before to access the bot.
And set admins as Chat ID recorded before to make sure only you can access it.
token: "123456789:EXAMPLEof5BOTtoken5toaccess5HTTPAPI"
admins:
- 716124421
Launch! 🚀
- Launch EFB:
screen ehforwarderbot
- Scan the QR Code to login your WeChat account
- Chat with your Telegram Bot
Post cover image from Self-Censorship in China Continues, Extends to Mobile Apps