Automation with if - else and telegram

I am having problems with if else states in an automation.
My goal is,that I get a notification, when someone writes a telegram bot to shutdown the server and I want to see the name. I thought I could get the name by the, but I always get a message from the bot that the server was shutdown by unknown, not by the person.

  - alias: Shutdown
    initial_state: on
      platform: event
      event_type: telegram_command
        command: '/shutdown'
      - service: shell_command.shutdownserver
      - service: notify.telegram
          message: >
            Server was shutdown by {% if (is_state("{{}}", "88888888")) -%} Person A {% elif (is_state("{{}}", "77777777")) -%} Person B {% else %} Unknown {{}} {% endif %}. Waiting 2,5 Minutes to turn off the plug.