Giter Club home page Giter Club logo

temp's Introduction

๐Ÿš€ Hydro Streamer Bot ๐ŸŒŠ

Telegram Logo

Telegram Advanced File to Link Bot
Convert files to links for easy streaming and downloading with advanced features using Hydrogram.

๐Ÿž Report a Bug | โœจ Request a Feature


๐Ÿ“‹ Table of Contents
  1. About This Bot
  2. How to Make Your Own
  3. Setting Up Things
  4. How to Use the Bot
  5. FAQ
  6. Contributing
  7. Contact Me
  8. Credits

๐Ÿค– About This Bot

โš™๏ธ Features

  • Streamlined Code: Unnecessary features removed for efficiency.

  • High Speed: Utilizes Hydrogram for faster operation.

  • Easy Deployment: Fully configured for Heroku.

  • Enhanced Functionality: Improved user interface and additional features:

    • ๐Ÿ‘ค User-Friendly Interface
    • ๐Ÿ”— Stream Links
    • ๐Ÿ‘ฅ Group Functionality
    • ๐Ÿ“‚ Retrieve Files
    • ๐Ÿ”„ Update Channel
    • ๐Ÿ“‹ Log Channel
    • โš–๏ธ Terms & Conditions
    • โŒ Delete Links
    • ๐Ÿ“ข Broadcasts (Admin)
    • ๐Ÿšซ Ban User (Admin)
    • โœ… Unban User (Admin)
    • ๐Ÿ”ข Link Limits

๐Ÿ’ป Bot Commands

View All Commands (Click to expand)
start - Start the bot
link - Generate a stream link
help - Bot usage details
myfiles - Retrieve all files
ban - (Admin) Ban users
unban - (Admin) Unban users
stats - (Admin) Bot usage stats
who - (Admin) Check sender of a file

๐ŸŽฅ Original Repository

HydroStreamerBot is a modified version of FileStreamBot.

๐Ÿš€ How to Make Your Own

Deploy on Heroku

Press the button below to deploy on Heroku:

Deploy To Heroku

Then go to the variables tab for more info on setting up environmental variables.

Host It on VPS or Locally

git clone https://github.com/BalaPriyan/HydroStreamerBot
cd HydroStreamerBot
python3 -m venv ./venv
. ./venv/bin/activate
pip3 install -r requirements.txt
python3 -m WebStreamer

To stop the bot:

Ctrl + C

If you want to run the bot 24/7 on VPS:

sudo apt install tmux -y
tmux
python3 -m WebStreamer

Now you can close the VPS, and the bot will keep running.

โš™๏ธ Setting Up Things

If you're on Heroku, just add these to the Environmental Variables. If you're hosting locally, create a .env file in the root directory and add all the variables there. Example .env file:

API_ID=
API_HASH=
BOT_TOKEN=
BIN_CHANNEL=
DATABASE_URL=
FQDN=
HAS_SSL=
MULTI_TOKEN1=
MULTI_TOKEN2=
MULTI_TOKEN3=
OWNER_ID=
PORT=

๐Ÿ” Mandatory Vars

  • API_ID: Get it from my.telegram.org.
  • API_HASH: Get it from my.telegram.org.
  • BOT_TOKEN: Get the bot token from @BotFather.
  • BIN_CHANNEL: Create a new channel (private/public), post something in your channel, forward that post to @missrose_bot, and reply with /id. Copy the forwarded channel ID here.
  • OWNER_ID: Your Telegram User ID. Send /id to @missrose_bot to get it.
  • DATABASE_URL: MongoDB URI for saving user IDs for broadcasting.

๐Ÿ”ง Optional Vars

  • SLEEP_THRESHOLD: Flood wait exception threshold. Defaults to 60 seconds.
  • WORKERS: Maximum concurrent workers. Defaults to 6.
  • PORT: Port for the web app. Defaults to 8080.
  • WEB_SERVER_BIND_ADDRESS: Server bind address. Defaults to 0.0.0.0.
  • NO_PORT: If True, the port is not displayed. Defaults to False.
  • FQDN: Fully Qualified Domain Name. Defaults to WEB_SERVER_BIND_ADDRESS.
  • HAS_SSL: If True, generated links are in HTTPS format. Defaults to False.
  • PING_INTERVAL: Time for server pings. Defaults to 1200 ms.
  • UPDATES_CHANNEL: Telegram channel username without @.
  • FORCE_UPDATES_CHANNEL: If True, users must join the update channel to use the bot.
  • SESSION_NAME: Database name. Defaults to HydroStreamerBot.
  • ALLOWED_USERS: User Telegram IDs allowed to use the bot.
  • KEEP_ALIVE: If True, the server pings itself every few minutes.
  • IMAGE_FILEID: Photo to send with /myfiles. Use file_id or an HTTP URL.
  • TOS: URL to your Terms of Service.
  • MODE: Set to secondary to use the server only for serving files.
  • LINK_LIMIT: Limit the number of links a user can generate.

๐Ÿ“Ÿ How to Use the Bot

โš ๏ธ Before using the bot, don't forget to add all the bots (multi-client ones too) to the BIN_CHANNEL as admins.

  • /start: To check if the bot is alive.
  • To get an instant stream link, just forward any media to the bot.

โ“ FAQ

  • How long do the links remain valid?

    Links remain valid as long as your bot is running and you haven't deleted the log channel.

๐Ÿค Contributing

Feel free to contribute to this project if you have any ideas!

๐Ÿ“ฌ Contact Me

Telegram Channel

๐Ÿ… Credits

temp's People

Contributors

tahirdea avatar

Watchers

 avatar

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.