Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Storage Plugin For Immich

This plugin is designed to work with the Immich photos application. It allows you to store original media files in a Telegram group that you create, helping you free up significant storage space on your server.

Immich typically uses cached, smaller-sized images to load content in the app. By integrating this plugin, you can move the original images from your server to telegram storage, leaving only the smaller cached versions. When you need access to the original, high-quality images, you can generate a shared link directly from the Immich app and send it to the Telegram group where the bot is running. The bot will search for the original images and send them back on demand.

Key Features:

  • Offload original media files to a Telegram group, reducing server storage usage.
  • Retrieve original images on demand via a shared link sent to the Telegram bot.

Secrets required

We need both Telegram User credentials and Telegram Bot credentials

Installation

npm install
npm run build

Usage

  1. Check for new files uploaded to BASE_DIR
npm run scan

You can configure a cron job to execute this script in every 1 or 2 hour mins like

0 * * * * npm run upload
  1. Run upload job
npm run upload

you can configure a cron job to execute this script in every 5 or 10 mins like

*/10 * * * * npm run upload
  1. Start the Telegram Bot to download original files
npm start

Once the files are synced in the DB, we can ask the bot for actual images. For this we need to share the Immich share link to the Telegram Bot we created.

About

A plugin for Immich application https://github.com/immich-app/immich

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages