Skip to content

kayleeforu/telegramclipsaver

Repository files navigation

Python Telegram Supabase Status

Telegram Bot that downloads media from links

This is my first big project that I built. Previously, I was only doing university works, but this is the bot that I can be proud of.

Why use this bot?

I created this bot, because I was using other bots before to download posts that I couldn't download. However, I got annoyed by the amount of these bots that ask to subscribe to several channels or watch a literal video ad on Telegram in order to use the bot.

My bot doesn't ask you to do anything, you can simply send a link and get your video.

Supported Platforms

Platform Media Type Note (See Maintenance for cookies explanation)
TikTok Slideshow and Videos High speed
Instagram Posts and Reels Works, but need maintenance
Pinterest Photos, GIFs and Videos High speed
Twitter Photos, GIFs and Videos High speed
YouTube Videos and Shorts Low speed due to JS Challenges

APIs used

  • The bot uses yt-dlp to download YouTube posts.
  • Gallerydl for everything else.
  • The bot also offers song recognition, if you download any video, you can press the button "Get Song" and the bot will try to recognize the song using shazamio and will send you the result.

Optimization

Supabase is used to cache the videos users queried, if someone else sends the same link, the bot will instantly send the result. This was made to speed up the process if the video was already downloaded before. The database doesn't store any video or path to it on the bot server. Telegram stores all its videos on their servers, and sends the bot the file id on their servers. Database stores the file id to the corresponding link and answers if the same link was queried.

Maintenance

Because I didn't find any other solution to downloading posts on Instagram, I need to update cookies for instagram every now and then, but I notice bot not working pretty fast, so it doesn't take a lot of time to fix it. In order to ensure that the bot would work all the time, I would need more Instagram accounts and their cookies. That is why I sticked to just updating the cookies manually.

About

A telegram bot that lets you download a video from multiple websites like TikTok or Instagram

Resources

Stars

Watchers

Forks

Contributors

Languages