adlinkfly telegram bot
v2.0.0
HOST_PORT = 8080 #Only for Docker Container Deployment - OPTIONAL - DEFAULT: 8080
DOMAIN_NAME = yourdomain.com
BOT_TOKEN = Paste Your Telegram Bot API Token
ADLINKFLY_TOKEN = Paste Your Adlinkfly API Token
START = Type the start message here you want to show the user nNew Line Starts Here
HELP = Type the help message here you want to show the user nNew Line Starts Here
#Don't use https:// on DOMAIN_NAME field just type the nacked domain name as shown!
#To change the line (New Line) of START or HELP message use ' n ' between the lines (Works as Enter Key of Keyboard! Python Syntax... :-)
1鍵部署(最簡單):
補充部署:
https://github.com/techishfellow/adlinkfly-telegram-bot.git
python3 adlinkfly_bot.py
pip install -r requirements.txt
如前所述(在配置 /環境Vriables部分中),打開一個“秘密”窗口並配置所有秘密。補充秘密的工作原理與環境變量相同。不知道如何使用Replate Secrets?在這裡閱讀
現在,只需單擊頂部的綠色“運行”按鈕即可啟動機器人。就是這樣...! !
自定義服務器部署(使用Docker)(建議):
curl -sSL https://get.docker.com/ | CHANNEL=stable sh && apt install docker-compose-plugin
git clone https://github.com/techishfellow/adlinkfly-telegram-bot.git /opt/adlinkfly-telegram-bot
cd /opt/adlinkfly-telegram-bot && touch /opt/adlinkfly-telegram-bot/.env && nano /opt/adlinkfly-telegram-bot/.env
用CTRL + O保存它,然後按Enter ,退出nano CTRL + X
cd /opt/adlinkfly-telegram-bot && docker compose build && docker compose up -d
cd /opt/adlinkfly-telegram-bot && docker compose down
自定義服務器部署(不建議):
sudo apt install python3-pip
pip install -r requirements.txt
python3 adlinkfly_bot.py
pkill -SIGINT -f 'gunicorn -b 0.0.0.0:8080 -w 4 webserver:adlinkflytgbot'
pip install -r requirements.txt
python3 adlinkfly_bot.py
Adlinkfly Telegram Bot是一個開放式項目,該項目均根據GPL-3.0許可,任何人都可以查看,修改或使用(個人和商業)它的資源,而無需任何額外的權限。如果您想分發它的資源,請考慮將其歸因於此存儲庫。注意:此腳本不是由MightyScripts正式開發,支持或隸屬的。這只是我的一個愛好項目!
一個開源項目- 由Subhamoy的♥開發