EFB Docker image with efb-telegram-master and efb-wechat-slave
- Container run by non-root user.
- Support add environment variables
PROXY_URL
,PROXY_USER
, andPROXY_PASS
to use proxy for ETM. - Integrate efb-patch-middleware and efb-search_msg-middleware by default.
docker pull thehaukeng/efb-wechat
# You can use ghcr.io as well
# docker pull ghcr.io/haukeng/efb-wechat
git clone https://github.com/haukeng/efb-wechat-docker.git
cd efb-wechat-docker && docker build -t thehaukeng/efb-wechat efb-wechat
Create a Telegram Bot by talking to @BotFather and it will give you the Bot Token
Get your Telegram ID (Not username) from @getidsbot
If you prefer to use docker.
# Create volumes
docker volume create efb-wechat-data
# Run
docker run -d -t \
--name "efb-wechat" \
-e BOT_TOKEN=xxxx \
-e BOT_ADMIN=xxxx \
-v efb-wechat-data:/home/efb/efb_config/profiles/default \
thehaukeng/efb-wechat
(Required) Use your Telegram Bot Token as BOT_TOKEN
and your Telegram ID as BOT_ADMIN
If you prefer to use docker-compose.
mkdir efb-wechat && cd efb-wechat
wget https://git.io/JMR3i -O docker-compose.yml
(Required) Modify the environment variables by editing docker-compose.yml, and then:
docker-compose up -d
docker logs -f efb-wechat
# Ctrl + C to quit after your log in
Scan the QR code to log in
BOT_TOKEN
(Required) Your Telegram bot token.
BOT_ADMIN
(Required) Your Telegram account id.
PROXY_URL
(Optional) Proxy url use to connect Telegram by network proxy.
Supported both
http
andsocks5
proxy.For example:
http://172.17.0.1:1080
PROXY_USER
(Optional) Use for proxy authentication
PROXY_PASS
(Optional) Use for roxy authentication
SEND_IMAGE_AS_FILE
(Optional) Set the value to
0
to disable send all image messages as files (preventing Telegram’s image compression).Enabled by default.
ANIMATED_STICKERS
(Optional) Set the value to
0
to disable support to animated stickers.Enabled by default.
MESSAGE_MUTED_ON_SLAVE
(Optional) Behavior when a message received is muted on slave channel platform. Availiable value:
normal
,silent
andmute
. Go to ehForwarderBot/efb-telegram-master to get more information.
normal
is the default value
YOUR_MESSAGE_ON_SLAVE
(Optional) Behavior when a message received is from you on slave channel platform. Availiable value:
normal
,silent
andmute
. Go to ehForwarderBot/efb-telegram-master to get more information.
silent
is the default value
MP_GROUP_ID
(Optional) Telegram group id for forwarding every public account message to it. Go to efb-patch-middleware to get more information.
AUTO_MARK_AS_READ
(Optional) Set the value to
0
to disable auto mark as read in wechat phone client. Go to efb-patch-middleware to get more information.Enabled by default.
REMOVE_EMOJI_IN_TITLE
(Optional) Set the value to
0
to disable remove emoji in telegram group title. Go to efb-patch-middleware to get more information.Enabled by default.
STRIKETHROUGH_RECALL_MSG
(Optional) Set the value to
0
to disable strikethrough instead of replying to a recall message. Go to efb-patch-middleware to get more information.Enabled by default.
Try to set PROXY_URL
as http://172.17.0.1:YOUR_PORT
(Socks5 works as well)