Skip to content

This bot downloads posts, especially videos from major social sites with Caption/Title.

Notifications You must be signed in to change notification settings

prabeshAryal/tg-all-social-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Youtube Downloader For Telegram

An python bot to download Public Videos/Audios from Links in Telegram Chat/Channel.

  • Note: It not only works for Youtube, but support a lot of sites. It downloads in webm format from youtube. Basically this downloader is intended to be used in telegram chats and in telegram video player.
  • Audio can be downloaded from audio-only sites like sound cloud.

Deploy

Table of Contents

  1. Introduction
    1. About Bot
    2. Working Principle
    3. Instagram Support
  2. Knowing All Variables
    1. BOT Token
    2. Instagram Session
  3. Requirements
    1. Python
      1. PIPs
  4. Deploy
  5. License

Read this throughly before deploying the bot:

What is this bot about?

This bot is make specifically for one purpose. That is to monitor Telegram Groups and Chats and download Public and (even private to some extent) Videos/Audios from Links in Telegram Chat/Channel.

How does this bot work?

This bot works in various steps as :

  • It listens for new messages in your Telegram Groups.
  • Scans for messages with URL Regex.
  • Tries to download that link
  • If download is done, it sends to telegram.
  • Deletes that specific message only.

Instagram Support

  • This bot supports instagram login and download private posts and stories too. Highlights are not yet supported.
  • Send /help command to look available features.
  • Here's information about login method.

Get Variables

Bot Token

  • You can get Telegram Bot Token BOT_TOKEN from BotFather bot on telegram.

Instagram Session File and username

  • ig_session is your Instagram username.
  • You can get your instagram session file username.session by running this Session Generator File locally.
  • While deploying place Session File in same directory of your bot.py and set ig_session as variable. If you don't want logins, just leave ig_session variable empty in environment variable field.

Required Softwares and Languages

Python

Download Python From here :

While installing, tick install path / environment variables whatever is given

Python Snippets

  • Install required python modules using commands below:
  • pip install python-telegram-bot --pre
  • pip install yt-dlp
  • pip install ffmpeg
  • pip install requests
  • pip install instaloader
  • Install all above modules using :
  • pip install -r requirements.txt

Deploying the bot

Deploying Locally

  • Install Python, PIPs using above methods
  • Download all files in this repo.
  • Replace variables at the top of main.py file with your ones, removing os.environ.get('BOT_TOKEN') and os.environ.get('ig_session') commands.

Type any one of the following command on terminal to run bot:

  • py main.py
  • python main.py
  • python3 main.py

Deploying to HEROKU :

Press the button below or at the top of this readme and insert necessary environment variables and you're done. Deploy

License

Distributed Under GPL or MIT License by @PrabeshAryalNP on social or @PrabeshAryal on code sites.

About

This bot downloads posts, especially videos from major social sites with Caption/Title.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages