Layer 224
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

Bool

Gogram 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.