diff --git a/.github/tg.py b/.github/tg.py index e3b14d5a9..c8ca6758e 100644 --- a/.github/tg.py +++ b/.github/tg.py @@ -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')) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 31217c907..dd7737862 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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