account.SaveRingtone

class pyrogram.raw.functions.account.SaveRingtone

Save or remove saved notification sound.

Details:
  • Layer: 223

  • 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
├── idInputDocument
│ ├── InputDocumentEmpty
│ └── InputDocument
│ ├── idlong
│ ├── access_hashlong
│ └── file_referencebytes
└── unsaveBool

Example

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