toggle_todo_completed()

Client.toggle_todo_completed()

Toggle to-do items as completed or incompleted.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat.

  • message_id (int) – Identifier of the message containing the to-do list.

  • completed (List of int, optional) – List of item indices to mark as completed.

  • incompleted (List of int, optional) – List of item indices to mark as incompleted.

Returns:

Updates – On success, the updates object is returned.