A very fast file streaming bot used for streaming and downloading movies

Overview

GitHub Repo stars GitHub forks GitHub contributors GitHub repo size GitHub commit activity GitHub Bot Support

FileStreamBot

Cover Image

GIVE A STAR AND FORK ELSE NO MORE OPENSOURCE

A Telegram bot to turn all media and documents files to web link .

Report a Bug | Request Feature


🍁 About This Bot :

streaming-Professional-live_1

This bot will give you stream links for Telegram files without the need of waiting till the download completes

β™’ How to make your own :

Either you could locally host or deploy on Heroku

πŸ’œ Heroku

Deploy


Deploy on Railway

β™’ Click on This Drop-down and get more details


Deploy on Heroku :
  1. Fork This Repo
  2. Click on the button to Deploy and follow steps

So Follow Above Steps πŸ‘† and then deploy other wise bot won't work

Press the below button to Fast deploy on Heroku

Deploy

then goto the variables tab for more info on setting up environmental variables.

Features:

πŸš€ Features

πŸ’₯ Superfast ⚑️ download and stream links.
πŸ’₯ No ads in generated links.
πŸ’₯ Superfast interface.
πŸ’₯ Along with the links you also get file information like name,size ,etc.
πŸ’₯ Updates channel Support.
πŸ’₯ Mongodb database support for broadcasting.
πŸ’₯ Password Protection.
πŸ’₯ User Freindly Interface.
πŸ’₯ Ping check.
πŸ’₯ User DC Check.
πŸ’₯ Real time CPU , RAM , Internet usage.
πŸ’₯ Custom Domain support.
πŸ’₯ All unwanted code removed.
πŸ’₯ Removes forwarded tag in channel.
πŸ’₯ A lot more tired of writing check out by deploying it.

Host it on VPS Locally :
git clone https://github.com/Code-X-Mania/Filestreambot-pro
cd Filestreambot-pro
virtualenv -p /usr/bin/python3 venv
. ./venv/bin/activate
pip install -r requirements.txt
python3 -m Code_X_Mania

and to stop the whole bot, do CTRL+C

Setting up things

If you're on Heroku, just add these in the Environmental Variables or if you're Locally hosting, create a file named config.env in the root directory and add all the variables there. An example of config.env file:

API_ID=12345
API_HASH=esx576f8738x883f3sfzx83
BOT_TOKEN=55838383:yourtbottokenhere
BIN_CHANNEL=-100
PORT=8080
FQDN=your_server_ip
OWNER_ID=your_user_id
DATABASE_URL=mongodb_uri
Vars and Details :

API_ID : Goto my.telegram.org to obtain this.

API_HASH : Goto my.telegram.org to obtain this.

MY_PASS : Bot PASSWORD

BOT_TOKEN : Get the bot token from @BotFather

BIN_CHANNEL : Create a new channel (private/public), add @missrose_bot as admin to the channel and type /id. Now copy paste the ID into this field.

OWNER_USERNAME : U should be knowing it afterall it's your username dont remember ? it just go to settings!

OWNER_ID : Your Telegram User ID

DATABASE_URL : MongoDB URI for saving User IDs when they first Start the Bot. We will use that for Broadcasting to them. I will try to add more features related with Database. If you need help to get the URI you can ask in Me Telegram.

Option Vars

UPDATES_CHANNEL : Put a Public Channel Username, so every user have to Join that channel to use the bot. Must add bot to channel as Admin to work properly.

BANNED_CHANNELS : Put IDs of Banned Channels where bot will not work. You can add multiple IDs & separate with Space.

SLEEP_THRESHOLD : Set a sleep threshold for flood wait exceptions happening globally in this telegram bot instance, below which any request that raises a flood wait will be automatically invoked again after sleeping for the required amount of time. Flood wait exceptions requiring higher waiting times will be raised. Defaults to 60 seconds.

WORKERS : Number of maximum concurrent workers for handling incoming updates. Defaults to 3

PORT : The port that you want your webapp to be listened to. Defaults to 8080

WEB_SERVER_BIND_ADDRESS : Your server bind adress. Defauls to 0.0.0.0

NO_PORT : If you don't want your port to be displayed. You should point your PORT to 80 (http) or 443 (https) for the links to work. Ignore this if you're on Heroku.

FQDN : A Fully Qualified Domain Name if present. Defaults to WEB_SERVER_BIND_ADDRESS

How to Use :

⚠️ Before using the bot, don't forget to add the bot to the BIN_CHANNEL as an Admin

/start : To check if the bot is alive or not.

