Unpackerr / unpackerr

Extracts downloads for Radarr, Sonarr, Lidarr, Readarr, and/or a Watch folder - Deletes extracted files after import
https://unpackerr.zip
MIT License
1.03k stars 38 forks source link

Telegram webhook ? #302

Closed niawag closed 1 year ago

niawag commented 1 year ago

Hi and thanks for this great app, I'm pretty new to it but i love it already!

I'd like to receive a notification via telegram (as with my other Starr app) but I'm not sure what the webook url should be. I've tried with: UN_WEBHOOK_0_URL=https://api.telegram.org/bot(my_very_long_token) UN_WEBHOOK_0_NICKNAME=(my chat id) And I also tried with UN_WEBHOOK_0_URL=https://t.me/my_bot_name --> [ERROR] Webhook (/test/tt = extracted): Telegram: invalid HTTP status reply (404 Not Found): {"ok":false,"error_code":404,"description":"Not Found"} I must be missing something obvious but I don't think it's explained in the readme/wiki.

PS : the whole webhook config:

      - UN_WEBHOOK_0_URL=https://api.telegram.org/bot(my token)
      - UN_WEBHOOK_0_NAME=Telegram
      - UN_WEBHOOK_0_NICKNAME=(my chat id)
      - UN_WEBHOOK_0_CHANNEL=
      - UN_WEBHOOK_0_TIMEOUT=10s
      - UN_WEBHOOK_0_SILENT=false
      - UN_WEBHOOK_0_IGNORE_SSL=false
      - UN_WEBHOOK_0_EXCLUDE_0=
      - UN_WEBHOOK_0_EVENTS_0=0
      - UN_WEBHOOK_0_TEMPLATE=telegram
      - UN_WEBHOOK_0_CONTENT_TYPE=application/json

I'm using it with docker on ubuntu 22.04

niawag commented 1 year ago

Ok, I feel stupid now... I was almost there, the right url is: UN_WEBHOOK_0_URL=https://api.telegram.org/bot(my_very_long_token)/sendMessage At least I hope it may help others looking for the same thing.