home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.05k stars 31.07k forks source link

telegram_bot not respecting disable_notification #125618

Open briped opened 2 months ago

briped commented 2 months ago

The problem

Even though disable_notification is set to false I am still getting notifications on both iOS and Desktop version of Telegram. The telegram_bot part of configuration.yaml

telegram_bot:
  - platform: polling
    api_key: !secret telegram_api_key
    #target:
    allowed_chat_ids:
      - !secret telegram_chat_id_chan_redacted
      - !secret telegram_chat_id_user_briped

I've added a YAML script snippet in the dedicated section below that also shows the issue

What version of Home Assistant Core has the issue?

core-2024.9.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Telegram

Link to integration documentation on our website

https://www.home-assistant.io/integrations/telegram/#extra-data-attributes-support

Diagnostics information

No response

Example YAML snippet

alias: Notification Testing
sequence:
  - metadata: {}
    data:
      message: |
        {% set ts = as_timestamp(state_attr(this.entity_id, 'last_triggered')) 
                    if (this is defined) else 
                    as_timestamp(now()) %}
        {{ts | timestamp_custom('%a, %d. %b. %Y @ %H:%M %Z', true)}}
      data:
        parse_mode: html
        disable_notification: true
        disable_web_page_preview: true
    enabled: true
    action: notify.telegram_user_briped
mode: single

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 2 months ago

telegram documentation telegram source

briped commented 2 months ago

Update. The issue seems to be just iOS. The notification I'm getting in Windows is just the Windows Phone Link notification mirror. image

briped commented 2 months ago

image