fix restart function
This commit is contained in:
2
bot.py
2
bot.py
@ -87,7 +87,7 @@ def on_chat(msg):
|
|||||||
user.logout_system()
|
user.logout_system()
|
||||||
|
|
||||||
elif command[0] == '/restart':
|
elif command[0] == '/restart':
|
||||||
if from_id in config.ADMIN:
|
if str(from_id) in config.ADMIN:
|
||||||
bot.sendMessage(chat_id, "即將重新啟動")
|
bot.sendMessage(chat_id, "即將重新啟動")
|
||||||
restart = True
|
restart = True
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user