Layer 224
method Users
account.uploadRingtone#831a83a2 file:InputFile file_name:string mime_type:string = Document;

Parameters

Name Type Description
File InputFile Notification sound
FileName string File name
MimeType string MIME type of file

Returns

Document

Gogram Example

// AccountUploadRingtone - positional arguments
result, err := client.AccountUploadRingtone(&tg.InputFile{ID: int64(7654321098765), Parts: 3, Name: "upload.dat"}, "Hello, World!", "Hello, World!")
if err != nil {
    // handle error
}
// result is *tg.Document

Possible Errors

Code Type Description
400 RINGTONE_MIME_INVALID The MIME type for the ringtone is invalid.