From 1901de893d9a468ec85fefb2f1de09cdfb5d3021 Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Thu, 9 Aug 2018 21:13:58 +0100 Subject: [PATCH] Implement help command --- bot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 99c9230..ae1e298 100755 --- a/bot.py +++ b/bot.py @@ -363,7 +363,10 @@ def user_help_info(chat_id, arguments=None): The help text sent to user :param chat_id: Telegram chat_id """ - BOT.sendMessage(chat_id, "Help command not implemented yet. ") + with open('help.md') as help_file: + text = help_file.read() + text += "\n[View help on GitHub](alvierahman90.github.io/todo.txt_telegram/help.html)" + BOT.sendMessage(chat_id, text, parse_mode= 'Markdown') def delete_all_tasks(chat_id):