mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-15 06:40:30 +05:30
21 lines
619 B
Python
21 lines
619 B
Python
import telegram
|
|
from tgconfig import TG_TOKEN
|
|
from json import load
|
|
from time import sleep
|
|
|
|
f = open('commit.json')
|
|
data = load(f)
|
|
|
|
TG_CHAT_ID = "-1001537505605"
|
|
bot = telegram.Bot(TG_TOKEN)
|
|
|
|
bot.send_photo(TG_CHAT_ID, open('alpha.png', 'rb'), f'''Libretube {data['sha'][0:7]} // Alpha
|
|
|
|
{data['commit']['message']}
|
|
''')
|
|
bot.send_document(TG_CHAT_ID, open('app-arm64-v8a-debug.apk', 'rb'))
|
|
bot.send_document(TG_CHAT_ID, open('app-armeabi-v7a-debug.apk', 'rb'))
|
|
bot.send_document(TG_CHAT_ID, open('app-x86_64-debug.apk', 'rb'))
|
|
bot.send_document(TG_CHAT_ID, open('app-x86-debug.apk', 'rb'))
|
|
|
|
f.close() |