From 24a49ea9cd87ddb9a4164b69473fcef71afbfb0d Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Fri, 27 Nov 2020 10:26:40 -0500 Subject: [PATCH] [F] Keep main thread alive --- src/bot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bot.py b/src/bot.py index 52b5e1f..2cd8a85 100644 --- a/src/bot.py +++ b/src/bot.py @@ -1,4 +1,5 @@ import logging +import time import telegram @@ -30,3 +31,7 @@ if __name__ == '__main__': # Start bot updater.start_polling() + + # Keep alive + while True: + time.sleep(5)