Layer 224
ChannelsSetStickers
Associate a stickerset to the supergroup
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
BoolGogram Example
// ChannelsSetStickers - positional arguments result, err := client.ChannelsSetStickers(&tg.InputChannel{ChannelID: int64(1234567890), AccessHash: int64(5678901234567890)}, &tg.InputStickerSet{}) if err != nil { // handle error } // result is *tg.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. |