messages.SaveRecentSticker

class pyrogram.raw.functions.messages.SaveRecentSticker

Add/remove sticker from recent stickers list

Details:
  • Layer: 223

  • ID: 392718F8

Parameters:
  • id (InputDocument) – Sticker

  • unsave (bool) – Whether to save or unsave the sticker

  • attached (bool, optional) – Whether to add/remove stickers recently attached to photo or video files

Returns:

bool

TL Schema

messages.saveRecentSticker#392718f8
flags:#
attached:flags.0?true
id:InputDocument
unsave:Bool

= Bool

Parameter Tree

SaveRecentSticker
├── attachedtrue (optional)
├── idInputDocument
│ ├── InputDocumentEmpty
│ └── InputDocument
│ ├── idlong
│ ├── access_hashlong
│ └── file_referencebytes
└── unsaveBool

Example

await app.invoke(
    SaveRecentSticker(
        attached=None,
        id=InputDocumentEmpty(),
        unsave=True,
    )
)