Layer 220
TodoList
Represents a todo list.
constructor
todoList#49b92a26 flags:# others_can_append:flags.0?true others_can_complete:flags.1?true title:TextWithEntities list:Vector<TodoItem> = TodoList;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| OthersCanAppend | flags.0?true | If set, users different from the creator of the list can append items to the list. |
| OthersCanComplete | flags.1?true | If set, users different from the creator of the list can complete items in the list. |
| Title | TextWithEntities | Title of the todo list, maximum length equal to todo_title_length_max. |
| List | Vector<TodoItem> | Items of the list. |
Returns
TodoListGogram Example
// Creating TodoList constructor obj := &tg.TodoList{ Title: &tg.TextWithEntities{}, List: []tg.TodoItem{&tg.TodoItem{}}, // Optional fields: // OthersCanAppend: true, // OthersCanComplete: true, }