From f3d412443a8e9b0c1c931db173ba6fec0f17fff3 Mon Sep 17 00:00:00 2001 From: Pin Lin Date: Sun, 6 May 2018 15:58:03 +0800 Subject: [PATCH] fix / command disappearing --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 65281d2..e6e0139 100644 --- a/bot.py +++ b/bot.py @@ -43,7 +43,7 @@ def on_chat(msg): command = msg['text'].replace(NAME, '').replace('_', ' ').lower().split(' ') # test connection - elif command[0] == '/ping': + if command[0] == '/ping': bot.sendMessage(chat_id, "*PONG*", parse_mode='Markdown', reply_to_message_id=msg['message_id'])