Pass to bottools.methods.unknown if not admin in restart()
This commit is contained in:
parent
6e12ba4a44
commit
5fb84de363
|
@ -231,3 +231,5 @@ def restart(bot, update):
|
||||||
update.message.reply_text(bottools.strings.restart)
|
update.message.reply_text(bottools.strings.restart)
|
||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
os.execl(sys.executable, sys.executable, *sys.argv)
|
os.execl(sys.executable, sys.executable, *sys.argv)
|
||||||
|
else:
|
||||||
|
bottools.methods.unknown(bot, update)
|
||||||
|
|
Loading…
Reference in a new issue