mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 07:50:31 +05:30
Switch to Cloud API
This commit is contained in:
parent
0e1e898abc
commit
8ac0a07832
2
.github/tg.py
vendored
2
.github/tg.py
vendored
@ -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'))
|
||||
|
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user