Documentation
Integrate ads into your Telegram Mini App
In-App Interstitial (Automatic Ads)
Let ads show automatically while users browse your Mini App.
Run this once when your Mini App opens. Ads then appear automatically using the limits you set.
window.showAdFlow({
type: 'inApp',
inAppSettings: {
frequency: 2, // up to 2 ads…
capping: 0.1, // …per 0.1 hour (6 minutes)
interval: 30, // at least 30 seconds apart
timeout: 5, // first ad 5 seconds after opening
everyPage: false // don't restart the timer on every page
}
});
Too many ads annoy users and lower your long-term earnings. Start with the values above and adjust slowly.
Still stuck? Our team is happy to help.
Contact Support