Layer 224
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

Gogram 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.