Layer 227
MessagesSaveRecentSticker
Add/remove sticker from recent stickers list
method
Users
messages.saveRecentSticker#392718f8 flags:# attached:flags.0?true id:InputDocument unsave:Bool = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Attached | flags .0? true | Whether to add/remove stickers recently attached to photo or video files |
| Id | InputDocument | Sticker |
| Unsave | Bool | Whether to save or unsave the sticker |
Returns
BoolGogram Example
// MessagesSaveRecentSticker - positional arguments result, err := client.MessagesSaveRecentSticker(nil, &tg.InputDocument{ID: int64(5678901234567890), AccessHash: int64(1234567890123456), FileReference: []byte{0x01, 0x02}}, true) if err != nil { // handle error } // result is *tg.Bool
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | STICKER_ID_INVALID | The provided sticker ID is invalid. |