SwitchInlineQueryChosenChat

Raw MD
This object represents an inline button that switches the current user to inline mode in a chosen chat, with an optional default inline query

This object represents an inline button that switches the current user to inline mode in a chosen chat, with an optional default inline query.

Fields

FieldTypeRequiredDescription
queryStringOptionalThe default inline query to be inserted in the input field. If left empty, only the bot's username will be inserted.
allow_user_chatsBooleanOptionalTrue, if private chats with users can be chosen
allow_bot_chatsBooleanOptionalTrue, if private chats with bots can be chosen
allow_group_chatsBooleanOptionalTrue, if group and supergroup chats can be chosen
allow_channel_chatsBooleanOptionalTrue, if channel chats can be chosen
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.