Skip to content

How to add an inline (floating) keyboard to a button or command

  1. First, access your bot. You can do so via its username.
  2. Once in your bot, press 🛠 Edit to enter editing mode.
  3. Select the button or send the command containing the message to which you want to add an inline keyboard:

    • Buttons: To select a button, tap it. The button will appear surrounded by < >.
    • Commands: To select a command, send it directly to the bot. Commands start with / or !.
  4. Press 💬 Messages to view the messages associated with the button or command.

    View messages for a button or command in Telegram bot (VisualMaker)

  5. Locate the message to which you want to add an inline keyboard or create a new message if it hasn’t been created yet. Then, press 🔘.

    Inline keyboard to message for a button or command in Telegram bot (VisualMaker)

  6. Press 🔘 Create new keyboard 🔘 and follow the instructions to create the keyboard.

  7. In this example, we’ve created 3 inline buttons using the following text:

    VM website - url: visualmaker.net
    Say hi - message: Hi && Say bye - alert: Bye
    
    • One that opens a URL, the VisualMaker website.
    • Another that displays the message "Hi".
    • And a third next to the second (separated by &&) that displays the alert "Goodbye".
  8. This is the final result.

    Inline keyboard to a button or command in Telegram bot (VisualMaker)