toggle_supergroup_can_have_sponsored_messages


Description:

public async Ok toggle_supergroup_can_have_sponsored_messages (int64 supergroup_id, bool can_have_sponsored_messages) throws TDLibError

Toggles whether sponsored messages are shown in the channel chat; requires owner privileges in the channel. The chat must have at least chatBoostFeatures.min_sponsored_message_disable_boost_level boost level to disable sponsored messages

Parameters:

supergroup_id

The identifier of the channel

can_have_sponsored_messages

The new value of can_have_sponsored_messages