1
0

Implement help command

This commit is contained in:
Akbar Rahman 2018-08-09 21:13:58 +01:00
parent c634a447a0
commit 1901de893d
Signed by: alvierahman90
GPG Key ID: 20609519444A1269

5
bot.py
View File

@ -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):