Layer 227
AccountSaveAutoSaveSettings
Modify autosave settings
method
Users
account.saveAutoSaveSettings#d69b8361 flags:# users:flags.0?true chats:flags.1?true broadcasts:flags.2?true peer:flags.3?InputPeer settings:AutoSaveSettings = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Users | flags .0? true | Whether the new settings should affect all private chats |
| Chats | flags .1? true | Whether the new settings should affect all groups |
| Broadcasts | flags .2? true | Whether the new settings should affect all channels |
| Peer | flags .3? InputPeer | Whether the new settings should affect a specific peer |
| Settings | AutoSaveSettings | The new autosave settings |
Returns
BoolGogram Example
// AccountSaveAutoSaveSettings - positional arguments result, err := client.AccountSaveAutoSaveSettings(nil, nil, nil, nil, &tg.AutoSaveSettings{}) if err != nil { // handle error } // result is *tg.Bool
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |