channels.setStickers
Associate a stickerset to the supergroup
func (c *Client) ChannelsSetStickers(ctx context.Context, request *ChannelsSetStickersRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.ChannelsSetStickers(ctx, &tg.ChannelsSetStickersRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Channel | InputChannelClass | yes | Supergroup |
Stickerset | InputStickerSetClass | yes | The stickerset to associate |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | CHAT_ID_INVALID | The provided chat id is invalid. |
| 400 | PARTICIPANTS_TOO_FEW | Not enough participants. |
| 406 | STICKERSET_OWNER_ANONYMOUS | Provided stickerset can't be installed as group stickerset to prevent admin deanonymization. |
References
- Official documentation
- Generated Go reference
- TL definition:
channels.setStickers#ea8ca4f9