messages.ToggleTodoCompleted

class pyrogram.raw.functions.messages.ToggleTodoCompleted

Mark one or more items of a todo list » as completed or not completed.

Details:
  • Layer: 223

  • ID: D3E03124

Parameters:
  • peer (InputPeer) – Peer where the todo list was posted.

  • msg_id (int 32-bit) – ID of the message with the todo list.

  • completed (List of int 32-bit) – Items to mark as completed.

  • incompleted (List of int 32-bit) – Items to mark as not completed.

Returns:

Updates

TL Schema

messages.toggleTodoCompleted#d3e03124
peer:InputPeer
msg_id:int
completed:Vector<int>
incompleted:Vector<int>

= Updates

Parameter Tree

ToggleTodoCompleted
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── msg_idint
├── completedVector < int >
└── incompletedVector < int >

Example

await app.invoke(
    ToggleTodoCompleted(
        peer=await app.resolve_peer(chat_id),
        msg_id=0,
        completed=[0],
        incompleted=[0],
    )
)