1

我想在我的 vps linux debian 10.4 上部署文件共享机器人电报,但是当我像在日志中一样运行 main.py 时代码是错误的。机器人工作用途:(pyrogram)(TgCrypto)(Pyromod)和数据库使用(sqlalchemy~=1.3.23)(psycopg2-binary)(feedparser)

我使用的代码https://github.com/CodeXBotz/File-Sharing-Bot


root@Serverdwiki:/home/dwiki/File-Sharing-Bot# python3 main.py 
Pyrogram v1.2.18, Copyright (C) 2017-2021 Dan 
Licensed under the terms of the GNU Lesser General Public License v3 or later (LGPLv3+)

[16-Dec-21 16:19:43 - WARNING] - bot - [400 CHANNEL_INVALID]: The channel parameter is invalid (caused by "channels.GetChannels")
[16-Dec-21 16:19:43 - WARNING] - bot - Bot can't Export Invite link from Force Sub Channel!
[16-Dec-21 16:19:43 - WARNING] - bot - Please Double check the FORCE_SUB_CHANNEL value and Make sure Bot is Admin in channel with Invite Users via Link Permission, Current Force Sub Channel Value: -1001671790214
[16-Dec-21 16:19:43 - INFO] - bot - 
Bot Stopped. Join https://t.me/ CodeXBotzSupport for support ```





如果我不填写 FORCE_SUB

错误日志

root@Serverdwiki:/home/dwiki/File-Sharing-Bot# python3 main.py 
Pyrogram v1.2.18, Copyright (C) 2017-2021 Dan <https://github.com/delivrance>
Licensed under the terms of the GNU Lesser General Public License v3 or later (LGPLv3+)

[16-Dec-21 16:24:09 - WARNING] - bot - [400 CHANNEL_INVALID]: The channel parameter is invalid (caused by "channels.GetChannels")
[16-Dec-21 16:24:09 - WARNING] - bot - Make Sure bot is Admin in DB Channel, and Double check the CHANNEL_ID Value, Current Value -1001671790214
[16-Dec-21 16:24:09 - INFO] - bot - 
Bot Stopped. Join https://t.me/CodeXBotzSupport for support
4

0 回答 0