[O] Update command return message implementations

This commit is contained in:
Hykilpikonna
2020-11-22 13:37:10 -05:00
parent 9b6f0f2792
commit 755565481c
2 changed files with 4 additions and 6 deletions
+2 -2
View File
@@ -17,8 +17,8 @@ def createCommand(method):
data = method(update, context)
# Send back data if not null
if data is not None and data is not '':
context.bot.send_message(chat_id=update.effective_chat.id, text=data)
if data is not None and data != '':
context.bot.send_message(chat_id=update.effective_chat.id, text=data, parse_mode="markdown")
# Create handler for the wrapper command
return CommandHandler(method.__name__, command, run_async=True)