Telegram Bot inline keyboard not showing after migration to new format

Hi everyone, I’m having an issue. I migrated all my Telegram automations to the new format, but this code stopped working :

config_entry_id: My_id
target:
  - "-My_Target"
message: "What do you want to do?"
data:
  inline_keyboard:
    - - πŸ’‘ Turn On:/Menderluces
      - πŸ’‘ Turn Off:/Mapagarluces
    - - πŸ“· Cameras:/Mcamaras
      - 🌑️ Temperatures:/Mtemperaturas
    - - 🎧 Spotify:/Mspotify
      - πŸ“Ί Playback:/Mreproduccion
    - - πŸšͺ Doors:/Mpuertasyventanas
      - 🏠 Appliances:/Melectrodomesticos
    - - πŸ’‘ Lights Status:/Eluces
      - πŸ“± Phone:/Ecelular
    - - πŸ“ˆ Quotes:/cotizaciones
      - ⚑ Consumption:/consumos

The message itself arrives correctly, but the inline keyboard options never show up. I’ve tried many variations and nothing works.

Has anyone faced this issue with the new format? Any guidance would be appreciated.

The config you have posted has no action at all shown. Please share the complete action config. You might be using the wrong one.

`
β€œThat would be all. When I type /menu, I only get the message β€˜What do you want to do?’ but none of the options appear.

alias: Comandos Telegram - Menu
description: ""
triggers:
  - event_type: telegram_command
    event_data:
      command: /menu
    id: Menu

conditions: []

actions:
  - choose:
      - conditions:
          - condition: trigger
            id: Menu
        sequence:
          - action: telegram_bot.send_message
            data:
              config_entry_id: 01JZ7AYYGXRK3W8N3D9985DH95
              target:
                - "-1002250926267"
              message: "What do you want to do"
              data:
                inline_keyboard:
                  - - πŸ’‘ Prender:/Menderluces
                    - πŸ’‘ Apagar:/Mapagarluces
                  - - πŸ“· Camaras:/Mcamaras
                    - 🌑️ Temperaturas:/Mtemperaturas
                  - - 🎧 Spotify:/Mspotify
                    - πŸ“Ί Reproduccion:/Mreproduccion
                  - - πŸšͺ Puertas:/Mpuertasyventanas
                    - 🏠 Electrodomesticos:/Melectrodomesticos
                  - - πŸ’‘ Estado Luces:/Eluces
                    - πŸ“± Celular:/Ecelular
                  - - πŸ“ˆ Cotizaciones:/cotizaciones
                    - ⚑ Consumos:/consumos

`

That was the bit I was looking for. Try this:

          - action: telegram_bot.send_message
            data:
              config_entry_id: 01JZ7AYYGXRK3W8N3D9985DH95
              target:
                - "-1002250926267"
              message: "What do you want to do"
              inline_keyboard:
                - - πŸ’‘ Prender:/Menderluces
                  - πŸ’‘ Apagar:/Mapagarluces
                - - πŸ“· Camaras:/Mcamaras
                  - 🌑️ Temperaturas:/Mtemperaturas
                - - 🎧 Spotify:/Mspotify
                  - πŸ“Ί Reproduccion:/Mreproduccion
                - - πŸšͺ Puertas:/Mpuertasyventanas
                  - 🏠 Electrodomesticos:/Melectrodomesticos
                - - πŸ’‘ Estado Luces:/Eluces
                  - πŸ“± Celular:/Ecelular
                - - πŸ“ˆ Cotizaciones:/cotizaciones
                  - ⚑ Consumos:/consumos

There is no second data: key in the new action.

The same thing happened to me β€” nothing showed up when I added the menus, and then I realized the problem was how I was writing the menus (inline keyboard). I’ve already solved it, thanks. With the dashes (-) it didn’t work, but with the old version it did. Thanks very much!

You still have the second data: key in your config. Look at the examples. All the options are under the one data: key now.

So this:

          - action: telegram_bot.send_message
            data:
              config_entry_id: 01JZ7AYYGXRK3W8N3D9985DH95
              target:
                - "-1002250926267"
              message: "What do you want to do"
              inline_keyboard:
                - etc...

Not this:

          - action: telegram_bot.send_message
            data:
              config_entry_id: 01JZ7AYYGXRK3W8N3D9985DH95
              target:
                - "-1002250926267"
              message: "What do you want to do"
              data:  ### <- REMOVE THIS ###
                inline_keyboard: ### <- Indent this under the first data: key above ###
                  - etc...
1 Like