stickers.renameStickerSet
Renames a stickerset.
func (c *Client) StickersRenameStickerSet(ctx context.Context, request *StickersRenameStickerSetRequest) (MessagesStickerSetClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.StickersRenameStickerSet(ctx, &tg.StickersRenameStickerSetRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // MessagesStickerSetClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Stickerset | InputStickerSetClass | yes | Stickerset to rename |
Title | string | yes | New stickerset title |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | STICKERSET_INVALID | The provided sticker set is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
stickers.renameStickerSet#124b1c00