This is a simple webhook listener for Jellyfin webhook plugin that will send messages to Telegram uisng the bots API.
Its built on the ASP.NET 7.0 Core platform.
- Download the latest release from the releases tab.
- Setup your bot using BotFather and get the API Key or Token.
- Place your API key and your (or your administrator's) ChatID in
appsettings.json
- Run the application.
- If you want to modify the port or listening addresses you can add --urls "<urls>" (comma separated and protocol included)
- Using your browser navigate to
http://<your-ip>:<port>/notifications/healthcheck
to see if its running.
- Once setup, go to your bot's chat and type
/start
it will notify you that your chat/group is in the update list. - Set your Jellyfin Webhook plugin to send the notifications to the following endpoints
- For notifying every user on the list
http://<your-ip>:<port>/notifications/general
- For notifying only the administrator
http://<your-ip>:<port>/notifications/admin
- For notifying every user on the list
- Messages should be formated as a JSON with the following structure:
-
{ "photo": "<URL to picture>", "message": "<Text to display>" }
For pictures it will generally be
"photo":"{{ServerUrl}}/Items/{{ItemId}}/Images/Primary"
.If there is no image or fails to fecth, the message wil be sent as text only message. The text can be given style using HTML syntax.
-
- Enjoy!
- If you want to disable notifications, just type
/leave
.
- If you want to disable notifications, just type
- Clone the repository
- Install .NET Core 7 or newer.
- Run
dotnet publish -c Release
on the root folder. - Follow Usage guides!
This project is licensed under the GNU GPL License - see the LICENSE file for details.