Send task text instead of ID when doing task
This commit is contained in:
parent
eeb20fcc26
commit
d49115c421
2
bot.py
2
bot.py
@ -200,7 +200,7 @@ def do_tasks(task_ids, chat_id):
|
|||||||
task = get_task(int(i), chat_id)
|
task = get_task(int(i), chat_id)
|
||||||
task.do()
|
task.do()
|
||||||
set_task(int(i), task, chat_id)
|
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):
|
def undo_tasks(task_ids, chat_id):
|
||||||
|
Reference in New Issue
Block a user