messages.SaveRecentSticker

class pyrogram.raw.functions.messages.SaveRecentSticker

Add/remove sticker from recent stickers list

Details:
  • Layer: 227

  • 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
├── attached → true (optional)
├── id → InputDocument
│ ├── InputDocumentEmpty
│ └── InputDocument
│ ├── id → long
│ ├── access_hash → long
│ └── file_reference → bytes
└── unsave → Bool

Example

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