Upload notification sound, use account.saveRingtone to convert it and add it to the list of saved notification sounds.
Method schema is available as of layer 140. Switch ยป
| Name | Type | Description |
|---|---|---|
| file | InputFile | Notification sound |
| file_name | string | File name |
| mime_type | string | MIME type of file |
| Code | Type | Description |
|---|---|---|
| 400 | RINGTONE_MIME_INVALID | The MIME type for the ringtone is invalid. |
Save or remove saved notification sound.
If the notification sound is already in MP3 format, account.savedRingtone will be returned.
Otherwise, it will be automatically converted and a account.savedRingtoneConverted will be returned, containing a new document object that should be used to refer to the ringtone from now on (ie when deleting it using the unsave parameter, or when downloading it).