stickers.addStickerToSet
Add a sticker to a stickerset. The sticker set must have been created by the current user/bot.
func (c *Client) StickersAddStickerToSet(ctx context.Context, request *StickersAddStickerToSetRequest) (MessagesStickerSetClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.StickersAddStickerToSet(ctx, &tg.StickersAddStickerToSetRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // MessagesStickerSetClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Stickerset | InputStickerSetClass | yes | The stickerset |
Sticker | InputStickerSetItem | yes | The sticker |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | STICKERPACK_STICKERS_TOO_MUCH | There are too many stickers in this stickerpack, you can't add any more. |
| 406 | STICKERSET_INVALID | The provided sticker set is invalid. |
| 400 | STICKERS_TOO_MUCH | There are too many stickers in this stickerpack, you can't add any more. |
| 400 | STICKER_PNG_NOPNG | One of the specified stickers is not a valid PNG file. |
| 400 | STICKER_TGS_NOTGS | Invalid TGS sticker provided. |
References
- Official documentation
- Generated Go reference
- TL definition:
stickers.addStickerToSet#8653febe