InlineKeyboardMarkup

Raw MD
This object represents an inline keyboard that appears right next to the message it belongs to

This object represents an inline keyboard that appears right next to the message it belongs to.

Fields

FieldTypeRequiredDescription
inline_keyboardArray of Array of InlineKeyboardButtonAlwaysArray of button rows, each represented by an Array of InlineKeyboardButton objects
force_replyBooleanOptionalPass True if the reply interface must be shown to the user, as if they had manually selected the bot's message and tapped 'Reply'. The value of the field can't be changed when the inline keyboard is edited.

Example

JSON — InlineKeyboardMarkup payload
{
  "inline_keyboard": [
    [
      {"text": "👍 Like", "callback_data": "like_123"},
      {"text": "🔗 Open Site", "url": "https://botlify.cloud"}
    ],
    [
      {"text": "💳 Pay with Stars", "pay": true}
    ]
  ]
}
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.