mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 16:00:31 +05:30
Integrate Variable
This commit is contained in:
parent
d6eae359d8
commit
a57ab1da79
20
.github/tg.py
vendored
20
.github/tg.py
vendored
@ -5,21 +5,19 @@ from time import sleep
|
|||||||
|
|
||||||
f = open('commit.json')
|
f = open('commit.json')
|
||||||
data = load(f)
|
data = load(f)
|
||||||
|
|
||||||
title = f'''<b>Libretube {data['sha'][0:7]} // Alpha</b>
|
|
||||||
|
|
||||||
{data['commit']['message']}
|
|
||||||
|
|
||||||
Signed-off-by: {data['commit']['author']['name']} <{data['commit']['author']['email']}>
|
|
||||||
'''
|
|
||||||
|
|
||||||
f.close()
|
|
||||||
|
|
||||||
TG_CHAT_ID = "-1001537505605"
|
TG_CHAT_ID = "-1001537505605"
|
||||||
bot = telegram.Bot(TG_TOKEN)
|
bot = telegram.Bot(TG_TOKEN)
|
||||||
|
|
||||||
bot.send_photo(TG_CHAT_ID, open('alpha.png', 'rb'), title, telegram.ParseMode.HTML)
|
bot.send_photo(TG_CHAT_ID, open('alpha.png', 'rb'), f'''<b>Libretube {data['sha'][0:7]} // Alpha</b>
|
||||||
|
|
||||||
|
{data['commit']['message']}
|
||||||
|
|
||||||
|
Signed-off-by: {data['commit']['author']['name']} <{data['commit']['author']['email']}>
|
||||||
|
''', telegram.ParseMode.HTML)
|
||||||
bot.send_document(TG_CHAT_ID, open('app-arm64-v8a-debug.apk', 'rb'))
|
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-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_64-debug.apk', 'rb'))
|
||||||
bot.send_document(TG_CHAT_ID, open('app-x86-debug.apk', 'rb'))
|
bot.send_document(TG_CHAT_ID, open('app-x86-debug.apk', 'rb'))
|
||||||
|
|
||||||
|
f.close()
|
Loading…
x
Reference in New Issue
Block a user