Automation with if, elif and else not working

Hi,

I want to get my automation working with an if else action. But I dont understand whats wrong in my code, can anybody help me?

- service: telegram_bot.send_message
        data:
          target: "{{ trigger.event.data.user_id }}"
          message: >
          Ding Dong, es klingelt! 
          {% if trigger.event.data.user_id == "649682701" %}
          Fabian
          {% elif trigger.event.data.user_id = "627336464" %}
          Nessie
          {% elif trigger.event.data.user_id = "92546537" %}
          Kai
          {% elif trigger.event.data.user_id = "263866362" %}
          Adri
          {% else %}
          Unbekannte Person
          {% endif %}
          ist da.'
service: telegram_bot.send_message
  data_template:
1 Like