Jump to content

Webhook for Telegram notification


Recommended Posts

Posted (edited)

Hello. Could someone provide a step by step guide on how to create webhooks in Emby? I'm completely new to this and have no idea how to do this. I want to create a webhook for adding new media. It should be like in tautulli where you send the poster, the description and the links to Telegram. Telegram is already ready because I used it for Tautulli. But how does it work with Emby? Do you need something like IFTTT ? Or what else is necessary ?

 

greetings

Edited by atropa
Posted

Hi, have you taken a look at this topic?

 

  • 6 months later...
Posted
On 3/29/2023 at 2:00 PM, atropa said:

Hello. Could someone provide a step by step guide on how to create webhooks in Emby? I'm completely new to this and have no idea how to do this. I want to create a webhook for adding new media. It should be like in tautulli where you send the poster, the description and the links to Telegram. Telegram is already ready because I used it for Tautulli. But how does it work with Emby? Do you need something like IFTTT ? Or what else is necessary ?

 

greetings

I want the same. did you get it finally?

Posted
26 minutes ago, akramaster said:

I want the same. did you get it finally?

Hi, did you try creating a webhook in Emby server?

Posted

hi, not yet. is there any info about how to doit? i have emby server 4.7

Posted
5 hours ago, akramaster said:

hi, not yet. is there any info about how to doit? i have emby server 4.7

In the server menu just go to the webhooks section and click add webhook.

Posted

ok. I try to add " new media added", but what i have to fill in the "url"?? is there any instructions for dummies....??

Posted
14 minutes ago, akramaster said:

ok. I try to add " new media added", but what i have to fill in the "url"?? is there any instructions for dummies....??

That would be the telgram url if you are intending to send it to telegram. I don't know a whole lot about telegram so I can't tell you what that is.

Webhooks is an advanced feature for advanced users. It sounds to be like you're better off using the dedicated Telegram plugin.

Posted

Yes, i am using it but i want to add the poster info of new media added. 

  • Thanks 1
  • 1 month later...
Posted (edited)

I created a python script that does exactly this. You can find it on github if you're interested.

Example of a movie and series below

 

image.thumb.png.31d4706a726aaa6d458fbac11e1b3d71.pngimage.thumb.png.fbd59a04e5b863e9eb9aaf0c84f265e6.png

 

Edited by jdazzle44
  • Thanks 1
  • 2 months later...
Posted

Hi jdazzle44,

Is your script still working . I have emby server Version 4.8.1.0. could you help me please

  • 1 month later...
Posted
On 25.02.2024 at 19:52, akramaster said:

Привет, jdazzle44,

Ваш скрипт все еще работает? У меня есть сервер Emby  версии  4.8.1.0 . не могли бы вы мне помочь, пожалуйста

Тоже самое, вот уже Version 4.8.3.0

  • 2 weeks later...
Robert87354
Posted
On 5/12/2023 at 19:16, jdazzle44 said:

Creé un script en Python que hace exactamente esto. Puedes encontrarlo en  github  si estás interesado.

Ejemplo de película y serie a continuación

 

imagen.pulgar.png.31d4706a726aaa6d458fbac11e1b3d71.pngimagen.pulgar.png.fbd59a04e5b863e9eb9aaf0c84f265e6.png

 

Muchas gracias, funciona genial!
Thank you very much, it works great!
20.png.38cf9bb68bb10271aaf779dfa187c7ad.png

Posted

It would be cool if someone could explain how to install Phyton Script on a Synology NAS.

Posted
19 hours ago, jaycedk said:

Thanks, I've already been there. 😛 But I've now installed it as Docker Compose and it's running.👍

@jdazzle44Is it somehow possible that you can choose whether the plot is sent along or not and that, for example, "New Movie Added" is also displayed in a different language? Probably not, right?

Robert87354
Posted
On 4/19/2024 at 1:53 PM, Dicken said:

Thanks, I've already been there. 😛 But I've now installed it as Docker Compose and it's running.👍

@jdazzle44Is it somehow possible that you can choose whether the plot is sent along or not and that, for example, "New Movie Added" is also displayed in a different language? Probably not, right?

