Telegram bot repaly markup problem

Hi,

i 've this 2 automation and want to remove inline keyboard if press button /dismiss

automation 1

- id: '11111111111111'
  alias: Luci Telegram
  description: ''
  trigger:
  - entity_id: group.family
    from: home
    platform: state
    to: not_home
  condition: []
  action:
  - data:
      data:
        inline_keyboard:
        - Spegni:/spegni
        - Accendi:/accendi
        - Annulla:/dismiss
      message: Luce accesa, vuoi spegnerla?
      title: AC was turned on
    service: notify.davide

Second automation (not work) if presss Annulla:/dismiss

- id: '1579993747429'
  alias: rimuovi tastiera telegram
  description: ''
  trigger:
  - event_data:
      data: /dismiss
    event_type: telegram_callback
    platform: event
  condition: []
  action:
  - data:
      data_template:
        chat_id: mychat_id
        inline_keyboard: []
        message: Fatto
        message_id: last
    service: telegram_bot.edit_replymarkup

This callback command not work, any suggestion? I want only remove inline keyboard previously show with the first automation

Hi,

I’ve the same issue, neither replace it with another text or with an empty string works

I’m 4 years late, but this solution works for me.

Display 2 options if there are arguments specified in my /command, otherwise do not display any options.

  inline_keyboard: >-
    {{ 'Option 1:/option_1, Option 2:/option_2' if trigger.event.data.args else '[]'}}