Layer 220
MessagesToggleTodoCompleted
Mark one or more items of a todo list as completed or not completed.
method
Users
messages.toggleTodoCompleted#d3e03124 peer:InputPeer msg_id:int completed:Vector<int> incompleted:Vector<int> = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | Peer where the todo list was posted. |
| MsgId | int | ID of the message with the todo list. |
| Completed | Vector<int> | Items to mark as completed. |
| Incompleted | Vector<int> | Items to mark as not completed. |
Returns
UpdatesPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
Gogram Example
// MessagesToggleTodoCompleted - positional arguments result, err := client.MessagesToggleTodoCompleted(&tg.InputPeerUser{UserID: int64(123456789)}, 0, []int{}, []int{}) if err != nil { // handle error } // result is *tg.Updates