Improve signal handling
This commit is contained in:
parent
d8ea9a93a8
commit
955acb74b4
6
bot.py
6
bot.py
|
@ -24,7 +24,5 @@ updater.dispatcher.add_handler(telegram.ext.CommandHandler("auth", auth))
|
|||
updater.dispatcher.add_handler(telegram.ext.CommandHandler("unauth", unauth))
|
||||
updater.dispatcher.add_handler(telegram.ext.CommandHandler("fish", fish))
|
||||
|
||||
try:
|
||||
updater.start_polling()
|
||||
except KeyboardInterrupt:
|
||||
updater.stop()
|
||||
updater.start_polling()
|
||||
updater.idle()
|
||||
|
|
Loading…
Reference in a new issue