Telegram notify service migration (2025.11) not very clear

I think I have finally worked it out, but would be happy if someone could confirm that what I have done is correct:

  1. Remove the ‘notify:’ section from automations.yaml.

  2. In automations.yaml I changed the ‘action:’ part to:

- id: gen24_to_startup
  alias: "GEN24 Inverter changed to Startup"
  trigger:
    - platform: state
      entity_id: sensor.alboran_gen24_inverter_state
      to: "Startup"
  action:
    - service: notify.send_message
      target:
        entity_id: notify.telegram_bot_1234567890_123456789
      data:
        message: "GEN24 Inverter state changed to Startup."

Where ‘entity_id: notify.telegram_bot_1234567890_123456789’ is the entity from ‘Settings → Devices & services → Entities’. Then search for Telegram and choose the person, and then click the cog wheel to show the full entity ID. I presume the first set of numbers are the chat ID and know that the second is the user ID.

And to send to multiple people, though I haven’t tested it:

  action:
    - service: notify.send_message
      target:
        entity_id: 
          - notify.telegram_bot_1234567890_123456789
          - notify.telegram_bot_1234567890_987654321
      data:
        message: "GEN24 Inverter state changed to Startup."

Does anyone who how to define groups so we don’t have to enter every ‘entity_id’ each time?