• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Telegram Webhook

     
    • 0 Vote(s) - 0 Average

    Telegram Webhook

    Telegram webhook
    AshipaEkO
    Offline

    Junior Member

    Posts: 9
    Threads: 0
    Joined: 2023 Jun
    Reputation: 0
    #5
    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"}
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Telegram Webhook - by CMK - 2023-06-19, 01:16 PM
    RE: Telegram Webhook - by crobibero - 2023-06-19, 01:25 PM
    RE: Telegram Webhook - by CMK - 2023-06-19, 02:41 PM
    RE: Telegram Webhook - by Fallenbagel - 2023-06-19, 10:24 PM
    RE: Telegram Webhook - by AshipaEkO - 2023-06-20, 12:37 PM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode