get_bot_preview_info()

async Client.get_bot_preview_info()

Fetch Main Mini App preview information for a bot.

Usable by Users Bots
Parameters:
  • bot (int | str) – Unique identifier (int) or username (str) of the target bot.

  • lang_code (str) – Fetch previews for the specified ISO 639-1 language code.

Returns:

PreviewInfo – The bot preview information.

Example

info = await app.get_bot_preview_info("my_bot", "en")