1
0

Fix commandless task adding

This commit is contained in:
Akbar Rahman 2018-06-26 20:50:45 +01:00
parent 909365c413
commit 672c893280
Signed by: alvierahman90
GPG Key ID: 20609519444A1269

2
bot.py
View File

@ -37,7 +37,7 @@ def on_message(msg):
elif command == '/undo':
undo_tasks(arguments, chat_id)
else:
add_task(text)
add_task(Task(text), chat_id)
def add_task(task, chat_id):