messages.FaveSticker

class pyrogram.raw.functions.messages.FaveSticker

Mark or unmark a sticker as favorite

Details:
  • Layer: 227

  • ID: B9FFC55B

Parameters:
  • id (InputDocument) – Sticker in question

  • unfave (bool) – Whether to add or remove a sticker from favorites

Returns:

bool

TL Schema

messages.faveSticker#b9ffc55b
id:InputDocument
unfave:Bool

= Bool

Parameter Tree

FaveSticker
├── id → InputDocument
│ ├── InputDocumentEmpty
│ └── InputDocument
│ ├── id → long
│ ├── access_hash → long
│ └── file_reference → bytes
└── unfave → Bool

Example

await app.invoke(
    FaveSticker(
        id=InputDocumentEmpty(),
        unfave=True,
    )
)