account.UploadRingtone

class pyrogram.raw.functions.account.UploadRingtone

Upload notification sound, use account.saveRingtone to convert it and add it to the list of saved notification sounds.

Details:
  • Layer: 223

  • ID: 831A83A2

Parameters:
  • file (InputFile) – Notification sound

  • file_name (str) – File name

  • mime_type (str) – MIME type of file

Returns:

Document

TL Schema

account.uploadRingtone#831a83a2
file:InputFile
file_name:string
mime_type:string

= Document

Parameter Tree

UploadRingtone
├── fileInputFile
│ ├── InputFile
│ │ ├── idlong
│ │ ├── partsint
│ │ ├── namestring
│ │ └── md5_checksumstring
│ ├── InputFileBig
│ │ ├── idlong
│ │ ├── partsint
│ │ └── namestring
│ └── idInputDocument
│ ├── InputDocumentEmpty
│ └── InputDocument
│ ├── idlong
│ ├── access_hashlong
│ └── file_referencebytes
├── file_namestring
└── mime_typestring

Example

await app.invoke(
    UploadRingtone(
        file=InputFile(
            id=0,
            parts=0,
            name="text",
            md5_checksum="text"
        ),
        file_name="text",
        mime_type="text",
    )
)