Skip to main content

account.saveAutoDownloadSettings

Change media autodownload settings

func (c *Client) AccountSaveAutoDownloadSettings(ctx context.Context, request *AccountSaveAutoDownloadSettingsRequest) (bool, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.AccountSaveAutoDownloadSettings(ctx, &tg.AccountSaveAutoDownloadSettingsRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters

NameTypeRequiredDescription
LowboolWhether to save media in the low data usage preset
HighboolWhether to save media in the high data usage preset
SettingsAutoDownloadSettingsyesMedia autodownload settings

Returns

bool

References