Layer 220
MessagesFaveSticker
Mark or unmark a sticker as favorite
method
Users
messages.faveSticker#b9ffc55b id:InputDocument unfave:Bool = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Id | InputDocument | Sticker in question |
| Unfave | Bool | Whether to add or remove a sticker from favorites |
Returns
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | STICKER_ID_INVALID | The provided sticker ID is invalid. |
Gogram Example
// MessagesFaveSticker - positional arguments result, err := client.MessagesFaveSticker(&tg.InputDocument{ID: int64(0), AccessHash: int64(0), FileReference: []byte{}}, true) if err != nil { // handle error } // result is *tg.Bool