GithubHelp home page GithubHelp logo

adarsh-goel / filestreambot-pro Goto Github PK

View Code? Open in Web Editor NEW
310.0 4.0 1.2K 119 KB

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

License: GNU Affero General Public License v3.0

Python 89.11% HTML 10.85% Procfile 0.04%

filestreambot-pro's Introduction

GitHub contributors GitHub repo size GitHub

Cover Image

A Telegram bot to turn all media and documents files to instant direct download and stream link .

Report a Bug | Request Feature


Project Discontinuation Notice and Disclaimer

Please Note:

This project has been discontinued and is no longer actively maintained or updated. As a result, it may contain outdated dependencies or potential security vulnerabilities.

Disclaimer:

This code is provided as-is, for educational purposes only, with no support or warranty. The developer is not liable for any legal consequences, damages, or issues that may arise from its use.

By using this code, you accept these terms and conditions, agreeing that all risks and responsibilities lie with you, the end user. Ensure the code's suitability for your needs before proceeding.

Feel free to use the existing code for educational or reference purposes, but be aware that it may not be suitable for production use without significant updates and improvements.

Thank you for your interest in this project, and we appreciate your understanding regarding its discontinuation.


🍁 About This Bot :

streamingfilestreambot-professional-live_1

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


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.
💥A lot more tired of writing check out by deploying it.

Deploy on Windows or other plataform

You should make sure you have Python 3.6+ installed on your PC, then clone this repo and run the following commands in a terminal:

git clone https://github.com/adarsh-goel/filestreambot-pro
cd filestreambot-pro
virtualenv -p /usr/bin/python3 venv
. ./venv/bin/activate
pip install -r requirements.txt
python3 -m Adarsh

and to stop the whole bot, do CTRL+C

Vars and Details :

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

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 click on logo below!

mongo

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 :

  • Me
  • Everyone In This Journey !

filestreambot-pro's People

Contributors

adarsh-goel avatar isaulx avatar mahesh0253 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

filestreambot-pro's Issues

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")

help me

kindly tell me how to add custom domain and how to broadcast how to enable password

Fail to Deploy on VPS

image

i'm facing that error while deploying on vps. Please help me to fix this problem.

Picture attached in this post

TypeError: quote_from_bytes() expected bytes

2023-05-10 15:04:54,104 - pyrogram.dispatcher - ERROR - quote_from_bytes() expected bytes
Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.10/site-packages/pyrogram/dispatcher.py", line 240, in handler_worker
    await handler.callback(self.client, *args)
  File "/home/ubuntu/.local/lib/python3.10/site-packages/pyromod/listen/listen.py", line 237, in resolve_future
    await self.registered_handler(client, message, *args)
  File "/home/ubuntu/src/filestreambot-pro/Adarsh/bot/plugins/stream.py", line 99, in private_receive_handler
    stream_link = f"{Var.URL}watch/{str(log_msg.id)}/{quote_plus(get_name(log_msg))}?hash={get_hash(log_msg)}"
  File "/usr/lib/python3.10/urllib/parse.py", line 886, in quote_plus
    string = quote(string, safe + space, encoding, errors)
  File "/usr/lib/python3.10/urllib/parse.py", line 870, in quote
    return quote_from_bytes(string, safe)
  File "/usr/lib/python3.10/urllib/parse.py", line 895, in quote_from_bytes
    raise TypeError("quote_from_bytes() expected bytes")
TypeError: quote_from_bytes() expected bytes

Error

I am getting error

Banned is not working

I added a channel to banned list ... But , it's not working ... When i send the video from banned channel it just gives the direct link of it !

Jw player

please add jw player instead of plyr.io

Error

when deploying in heruko
its showing aiohttp error

Error running

There is an error when running, is the python version wrong? I am using python3.6.9

image

Accessing web routes on localhost

I'm trying to open the streaming link on localhost but that doesn't seem to work. The root route is working fine but I cant access the watch route. I tried turning off the firewall and proxy but still it doesn't work.

Vps

is a vps has 5 to 10gb storage enough??

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

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'

Server Id

Hallo,
where do i get this server id sis..?
in the documentation for how to use there is no description of the server id

Thank You
image

pymongo.errors.ConfigurationError: cannot open /etc/resolv.conf

Error

pymongo.errors.ConfigurationError: cannot open /etc/resolv.conf

dnspython tries to open /etc/resolv.conf, which is prohibited on some devices.

Solution

https://github.com/adarsh-goel/Filestreambot-pro/blob/68417abc387435b64a18a2f2aad3dd21c6122b72/Adarsh/utils/database.py#L4

In the line above include:

import dns.resolver

dns.resolver.default_resolver=dns.resolver.Resolver(configure=False)
dns.resolver.default_resolver.nameservers=['1.1.1.1']

Ban users

Can you add an option to ban users from using the bot, as of now only channels can be banned. Please consider this request.

Please i need help .

How to Remove Hash Opttion?

i want direct link without hash...

exmple.mkv?hash=AgADxw
TO THIS
exmple.mkv

how can i make this? coz my appplayer not support hash code only support this .mkv .mp4 please help me to remove this

New Player

Hi Bro . Can you add JW Video Player In Online Streaming & url Shorter Support

Invalid parse mode "Markdown"

The bot is not working on the channel
Instead bin shows this in Channel.👇
#ᴇʀʀᴏʀ_ᴛʀᴀᴄᴇʙᴀᴄᴋ: Invalid parse mode "Markdown"

Plz fix bro..

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

Request for IFRAME support

Hi! I have a request for adding Iframe support for the video player, this feature will be really useful for embedding videos for evey kind of use.
It's best to add a button under the video player for embedding with iframe or somewhere along with speed control button inside the video player.

How to Deploy On Render

how to deploy on render.com? because that platform auto deploy repo in every 5mins so that bot respond multiple time

#Request

Screenshot_2022-01-25-12-26-21-859_com android chrome

Change stream site interface like this with ads .

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.

Not Starting .

Saw this same problem at #21
I've cross checked config.env multiple times. It's in the root directory and in the /Adarsh directory as well. Same error. Cannot resolve. You know what's happening ?

Link issue

What should be my FQDN for vps?
If i put my private server ip, it's site's not opening
If put my public ip address, still not opening
If put the default (0.0.0.0), still not opening
What should I do?

Edit: However, the bot is running on port 8080 perfectly. When I connect the port in ngrok and opening the ngrok link, it's showing "status":running maintained by........

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.