Layer 220
ChannelsSetBoostsToUnblockRestrictions
Admins with ban_users admin rights may allow users that apply a certain number of booosts to the group to bypass slow mode and other supergroup restrictions, see here for more info.
method
Users
channels.setBoostsToUnblockRestrictions#ad399cee channel:InputChannel boosts:int = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| Channel | InputChannel | The supergroup. |
| Boosts | int | The number of required boosts (1-8, 0 to disable). |
Returns
UpdatesPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
Gogram Example
// ChannelsSetBoostsToUnblockRestrictions - positional arguments result, err := client.ChannelsSetBoostsToUnblockRestrictions(&tg.InputChannel{ChannelID: int64(123456789), AccessHash: int64(0)}, 0) if err != nil { // handle error } // result is *tg.Updates