Interface ToggleSupergroupCanHaveSponsoredMessages

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. Request type for Tdjson#toggleSupergroupCanHaveSponsoredMessages.

interface ToggleSupergroupCanHaveSponsoredMessages {
    @type: "toggleSupergroupCanHaveSponsoredMessages";
    can_have_sponsored_messages?: boolean;
    supergroup_id: number;
}

Properties

@type: "toggleSupergroupCanHaveSponsoredMessages"
can_have_sponsored_messages?: boolean

The new value of can_have_sponsored_messages.

supergroup_id: number

The identifier of the channel.