Skip to content

Commit 7279365

Browse files
docs: fix send_checklist example
1 parent 898b322 commit 7279365

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

pyrogram/methods/messages/send_checklist.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,13 @@ async def send_checklist(
103103
104104
await client.send_checklist(
105105
chat_id=message.chat.id,
106-
title="To do",
107-
tasks=[
108-
types.InputChecklistTask(id=1, text="Task 1"),
109-
types.InputChecklistTask(id=2, text="Task 2")
110-
]
106+
checklist=types.InputChecklist(
107+
title="To do",
108+
tasks=[
109+
types.InputChecklistTask(id=1, text="Task 1"),
110+
types.InputChecklistTask(id=2, text="Task 2")
111+
]
112+
)
111113
)
112114
"""
113115
title, entities = (await utils.parse_text_entities(

0 commit comments

Comments
 (0)