To get an instant stream link, just forward any media to the bot and boom, its fast af.

image

Channel Support

Bot also Supported with Channels. Just add bot Channel as Admin. If any new file comes in Channel it will edit it with Get Download Link Button.

Credits :

Comments
  • The bot throws

    The bot throws "pyrogram.dispatcher - ERROR" when I try to send a picture to it

    When I try to send a picture to the bot, it returns nothing, and the program will show the following error log at the same time.

    2022-10-22 12:16:59,261 - pyrogram.dispatcher - ERROR - Telegram says: [400 ENTITY_BOUNDS_INVALID] - The message entity bounds are invalid (caused by "messages.SendMessage")
    Traceback (most recent call last):
      File "/usr/local/lib/python3.8/dist-packages/pyrogram/dispatcher.py", line 240, in handler_worker
        await handler.callback(self.client, *args)
      File "/usr/local/lib/python3.8/dist-packages/pyromod/listen/listen.py", line 93, in resolve_listener
        await self.user_callback(client, message, *args)
      File "/root/filestreambot-pro/Adarsh/bot/plugins/stream.py", line 105, in private_receive_handler
        await m.reply_text(
      File "/usr/local/lib/python3.8/dist-packages/pyrogram/types/messages_and_media/message.py", line 959, in reply_text
        return await self._client.send_message(
      File "/usr/local/lib/python3.8/dist-packages/pyrogram/methods/messages/send_message.py", line 124, in send_message
        r = await self.invoke(
      File "/usr/local/lib/python3.8/dist-packages/pyrogram/methods/advanced/invoke.py", line 77, in invoke
        r = await self.session.invoke(
      File "/usr/local/lib/python3.8/dist-packages/pyrogram/session/session.py", line 361, in invoke
        return await self.send(query, timeout=timeout)
      File "/usr/local/lib/python3.8/dist-packages/pyrogram/session/session.py", line 331, in send
        RPCError.raise_it(result, type(data))
      File "/usr/local/lib/python3.8/dist-packages/pyrogram/errors/rpc_error.py", line 91, in raise_it
        raise getattr(
    pyrogram.errors.exceptions.bad_request_400.EntityBoundsInvalid: Telegram says: [400 ENTITY_BOUNDS_INVALID] - The message entity bounds are invalid (caused by "messages.SendMessage")
    
    opened by hash070 11
  • Error again

    Error again

    The bot is not working on the channel Instead bin shows this in Channel.πŸ‘‡

    #ᴇʀʀᴏʀ_ᴛʀᴀᴄᴇʙᴀᴄᴋ: EditMessageReplyMarkup.edit_message_reply_markup() got an unexpected keyword argument 'id'

    opened by Fspb1gthub 5
  • Request

    Request

    Screenshot_2022-01-26-09-29-28-322_org telegram plus

    Change Download link & Stream link like http://{App_Name}.herokuapp.com/download/29/Maraikkayar_Arabikkadalin_Singam_2021_Tamil_HQ_HDRip_700MB_x264.mkv

    enhancement 
    opened by NesamaniX1 3
  • Error when open download and watch url

    Error when open download and watch url

    When I click to url I see this error: "Heroku | Welcome to your new app! Refer to the documentation if you need help deploying." I hope you can help me resolve it. Thanks

    opened by 123aacbd 2
  • The obtained link has no port bug

    The obtained link has no port bug

    The obtained link has no port bug

    There is no response after adding the parameter of NO PORT. Remove the parameter of NO PORT. No matter whether it is added or not, the obtained download address does not have a port by default, and the webpage will prompt 404.

    is bug?

    I use TG-FileStreamBot for this project and did not find this problem image image

    opened by b1fly 2
  • Attribute Error

    Attribute Error

    Bro, I've deployed this bot in VPS. Bot is well and good but when I send any file it's not generating the link. I checked the log and this the error I'm getting when I send any files to the bot.

    Error : http://pastehere.xyz/gc1R4bjpJ/

    This is happening only whn the bot is deployed by VPS. Have tried koyeb there no error like this.

    opened by JOHN748 1
Owner
Code X Mania a.k.a Adarsh Goel
Available at telegram @CodeXMania
Code X Mania a.k.a Adarsh Goel
A web app for downloading Facebook comments as a csv file

Facebook Comment Downloader A small web app for downloading comments from a public facebook page post. Comment downloading from https://github.com/min

WSDOT 23 Jan 4, 2023
Easily download audio described movies and TV shows found on audiovault.net

AudioVault Downloader A convenient downloader for audio described movies and TV shows found on the Audio Vault. get latest binary release for Windows

Carter Temm 5 Feb 10, 2022
A discord bot for downloading youtube video and audio files

disctube disctube is a discord bot for downloading video and audio files from youtube using python pytube. disclaimer i am not the best python program

razor420 3 Feb 3, 2022
A lightweight, dependency-free Python library (and command-line utility) for downloading YouTube Videos.

A lightweight, dependency-free Python library (and command-line utility) for downloading YouTube Videos.

pytube 7.9k Jan 2, 2023
Making the process of downloading youtube videos faster and more convinient.

Easy-YT Making the process of downloading youtube videos faster and more convinient. What can it do? This python script can be used to download youtub

Meynam 39 Nov 15, 2021
This script fully automates of downloading tiktok videos, editing them,compiling them and finally uploading them to youtube.

This script fully automates of downloading tiktok videos, editing them,compiling them and finally uploading them to youtube. If you wanted to create a tiktok video compiilation youtubbe channel this script is here to help you :D

Supriyo Sarkar 32 Dec 16, 2022
ImageScraper is a cross-platform tool for downloading a specified count from xkcd, Astronomy Picture of the Day and Existential Comics

ImageScraper The ImageScraper is a cross-platform tool for downloading a specified count from xkcd, Astronomy Picture of the Day and Existential Comic

1amnobody 1 Jan 25, 2022
Storing, versioning, and downloading files from S3 made as easy as using open() in Python. Caching included.

open(LARGE) Storing, versioning, and downloading files from S3 made as easy as using open() in Python. Caching included. Motivation Oftentimes, especi

AndrΓ‘s Schmelczer 2 Jan 30, 2022
Open Source application for downloading and playing music.

Musifre Greetings For HackHeist(Wartex) Judges: Synopsis, Promotion Video & Product Functioning Video are present in Documentation Folder. A Star woul

Yash Dhingra 9 Mar 22, 2022
YoutubeDownloader - Repo for downloading YT audio and videos

YoutubeDownloader Downloads video/playlist/audio from youtube url. install all t

Anuj SP 2 Feb 17, 2022
YouTube Downloader is extremely simple program for downloading songs or playlists (in audio or video) from YouTube. Created using Python, PyTube and PySimpleGUI.

YouTube Downloader YouTube Downloader is extremely simple program for downloading songs or playlists (in audio or video) from YouTube. Disclaimer It's

Simeon Tsvetanov 3 Dec 14, 2022
A simple Python program which uses youtube-dl for downloading YouTube videos as mp3 files.

yt-mp3 converter This is a simple Python program which uses youtube-dl for downloading YouTube videos as mp3 files. This program is for you if you are

nostalgicnerdpenguin 1 Oct 24, 2021
This is a tool to allow downloading any links from r/Roms Magethread

ILYFPR This is a tool to allow downloading any links from r/Roms Magethread Limitations: It downloads ALL roms of the system you choose. This will be

Erase 4 Nov 4, 2021
Userscript qutebrowser for downloading audio / video from youtube using aria2

Yt-Downloader Userscript qutebrowser for downloading video / audio from youtube using aria2 by hint links. Requirements Rofi youtube-dl aria2 dunst In

Ara 0 Dec 11, 2021
Python script for downloading audio from YouTube songs/videos.

Python script for downloading audio from YouTube songs/videos. All you have to do is specify the path to your folder and then type song's/video's name and the sound will be downloaded into your folder.

Mateusz Polis 0 Oct 5, 2022
Utility for downloading works from AO3 (Archive Of Our Own)

ao3d video preview A small graphical utility for batch downloading works from AO3 (Archive Of Our Own) Features Batch downloading works to supported f

flux 24 Dec 9, 2022
Utility for downloading works from AO3 (Archive Of Our Own)

froyo A small graphical application for batch downloading works from Archive Of Our Own (AO3). Curate a fic repo of your own today :) Features Batch d

flux 24 Dec 9, 2022
Youtube_dl_helper - A hacky python script meant to automate the process of downloading mp3 files from YouTube using youtube-dl library

youtube_dl_helper A helper program meant to automate the process of downloading mp3 files from YouTube using youtube-dl library Dependencies In order

Guilherme Bittencourt de Borba 1 Jan 4, 2022
Gogoanime-dl - Gogoanime downloader for downloading anime.

gogoanime-dl With this script, you can download episodes of your favorite anime from Gogoanime. The current site that's developed against is https://w

null 1 Jan 6, 2022