1,安装pip命令:apt-get install screen git python3 python3-pip -y 2,下载fclone:bash <(wget -qO- https://git.io/JJYE0) 下载gclone:bash <(wget -qO- https://git.io/gclone.sh) 3,安装:git clone https://github.com/wrenfairbank/telegram_gcloner cd到目录:cd telegram_gcloner 4,安装依赖:pip3 install -r requirements.txt 再次cd到目录:cd telegram_gcloner 5,复制config:cp config.ini.example config.ini 6,编辑config:nano config.ini 只编辑以下 telegram_token = telegram机器人token user_ids = 你的telegram id(多个以英文逗号隔开,第一个ID为管理员) 7,运行:python3 telegram_gcloner.py

这时候你的机器人应该上线了,并给你发送了10条信息。然后执行如下命令,确保shell关闭后也能运行:

558,再次执行:python3 telegram_gcloner.py 注释:1,如想所有人都用:覆盖文件restricted.py,重新运行(路径:/root/telegram_gcloner/telegram_gcloner/utils/restricted.py) 2,用fc就把config.ini文件里边改成:path_to_gclone =/usr/bin/fclone(路径:/root/telegram_gcloner/telegram_gcloner/config.ini) 注:路径只针对debian系统