Disable ads on the specified channel, for all users.
Available only after reaching at least the boost level » specified in the channel_restrict_sponsored_level_min
» config parameter.
Method schema is available as of layer 177. Switch »
Name | Type | Description |
---|---|---|
channel | InputChannel | The channel. |
restricted | Bool | Whether to disable or re-enable ads. |
Code | Type | Description |
---|---|---|
400 | CHANNEL_INVALID | The provided channel is invalid. |
Telegram Premium users can grant their favorite channels and supergroups additional features like the ability to post stories by giving them boosts.
The MTProto API has multiple configuration parameters that can be fetched with the appropriate methods.