Add link to commit

This commit is contained in:
XelXen 2022-06-18 21:13:46 +05:30 committed by GitHub
parent f8df2f907d
commit eab7a8d9ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
.github/tg.py vendored
View File

@ -17,11 +17,10 @@ def bot():
bot = telegram.Bot(TG_TOKEN, base_url="http://0.0.0.0:8081/bot")
bot.send_photo(TG_POST_ID, open('alpha.png', 'rb'), f'''*Libretube {data['sha'][0:7]} // Alpha*
{data['commit']['message']}
[{data['commit']['message']}]({data['commit']['url']})
Signed-off-by: {data['commit']['author']['name']}
[inline URL](http://www.example.com/)
''', parse_mode="MarkdownV2")
''', parse_mode=telegram.ParseMode.MARKDOWN)
bot.send_media_group(TG_POST_ID, [telegram.InputMediaDocument(open('app-x86-debug.apk', 'rb')), telegram.InputMediaDocument(open('app-x86_64-debug.apk', 'rb')), telegram.InputMediaDocument(open('app-armeabi-v7a-debug.apk', 'rb')), telegram.InputMediaDocument(open('app-arm64-v8a-debug.apk', 'rb'))])
system('killall -9 python')