flequi19
(Martin M.)
December 21, 2025, 8:39pm
1
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.
tom_l
December 21, 2025, 11:59pm
2
The config you have posted has no action at all shown. Please share the complete action config. You might be using the wrong one.
flequi19
(Martin M.)
December 22, 2025, 4:29pm
3
`
β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
`
tom_l
December 22, 2025, 8:11pm
4
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.
flequi19
(Martin M.)
December 22, 2025, 9:55pm
5
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!
tom_l
December 22, 2025, 10:08pm
6
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