Telegram image compression

So i’m using the flowing Telegram Notify/Automation:

Notify

- name: telegram
  platform: telegram
  chat_id: !secret telegram_group_huis

Automation

- alias: Deurbel  
  initial_state: True
  trigger:
    platform: event
    event_type: xiaomi_aqara.click
    event_data:
      entity_id: binary_sensor.switch_doorbel
      click_type: single
  action:
    - service: telegram_bot.send_photo
      data_template:
        caption: 'Deurbel !!'
        url: !secret cam_front_snapshot
        target: !secret telegram_group_huis

So when somebody presses the doorbell, a snapshot is taken by my Unifi g3 cam and send to the house telegram group.

The only problem is that the image is compressed, the default image from the cam is 1920x1080,
but telegram sends it in 1280x720.
and the images look horrible. :nauseated_face:
When sending a image with the android client you get the option to send it with or without compression,

How can i disable compression for my HA Telegram?

1 Like

Has nobody found a solution to this problem. I also want to sent photos without compression

Wow, 3 years have past already…
But I didn’t find a solution to send images uncompressed.