From 75b823c715c4e96c20e09d2fd5c60523a666aaf6 Mon Sep 17 00:00:00 2001 From: XelXen <78258352+XelXen@users.noreply.github.com> Date: Mon, 13 Jun 2022 09:54:40 +0530 Subject: [PATCH 1/3] Remove Unnecessary Module Import --- .github/tg.py | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/tg.py b/.github/tg.py index 261ba88de..5a9013532 100644 --- a/.github/tg.py +++ b/.github/tg.py @@ -1,7 +1,6 @@ import telegram from tgconfig import TG_TOKEN from json import load -from time import sleep f = open('commit.json') data = load(f) From f12b6cd81ea21b7602cf60becf59ef99928df627 Mon Sep 17 00:00:00 2001 From: XelXen <78258352+XelXen@users.noreply.github.com> Date: Mon, 13 Jun 2022 10:20:10 +0530 Subject: [PATCH 2/3] Fix Format --- .github/tg.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/tg.py b/.github/tg.py index 5a9013532..be3be72cb 100644 --- a/.github/tg.py +++ b/.github/tg.py @@ -1,20 +1,23 @@ import telegram from tgconfig import TG_TOKEN from json import load +from time import sleep f = open('commit.json') data = load(f) +f.close() 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 +bot.send_photo(TG_CHAT_ID, open('alpha.png', 'rb'), f'''*Libretube {data['sha'][0:7]} // Alpha* {data['commit']['message']} -''') + +Signed-off-by: {data['commit']['author']['name']} + +[Commit]({data}['html_url']) +''', parse_mode=telegram.ParseMode.MARKDOWN) 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() \ No newline at end of file +bot.send_document(TG_CHAT_ID, open('app-x86_64-debug.apk', 'rb')) \ No newline at end of file From 99105de8108341c6660022a9ec228a1265d553e5 Mon Sep 17 00:00:00 2001 From: XelXen <78258352+XelXen@users.noreply.github.com> Date: Mon, 13 Jun 2022 10:37:07 +0530 Subject: [PATCH 3/3] Remove Inline Button --- .github/tg.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/tg.py b/.github/tg.py index be3be72cb..1c7bd8b8a 100644 --- a/.github/tg.py +++ b/.github/tg.py @@ -15,8 +15,6 @@ bot.send_photo(TG_CHAT_ID, open('alpha.png', 'rb'), f'''*Libretube {data['sha'][ {data['commit']['message']} Signed-off-by: {data['commit']['author']['name']} - -[Commit]({data}['html_url']) ''', parse_mode=telegram.ParseMode.MARKDOWN) 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'))