Layer 220
method Users
messages.appendTodoList#21a61057 peer:InputPeer msg_id:int list:Vector<TodoItem> = Updates;

Parameters

Name Type Description
Peer InputPeer Peer where the todo list was posted.
MsgId int ID of the message with the todo list.
List Vector<TodoItem> Items to append.

Returns

Updates

Possible Errors

Code Type Description
400 MESSAGE_ID_INVALID The provided message id is invalid.
400 PEER_ID_INVALID The provided peer id is invalid.
400 TODO_ITEM_DUPLICATE Duplicate checklist items detected.
400 TODO_NOT_MODIFIED No todo items were specified, so no changes were made to the todo list.

Gogram Example

// MessagesAppendTodoList - positional arguments
result, err := client.MessagesAppendTodoList(&tg.InputPeerUser{UserID: int64(123456789)}, 0, []tg.TodoItem{&tg.TodoItem{}})
if err != nil {
    // handle error
}
// result is *tg.Updates