Skip to content

Commit b2d1c52

Browse files
author
0rtemk
committed
hotfix(tgbot): try to connect
1 parent f5d6b59 commit b2d1c52

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tgbot/uni_eduplatform_bot.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,4 +389,8 @@ def registration_flow(message):
389389

390390

391391
if __name__ == '__main__':
392-
bot.polling()
392+
while True:
393+
try:
394+
bot.polling(none_stop = True)
395+
except Exception as e:
396+
time.sleep(2)

0 commit comments

Comments
 (0)