Layer 220
method Users
messages.saveRecentSticker#392718f8 flags:# attached:flags.0?true id:InputDocument unsave:Bool = Bool;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
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

Bool

Possible Errors

Code Type Description
400 STICKER_ID_INVALID The provided sticker ID is invalid.

Gogram Example

// MessagesSaveRecentSticker - using Params struct
result, err := client.MessagesSaveRecentSticker(&tg.MessagesSaveRecentStickerParams{
    Id: &tg.InputDocument{ID: int64(0), AccessHash: int64(0), FileReference: []byte{}},
    Unsave: true,

    // Optional fields:
    // Attached: true,
})
if err != nil {
    // handle error
}
// result is *tg.Bool