messages.AppendTodoList

class pyrogram.raw.functions.messages.AppendTodoList

Appends one or more items to a todo list ».

Details:
  • Layer: 223

  • ID: 21A61057

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

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

  • list (List of TodoItem) – Items to append.

Returns:

Updates

TL Schema

messages.appendTodoList#21a61057
peer:InputPeer
msg_id:int
list:Vector<TodoItem>

= Updates

Parameter Tree

AppendTodoList
├── 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
└── listVector < TodoItem >
└── TodoItem
├── idint
└── titleTextWithEntities

Example

await app.invoke(
    AppendTodoList(
        peer=await app.resolve_peer(chat_id),
        msg_id=0,
        list=[
                TodoItem(
                    id=0,
                    title=TextWithEntities(
                        text="Open",
                        entities=[
                                MessageEntityUnknown(
                                    offset=0,
                                    length=0
                                )
                            ]
                    )
                )
            ],
    )
)