Keep API open

This commit is contained in:
XelXen 2022-06-18 01:00:30 +05:30 committed by GitHub
parent 8b3b6dc649
commit 18eae5f2d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
.github/tg.py vendored
View File

@ -22,10 +22,6 @@ def bot():
Signed-off-by: {data['commit']['author']['name']}
''', 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'))])
for line in os.popen("ps ax | grep bot-api | grep -v grep"):
fields = line.split()
pid = fields[0]
os.kill(int(pid), signal.SIGKILL)
if __name__ == '__main__':