ping pong

This commit is contained in:
2017-08-24 17:24:51 +08:00
parent 63050b6ad0
commit d7ef281a52

5
bot.py
View File

@ -75,6 +75,11 @@ def on_chat(msg):
time.sleep(1)
os._exit(0)
elif command[0] == '/ping':
bot.sendMessage(chat_id, "*PONG*",
parse_mode='Markdown',
reply_to_message_id=msg['message_id'])
elif chat_type == 'private':
if command[0] == '/help' or command[0] == '幫助📚':
if user.check_online() == True: