Layer 220
method Users Bots
channels.setStickers#ea8ca4f9 channel:InputChannel stickerset:InputStickerSet = Bool;

Parameters

Name Type Description
Channel InputChannel Supergroup
Stickerset InputStickerSet 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.

Gogram Example

// ChannelsSetStickers - positional arguments
result, err := client.ChannelsSetStickers(&tg.InputChannel{ChannelID: int64(123456789), AccessHash: int64(0)}, &tg.InputStickerSet{})
if err != nil {
    // handle error
}
// result is *tg.Bool