add_checklist_tasks()¶
- Client.add_checklist_tasks()¶
Add tasks to a checklist in a message.
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.tasks (List of
InputChecklistTask) – List of tasks to add to the checklist.
- Returns:¶
bool– On success, True is returned.
Example
await app.add_checklist_tasks( chat_id, message_id, tasks=[ types.InputChecklistTask( id=2, text="Task 2" ) ] )