1
0

Send task text instead of ID when doing task

This commit is contained in:
Akbar Rahman 2018-07-08 22:21:49 +01:00
parent eeb20fcc26
commit d49115c421
Signed by: alvierahman90
GPG Key ID: 20609519444A1269

2
bot.py
View File

@ -200,7 +200,7 @@ def do_tasks(task_ids, chat_id):
task = get_task(int(i), chat_id)
task.do()
set_task(int(i), task, chat_id)
bot.sendMessage(chat_id, "Did task {0}".format(i))
bot.sendMessage(chat_id, "Did task {0}".format(task))
def undo_tasks(task_ids, chat_id):