Skip to main content

channels.setEmojiStickers

Set a custom emoji stickerset for supergroups. Only usable after reaching at least the boost level » specified in the group_emoji_stickers_level_min » config parameter.

func (c *Client) ChannelsSetEmojiStickers(ctx context.Context, request *ChannelsSetEmojiStickersRequest) (bool, error)

Calling this method​

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.ChannelsSetEmojiStickers(ctx, &tg.ChannelsSetEmojiStickersRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters​

NameTypeRequiredDescription
ChannelInputChannelClassyesThe supergroup
StickersetInputStickerSetClassyesThe custom emoji stickerset to associate to the supergroup

Returns​

bool

Possible errors​

CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.

References​