Interface ToggleHasSponsoredMessagesEnabled

Toggles whether the current user has sponsored messages enabled. The setting has no effect for users without Telegram Premium for which sponsored messages are always enabled. Request type for Tdjson#toggleHasSponsoredMessagesEnabled.

interface ToggleHasSponsoredMessagesEnabled {
    @type: "toggleHasSponsoredMessagesEnabled";
    has_sponsored_messages_enabled?: boolean;
}

Properties

@type: "toggleHasSponsoredMessagesEnabled"
has_sponsored_messages_enabled?: boolean

Pass true to enable sponsored messages for the current user; false to disable them.