Layer 220
AccountSaveRingtone
Save or remove saved notification sound.
method
Users
Parameters
| Name | Type | Description |
|---|---|---|
| Id | InputDocument | Notification sound uploaded using account. upload Ringtone |
| Unsave | Bool | Whether to add or delete the notification sound |
Returns
account.SavedRingtonePossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | RINGTONE_INVALID | The specified ringtone is invalid. |
Gogram Example
// AccountSaveRingtone - positional arguments result, err := client.AccountSaveRingtone(&tg.InputDocument{ID: int64(0), AccessHash: int64(0), FileReference: []byte{}}, true) if err != nil { // handle error } // result is *tg.AccountSavedRingtone