From 89b372ac9e1839f44e6e3b4871d50f0614840379 Mon Sep 17 00:00:00 2001 From: PinLin Date: Wed, 23 Aug 2017 22:34:10 +0800 Subject: [PATCH] starting message --- bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index eae9cdf..8fd4597 100644 --- a/bot.py +++ b/bot.py @@ -88,6 +88,7 @@ def on_chat(msg): elif command[0] == '/restart': if str(from_id) in config.ADMIN: bot.sendMessage(chat_id, "即將更新並重新啟動") + print("Restarting...") time.sleep(1) os._exit(0) @@ -111,7 +112,7 @@ def on_chat(msg): user.send_answer('', msg['document']['file_id']) MessageLoop(bot, on_chat).run_as_thread() -print("Start...") +print("Started! Service is available.") # for debug def main():