messages.installStickerSet
Install a stickerset
func (c *Client) MessagesInstallStickerSet(ctx context.Context, request *MessagesInstallStickerSetRequest) (MessagesStickerSetInstallResultClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesInstallStickerSet(ctx, &tg.MessagesInstallStickerSetRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // MessagesStickerSetInstallResultClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Stickerset | InputStickerSetClass | yes | Stickerset to install |
Archived | bool | yes | Whether to archive stickerset |
Returns
MessagesStickerSetInstallResultClass
Possible errors
| Code | Type | Description |
|---|---|---|
| 406 | STICKERSET_INVALID | The provided sticker set is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.installStickerSet#c78fe460