Telegram command to vacuum with Roborock

How can I make automation to vacuum zone with Telegram chat bot?
I tried something like this bur I got error about invalid extra key ‘@data

- alias: 'Telegram bot that clean up Living Room'
  trigger:
    platform: event
    event_type: telegram_callback
    event_data:
      command: '/livingroom_vacuum'
  action:
    - service: telegram_bot.answer_callback_query
      data_template:
        callback_query_id: '{{ trigger.event.data.id }}'
        message: '🧹'
    - service: vacuum.send_command
      data:
        entity_id: vacuum.rockrobo
        command: 'segmented_cleanup'
        segment_ids: ["Living Room"]

Nobody with similiar problem?

I can use telegram to make commands and triggers in HA via node-red. I don’t put automations in HA though. Would that work for you?

I have no problem with commands to roborock. Everything works perfect without node-red.
My problem is only create automation (maybe incorrect syntax or something)

@dimmuboy, were you able to solve your problem?
I am trying something very similar and the command I am sending to my telegram_bot simply does not do anything. Not sure if I need to manually set up the telegram_command or something.

No, I don’t have a solution.