# InlineQueryResultsButton

> This object represents a button to be shown above inline query results

**Category:** Telegram Bot API — Types (A-Z)  
**URL:** https://docs.botlify.cloud/inlinequeryresultsbutton  
**Platform:** Botlify Cloud (https://botlify.cloud)  

---

This object represents a button to be shown above inline query results. You **must** use exactly one of the optional fields.

*Example:* An inline bot that sends YouTube videos can ask the user to connect the bot to their YouTube account to adapt search results accordingly. To do this, it displays a 'Connect your YouTube account' button above the results, or even before showing any. The user presses the button, switches to a private chat with the bot and, in doing so, passes a start parameter that instructs the bot to return an OAuth link. Once done, the bot can offer a *switch_inline* button so that the user can easily return to the chat where they wanted to use the bot's inline capabilities.

## Fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| text | String | Always | Label text on the button |
| web_app | WebAppInfo | Optional | Description of the Web App that will be launched when the user presses the button. The Web App will be able to switch back to the inline mode using the method switchInlineQuery inside the Web App. |
| start_parameter | String | Optional | Deep-linking parameter for the /start message sent to the bot when a user presses the button. 1-64 characters, only A-Z, a-z, 0-9, _ and - are allowed. |

> [!TIP]
> **Botlify Cloud Runtime**
> Credentials are auto-injected in .env — always load them with getenv(): BOT_TOKEN, ADMIN_CHAT_ID, BOT_USERNAME. Main database: database.db (SQLite, WAL mode). Runtime errors: error.log. Quick test: send to $ADMIN_CHAT_ID. Full details: Runtime Reference.
