messages.saveRecentSticker
Add/remove sticker from recent stickers list
func (c *Client) MessagesSaveRecentSticker(ctx context.Context, request *MessagesSaveRecentStickerRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesSaveRecentSticker(ctx, &tg.MessagesSaveRecentStickerRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Attached | bool | — | Whether to add/remove stickers recently attached to photo or video files |
ID | InputDocumentClass | yes | 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. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.saveRecentSticker#392718f8