account.toggleSponsoredMessages

Disable or re-enable Telegram ads for the current Premium account.

Useful for business owners that may want to launch and view their own Telegram ads via the Telegram ad platform ».

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
account.toggleSponsoredMessages#b9d9a38d enabled:Bool = Bool;

Parameters

Name Type Description
enabled Bool Enable or disable ads.

Result

Bool

Related pages

Telegram Premium

Telegram Premium is an optional subscription service that unlocks additional exclusive client-side and API-side features, while helping support the development of the app.