Layer 224
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.SavedRingtoneGogram Example
// AccountSaveRingtone - positional arguments result, err := client.AccountSaveRingtone(&tg.InputDocument{ID: int64(5678901234567890), AccessHash: int64(1234567890123456), FileReference: []byte{0x01, 0x02}}, true) if err != nil { // handle error } // result is *tg.AccountSavedRingtone
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | RINGTONE_INVALID | The specified ringtone is invalid. |