From 5fb84de363fa2bcb63a429c6360d4cf194c7d366 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Thu, 23 Mar 2017 13:06:58 +0100 Subject: [PATCH] Pass to bottools.methods.unknown if not admin in restart() --- bottools/methods.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bottools/methods.py b/bottools/methods.py index e7284b9..efd836f 100644 --- a/bottools/methods.py +++ b/bottools/methods.py @@ -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)