fix / command disappearing

This commit is contained in:
2018-05-06 15:58:03 +08:00
parent d0dd40313c
commit f3d412443a

2
bot.py
View File

@ -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'])