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: 227

  • 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
├── file → InputFile
│ ├── InputFile
│ │ ├── id → long
│ │ ├── parts → int
│ │ ├── name → string
│ │ └── md5_checksum → string
│ ├── InputFileBig
│ │ ├── id → long
│ │ ├── parts → int
│ │ └── name → string
│ └── id → InputDocument
│ ├── InputDocumentEmpty
│ └── InputDocument
│ ├── id → long
│ ├── access_hash → long
│ └── file_reference → bytes
├── file_name → string
└── mime_type → string

Example

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