Layer 224
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
BoolGogram Example
// MessagesFaveSticker - positional arguments result, err := client.MessagesFaveSticker(&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. |