2023-06-20, 12:37 PM
(2023-06-19, 10:24 PM)Fallenbagel Wrote:Quote:\"photo\": \"http://MYJELLYFIN//Items/4f9622ff-a80e-b07a-13c0-cb226d9c950e/Images/Primary\",The photo link I believe has to have ssl and be reachable by telegram, I.e https, external domain.
For example,Code:https://jellyfin.domain.com/Items/4f9622ff-a80e-b07a-13c0-cb226d9c950e/Images/Primary
Also the,{{ServerUrl}}
uses the server url stated on the first field of that webhook config page and make sure there's no trailing slash on that.
Or you could just hardcode your url to this block,
Code:"photo": "https://jellyfin.domain.com/Items/{{ItemId}}/Images/Primary"
Allow me to butt in, i have a similar error message
Code:
[2023-06-20 12:20:58.115 +00:00] [INF] Executing "Webhook Item Added Notifier"
[2023-06-20 12:20:58.389 +00:00] [WRN] Notification failed with "POST" request to https://api.telegram.org/bot5459248626:AAFANuVCT4t_XRbc3AwA1GGdWCPRgaF4LwE/sendPhoto: "{
\"chat_id\": XXXXXXXXXX,
\"photo\": \"https://my.website/Items/7cd7cb21-2303-8c27-5301-2135723c36f9/Images/Primary\",
\"caption\": \"Coyote (2023) has been added to jf-two\"
}"
[2023-06-20 12:20:58.391 +00:00] [WRN] Notification failed with response status code BadRequest: "{\"ok\":false,\"error_code\":400,\"description\":\"Bad Request: there is no photo in the request\"}"
[2023-06-20 12:20:58.397 +00:00] [INF] "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds
[2023-06-20 12:20:58.400 +00:00] [INF] ExecuteQueuedTasks
In my case the URL works just fine and opens to the exact picture. It is also https.
is the issue with https://api.telegram.org/bot{mytoken}/sendPhoto?
i'm 99% sure the token is correct. the bot works.
when i try the url in a browser i get:
Code:
{"ok":false,"error_code":400,"description":"Bad Request: there is no photo in the request"}