account.SaveRingtone

class pyrogram.raw.functions.account.SaveRingtone

Save or remove saved notification sound.

Details:
  • Layer: 227

  • ID: 3DEA5B03

Parameters:
  • id (InputDocument) – Notification sound uploaded using account.uploadRingtone

  • unsave (bool) – Whether to add or delete the notification sound

Returns:

account.SavedRingtone

TL Schema

account.saveRingtone#3dea5b03
id:InputDocument
unsave:Bool

= account.SavedRingtone

Parameter Tree

SaveRingtone
├── id → InputDocument
│ ├── InputDocumentEmpty
│ └── InputDocument
│ ├── id → long
│ ├── access_hash → long
│ └── file_reference → bytes
└── unsave → Bool

Example

await app.invoke(
    SaveRingtone(
        id=InputDocumentEmpty(),
        unsave=True,
    )
)