bots.PreviewInfo #

Contains info about Main Mini App previews, see here » for more info.

Layer 223

bots.previewInfo#ca71d64 media:Vector<BotPreviewMedia> lang_codes:Vector<string> = bots.PreviewInfo;

---functions---

bots.getPreviewInfo#423ab3ad bot:InputUser lang_code:string = bots.PreviewInfo;

Constructors #

ConstructorDescription
bots.previewInfoContains info about Main Mini App previews, see here » for more info.

Methods #

MethodDescription
bots.getPreviewInfoBot owners only, fetch main mini app preview information, see here » for more info.

Note: technically non-owners may also invoke this method, but it will always behave exactly as bots.getPreviewMedias, returning only previews for the current language and an empty lang_codes array, regardless of the passed lang_code, so please only use bots.getPreviewMedias if you're not the owner of the bot.

Mini Apps on Telegram #

Bots can offer users interactive HTML5 web apps to completely replace any website.