1.安装必要的环境

1
sudo apt-get update
1
wget https://raw.githubusercontent.com/hookjk100/efb-install/main/install.sh -O install.sh && chmod +x install.sh && bash install.sh
1
pip uninstall efb-wechat-slave
1
pip3 install git+https://github.com/ehForwarderBot/efb-wechat-slave

2.修改个人的信息

1
nano /root/.ehforwarderbot/profiles/default/config.yaml
1
2
3
4
5
6
7
8
master_channel: blueset.telegram
slave_channels:
- blueset.wechat
- blueset.wechat#gzzh #多个微信就要
#这一部分为插件,更多功能请查看文档
flags:
delete_on_edit: true
#以撤回并重新发送的方式代替编辑消息
1
如果要登陆多个微信账号,需要执行这一步即新建目录如blueset.wechat#gzzh一样的名字,目录下在创建文件config.yaml,示例如下:
1
2
3
4
5
6
7
8
9
`-- profiles
`-- default
|-- blueset.telegram
| |-- config.yaml
|-- blueset.wechat
| |-- config.yaml
|-- blueset.wechat#gzzh
| |-- config.yaml
`-- config.yaml
1
2
mkdir /root/.ehforwarderbot/profiles/default/blueset.wechat#gzzh 
#新建目录如blueset.wechat#gzzh
1
2
touch /root/.ehforwarderbot/profiles/default/blueset.wechat#gzzh/config.yaml
#创建文件config.yaml

1
nano /root/.ehforwarderbot/profiles/default/blueset.telegram/config.yaml
1
2
3
4
token: "" #在""中间 填入你之前找botfather申请的api
admins:
- 1234 #把数字修改为你的个人 telegram id 在上方获取过
#- 1279136259 #如果,想要多个账号使用同一个微信,可在这里加入第二个id或者多个id,去掉开头的#

3.启动登录

1
screen -S wechat
1
ehforwarderbot

4.删除screen日志

1
2
3
4
crontab -e
#选带basic那个
crontab -l
0 */10 * * rm .ehforwarderbot/profiles/default/screenlog.0