Switch to Cloud API

This commit is contained in:
XelXen 2022-06-12 01:35:01 +05:30 committed by GitHub
parent 0e1e898abc
commit 8ac0a07832
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

2
.github/tg.py vendored
View File

@ -2,7 +2,7 @@ import telegram
from tgconfig import TG_TOKEN
TG_CHAT_ID = "-1001537505605"
bot = telegram.Bot(TG_TOKEN, base_url="http://0.0.0.0:8081/bot")
bot = telegram.Bot(TG_TOKEN)
bot.send_photo(TG_CHAT_ID, open('space.png', 'rb'))
bot.send_document(TG_CHAT_ID, open('app-arm64-v8a-debug.apk', 'rb'))

View File

@ -48,9 +48,7 @@ jobs:
mv app/build/outputs/apk/debug/*.apk .github/
cd .github
curl https://libre-tube.github.io/assets/LibreSpace.png --output space.png
curl https://raw.githubusercontent.com/LibreTubeAlpha/Telegram-BotAPI-CI/main/build/telegram-bot-api --output bot-api
echo "TG_TOKEN = '${{ secrets.TG_TOKEN }}'" > tgconfig.py
python -m pip install --upgrade pip
pip install python-telegram-bot
./bot-api --api-id=${{ secrets.API_ID }} --api-hash=${{ secrets.API_HASH }}
python tg.py