A Plugin for logging into Jellyfin using the Telegram Login Widget as "SSO" provider.
Allows for simple Group creation/editing/deleting in order to manage Admins/Users/Library-access.
Inspired by jellyfin-plugin-ldapauth and jellyfin-plugin-sso.
Created from jellyfin-plugin-template.
- User clicks the
Sign in with TelegramDisclaimer Link on the Jellyfin Login Page - User lands on the page
/sso/Telegram - Plugin shows a Page with an embedded Telegram Login Widget.
- When the button is clicked, Plugin validates User credentials using bot token.
- On Success -> Authenticate & redirect User to Jellyfin Dashboard
- On Failure -> Show Error Message (e.g. Invalid Data, not Whitelisted)
-
SSO Login page (at
/sso/Telegram)- styled similar to the regular login page
- responsive / mobile capable
- shows a "Back to Normal Login" button
- shows the Telegram Login Widget
- checks the Telegram Auth data against the backend
- if data is invalid -> show an error message
- if data is valid -> takes the Jellyfin Auth Response and authenticates the user
- loading animation
- supports custom CSS
-
Config page (reachable via Jellyfin Plugin Page)
- requires setting the Telegram Bot Token
- allows setting a List of Administrator Telegram Usernames (get full Access)
- allows forcing an external Protocol Scheme (for reverse proxies like Traefik)
- allows Creating/Editing/Deleting a "virtual" management Group
- Grants access to all or specific Libraries for non-Administrators.
- Note: A user needs to be Admin OR part of at least ONE Group to Log in.
- Important: If "Sync Usernames" is disabled, you must manually add every Telegram Username to the list for them to be able to log in.
- A Telegram Username is mandatory for all users who wish to use this Login method.
- A valid, public SSL certificate is needed for the Login Widget to work (e.g. LetsEncrypt).
- A Telegram Bot (token) is required to cryptographically validate the User Login credentials.
You can choose between three options below.
- Add the repository: https://raw.githubusercontent.com/hexxone/TeleJelly/dist/manifest.json
- install
TeleJellyfrom the Plugin catalogue - restart Jellyfin server
If your sever doesn't have internet access, or you need older versions.
- Download the Release (
TeleJelly_vX.X.X.zip) for your correct Jellyfin Server TargetAbi - Extract the
.zip-content into your jellyfin server folderconfig/plugins/TeleJelly(create it if non-existing) - Restart Jellyfin server
Don't trust the downloads? You can also do it by yourself.
- run command
git clone https://github.com/hexxone/TeleJelly.gitor download as zip. - install .NET SDK (see the Tools section below for the correct Version)
- navigate solution folder
cd ./TeleJelly - run command
dotnet publish Jellyfin.Plugin.TeleJelly -c Release -v d - you will get a file like
TeleJelly_vX.X.X-alpha.X.X.zip - extract the
.zip-content into your jellyfin server folderconfig/plugins/TeleJelly(create it if non-existing) - restart Jellyfin server
- Make a new Bot & get the Token via @Botfather
- Make sure to use the
/setdomaincommand to link your Jellyfin domain (needs valid SSL cert). - Go to the TeleJelly plugin configuration page and fill in the Bot-Token.
- (Optional) Fill in the "Server Domain and Base URL" if you want the bot to use a specific URL in messages.
- Add yourself into the "Administrators" list for full access or create an Administrator Group.
- Now you should be able to log in via Telegram by visiting
/sso/Telegram. - You may also include this link in the Login "Branding" via Markdown or HTML. The configuration page provides a ready-to-copy code snippet for this. See screenshots below.
To give other users access without making them Admins:
- Create a new Group on the TeleJelly Config page (e.g., "Friends").
- Add the Bot to your corresponding Telegram Group.
- Run
/linkinside that Telegram Group to connect it to the TeleJelly Group. - If "Sync Usernames" is enabled, users joining the chat are automatically added to the plugin access list.
The Telegram bot will only listen to commands, send notifications, and sync usernames if the Enable bot service
checkbox is activated on the configuration page and a valid bot token is set.
If the checkbox is not activated, you can still log in with configured groups, but nothing else will work.
Troubleshooting: If the bot stops responding, you can restart the background service by unchecking
Enable bot service-> Save -> checking it again -> Save.
If a Telegram-group is successfully linked to a TeleJelly-group, the bot will listen for chat events:
- User joins chat &&
Sync Usernamesenabled -> User gets added to TeleJelly group automatically if he has a Username set. - User left chat &&
Sync Usernamesenabled -> User gets removed from TeleJelly group automatically if he has a Username set.
If a Telegram-group is successfully linked to a TeleJelly-group AND Notify New Content is enabled, the bot can send a notification if new Content is being
added to the Jellyfin server.
This currently includes: Movies, Series, Seasons, Episodes.
If "new content" is being detected, the bot will check if the Metadata is already complete (IMDb, Banner, etc.).
- If the metadata is complete, the bot sends a "rich" notification with all important info about the Item to all Groups that have access to the Item.
- If the metadata is not complete, wait for 24 hours before sending the notification anyway with incomplete metadata.
/start- Shows a welcome message./link- Links your Telegram group to your Jellyfin group./register- Registers a new user in your Jellyfin group./request <imdb>- Requests a movie or series from IMDB-Id or URL./search <text>- Searches for a media item in your Jellyfin server./stats- Shows some statistics about your Jellyfin server and the plugin./unlink- Unlinks your Telegram group from your Jellyfin group./userlist- Lists all users in your Jellyfin group.
Notice: Certain commands like /link are only available to TeleJelly "Admins" or might give additional info to
"Admins" like the /stats command.
-
This Login-method is intended for Desktop/Browser usage. It has not been tested to be working with official Jellyfin Apps. If you encounter problems, try signing in on a "real" browser instead and use the
Quick Connectfeature when possible. Besides that, there is very little you, or I can do. -
The
Sign in with Telegrambutton will sometimes get hidden by Browser Plugins like "I don't like Cookies" or "UBlock Origin". Try disabling these on your Jellyfin domain and inform your users. -
If a User's profile picture fails to download even though the url is given (err 404), he has probably set it to private. In this case, the plugin will fall back to its default icon.
-
If a User were to change/sell his Username, a random person would possibly be able to use this Service. However, having Names over ID's is much more convenient for Management.
-
If your server is publicly reachable, make sure to take care of rate limiting with your reverse proxy; otherwise adversaries might be able to lag the system.
Note: Video & Screenshots are taken with my custom css theme applied. The Logo is AI-generated.
tj_demo.mp4
- git if you plan to contribute
- Visual Studio or Rider IDE
- .NET9 for Jellyfin >= 10.11
- .NET8 for Jellyfin 10.9 - 10.10
- .NET6 for Jellyfin <= 10.8
- Docker for local testing
- Telegram.Bot telegram bot api interaction
- ILRepack for packing all dependency dlls into one single plugin dll
- MinVer for automated Release-versioning via git tags
- Run
git clone https://github.com/hexxone/TeleJelly.git - Open
TeleJelly.slnfile with Visual Studio or Rider IDE, restore Nuget packages - Copy
example.env-file to.envand fill out the variables - Choose to run Profile
Docker Test - Afterward Jellyfin with TeleJelly should be reachable under: https://jellyfin.localhost:8443/
Note: the "invalid" SSL certificate warning is normal. You can, however, get a "real" one working with traefik with ease.
When implementing a new feature, please name your commit messages in a meaningful way and refer to git best practices.
The plugin uses "MinVer" and git-tags for semantic versioning.
Most of the Versions (meta.json and manifest.json) get incremented automatically on release build,
but there are some places that have to be done manually - for example, in the config.html.
When incrementing the version of Jellyfin, remember to set the correct TargetAbi version in JellyfinPluginHelper!
Feel free to open a new Pull-Requests for useful additions and fixes.
This project uses a GitHub Actions workflow for automated releases (dotnetcore.yml). Here is how it ties into the release cycle:
- Trigger: The workflow is triggered manually via the Actions tab on GitHub.
- Versioning: It uses
MinVerto calculate the version number based on the latest Git tag in the history. - Build: The plugin is compiled using the .NET 8 SDK.
- Repository Update: It automatically updates the
manifest.jsonin the orphaneddistbranch. This allows Jellyfin instances to see the new version immediately via the repository URL. - GitHub Release: Finally, it creates a new Release entry on GitHub, drafts the changelog, and attaches the compiled
.zipfile for manual download.
This project is licensed under the GNU General Public License v3.0.


