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
| Name | Type | Required | Description |
|---|---|---|---|
Low | bool | — | Whether to save media in the low data usage preset |
High | bool | — | Whether to save media in the high data usage preset |
Settings | AutoDownloadSettings | yes | Media autodownload settings |
Returns
bool
References
- Official documentation
- Generated Go reference
- TL definition:
account.saveAutoDownloadSettings#76f36233