Skip to main content

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

NameTypeRequiredDescription
ChannelInputChannelClassyesSupergroup
StickersetInputStickerSetClassyesThe stickerset to associate

Returns

bool

Possible errors

CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.
400CHAT_ID_INVALIDThe provided chat id is invalid.
400PARTICIPANTS_TOO_FEWNot enough participants.
406STICKERSET_OWNER_ANONYMOUSProvided stickerset can't be installed as group stickerset to prevent admin deanonymization.

References