bots.GetPreviewInfo#

class pyrogram.raw.functions.bots.GetPreviewInfo#

Bot 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.

Details:
  • Layer: 211

  • ID: 423AB3AD

Parameters:
bot (InputUser):

The bot that owns the Main Mini App.

lang_code (str):

Fetch previews for the specified ISO 639-1 language code.

Returns:

bots.PreviewInfo