How to trigger same Telegram Bot automation by multiple commands?

Instead of…

- alias: 'Telebot Start'
  trigger:
    - platform: event
      event_type: telegram_command
      event_data:
        command: '/start'
    - platform: event
      event_type: telegram_command
      event_data:
        command: '/begin'
    - platform: event
      event_type: telegram_command
      event_data:
        command: '/hello'

Can I simplify it further? I have tried…

- alias: 'Telebot Start'
  trigger:
    - platform: event
      event_type: telegram_command
      event_data:
        command: '/start', '/begin', '/hello'
- alias: 'Telebot Start'
  trigger:
    - platform: event
      event_type: telegram_command
      event_data:
        command: '/start, /begin, /hello'
- alias: 'Telebot Start'
  trigger:
    - platform: event
      event_type: telegram_command
      event_data:
        command:
          - '/start'
          - '/begin'
          - '/hello'
- alias: 'Telebot Start'
  trigger:
    - platform: event
      event_type: telegram_command
      event_data:
        command: '/start'
        command: '/begin'
        command: '/hello'

All failed.

The last section should help you simplify it a little more.

His first example was basicly whats in the docs you linked.

I dont think there are simpler way to do it :confused:

You’re right. I didn’t notice. But I think that’s as simple as it gets.

Anyone ever solved this?

YAML automations unfortunately aren’t going to support that. I’d suggest taking a look at AppDaemon or Node-Red if you want to get more advanced with a Telegram bot. There’s even examples for both here on the forum: