mark_checklist_tasks_as_done()¶
- Client.mark_checklist_tasks_as_done()¶
Add tasks of a checklist in a message as done or not done.
Usable by Users Bots- Parameters:
chat_id (
int|str) – Unique identifier (int) or username (str) of the target chat. For your personal cloud (Saved Messages) you can simply use “me” or “self”. For a contact that exists in your Telegram address book you can use his phone number (str).message_id (
int) – Identifier of the message containing the checklist.marked_as_done_task_ids (List of
int) – Identifiers of tasks that were marked as done.marked_as_not_done_task_ids (List of
int) – Identifiers of tasks that were marked as not done.
- Returns:
bool– On success, True is returned.
Example
await app.mark_checklist_tasks_as_done( chat_id, message_id, marked_as_done_task_ids=[1, 2, 3] )