messages.appendTodoList
Appends one or more items to a todo list ».
func (c *Client) MessagesAppendTodoList(ctx context.Context, request *MessagesAppendTodoListRequest) (UpdatesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesAppendTodoList(ctx, &tg.MessagesAppendTodoListRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | Peer where the todo list was posted. |
MsgID | int | yes | ID of the message with the todo list. |
List | []TodoItem | yes | Items to append. |
Returns
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. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.appendTodoList#21a61057