English 
You can edit app.py and put it in the desired language, for example I have set it to Spanish, by the way, in emby 4.8.4.0 it no longer works, it does not send notifications.

Español
Puedes editar app.py y ponerlo en el idioma deseado, yo por ejemplo lo he puesto en Castellano, por cierto, en emby 4.8.4.0 no funciona, no envía las notificaciones.

40.png.6dfecf20e6603594fd7f9f95f3470181.png

Posted
7 hours ago, Robert87354 said:

English 
You can edit app.py and put it in the desired language

Ah cool, but I have little idea and I'm glad I got it running on my Synology NAS via Docker Compose. Can you possibly tell me which line I need to add to the compose file to mount the installation into a folder? That I can edit the file?

Posted
12 hours ago, Dicken said:

Ah cool, but I have little idea and I'm glad I got it running on my Synology NAS via Docker Compose. Can you possibly tell me which line I need to add to the compose file to mount the installation into a folder? That I can edit the file?

I did it. :)

 

   volumes:
      - /volume1/docker/embytelegram/app.py:/app/app.py:rw

 

Posted
On 4/20/2024 at 5:13 PM, Robert87354 said:

by the way, in emby 4.8.4.0 it no longer works, it does not send notifications.

I have the same Problem, but I think I might have found the problem. If I'm right, it has nothing to do with the Emby version. I replied in the issue on Github.

https://github.com/Fahmula/emby-telegram-notifier/issues/16


@Robert87354Just for fun, take a look at what the runtime looks like for your film on TMDB and how long it actually is in your film file.

Robert87354
Posted

Thanks @Dickens

In my case the problem seems to be in this movie "Ninja Assassin 2009". It just so happened that I updated Emby and the first movie to post after the update was this one.

Spanish -> En mi caso el problema parece estar en esta película "Ninja Assassin 2009".  Se dio la casualidad que actualicé Emby y, la primera película en publicar después de la actualización fue esta. 

  • 6 months later...
Posted

Hi, I wanted to know if you could help me configure the app.py file by setting the exact parameters

# Telegram Configuration
TELEGRAM_BOT_TOKEN = os.environ.get("")
TELEGRAM_CHAT_ID = os.environ.get("")
EMBY_BASE_URL = os.environ.get("")
EMBY_API_KEY = os.environ.get("")

in the emby base url section do I put http://localhost:8096/ or the local or remote address of the server?

Because I tried with both and I get this when I start the app.py file

* Serving Flask app 'app'
 * Debug mode: off
2024-10-30 18:36:44,546 - INFO - ←[31m←[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.←[0m
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5000
 * Running on http://192.168.1.14:5000
2024-10-30 18:36:44,548 - INFO - ←[33mPress CTRL+C to quit←[0m

and if I configure the notifications also by putting both urls and inserting, multipart/form-data or application/json I do not receive any test notification. If you can understand something, I've been a couple of days but nothing.

Posted

quando aggiungo nuovi contenuti ricevo questa risposta dal programma.

 

2024-10-31 11:26:55,908 - ERRORE - Impossibile recuperare i dettagli dell'articolo: URL non valido 'None/emby/Items': Nessuno schema fornito. Forse intendi https://None/emby/Items?
Eccezione nel thread Thread-280 (process_payload):
Traceback (ultima chiamata più recente):
  File "C:\Users\Antonio\AppData\Local\Programs\Python\Python313\Lib\threading.py", riga 1041, in _bootstrap_inner
    self .run()
    ~~~~~~~~^^
  File "C:\Users\Antonio\AppData\Local\Programs\Python\Python313\Lib\threading.py", riga 992, in esecuzione
    self._target(* self._args, **self._kwargs)
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ ^^^^^^^
  File "C:\Utenti\Antonio\Desktop\Nuova cartella (2)\emby-telegram-notifier-main\app.py", riga 145, in process_payload
    se non item_details["Elementi"][0].get("Panoramica"):
           ~~~~~~~~~ ~~~^^^^^^^^^
TypeError: l'oggetto 'NoneType' non è sottoscrivibile

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...