Layer 220
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
Flags # Flags, see TL conditional fields
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

Bool

Possible Errors

Code Type Description
400 PEER_ID_INVALID The provided peer id is invalid.

Gogram Example

// AccountSaveAutoSaveSettings - using Params struct
result, err := client.AccountSaveAutoSaveSettings(&tg.AccountSaveAutoSaveSettingsParams{
    Settings: &tg.AutoSaveSettings{},

    // Optional fields:
    // Users: true,
    // Chats: true,
    // Broadcasts: true,
    // Peer: &tg.InputPeerUser{UserID: int64(123456789)},
})
if err != nil {
    // handle error
}
// result is *tg.Bool