file

Tg频道群组转发机器人创建教程

系统提前安装python3,具体安装教程详见:https://www.mcheng.cn/notepad/1085.html, 配置号相关环境,

git clone https://github.com/MrMissx/Telegram_Forwarder.git
CD Telegram_Forwarder/forwarder
vi config.py

输入一下内容

from forwarder.sample_config import Config

class Development(Config):
    API_KEY = "1234567890:Abcdef1234567890GHIJ"  # Your bot API key
    OWNER_ID = 1234567890  # Your user id

    # Make sure to include the '-' sign in group and channel ids.
    FROM_CHATS = [-1001234567890]  # List of chat id's to forward messages from.
    TO_CHATS = [-1001234567890, -1234567890]  # List of chat id's to forward messages to.

    REMOVE_TAG = True
    WORKERS = 4

然后

pip3 install -r requirements.txt
python3 -m forwarder

完成

人已赞赏
VPS折腾教程笔记

宝塔环境下安装Python3实操教程

2021-9-23 15:04:10

VPS折腾教程笔记

python2.7.5升级Python3.8.0教程 避免走弯路

2021-9-24 13:51:45

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索