Pass to bottools.methods.unknown if not admin in restart()

This commit is contained in:
Klaus-Uwe Mitterer 2017-03-23 13:06:58 +01:00
parent 6e12ba4a44
commit 5fb84de363

View file

@ -231,3 +231,5 @@ def restart(bot, update):
update.message.reply_text(bottools.strings.restart)
time.sleep(0.5)
os.execl(sys.executable, sys.executable, *sys.argv)
else:
bottools.methods.unknown(bot, update)