[F] Keep main thread alive
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import logging
|
import logging
|
||||||
|
import time
|
||||||
|
|
||||||
import telegram
|
import telegram
|
||||||
|
|
||||||
@@ -30,3 +31,7 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
# Start bot
|
# Start bot
|
||||||
updater.start_polling()
|
updater.start_polling()
|
||||||
|
|
||||||
|
# Keep alive
|
||||||
|
while True:
|
||||||
|
time.sleep(5)
|
||||||
|
|||||||
Reference in New Issue
Block a user