Fast Stream Bot is a high-performance Telegram bot that lets you generate streamable and downloadable links for any file you send to it. It features a credit system, referral program, and admin tools, making it perfect for managing file sharing.
The easiest way to install Fast Stream Bot is using our installer script. Run the following command in your terminal:
curl -sfL https://raw.githubusercontent.com/biisal/fast-stream-bot/main/install.sh | bashThis will automatically download the latest version for your system and install it to ~/.fast-stream-bot/bin.
Before running the bot, you need to configure it.
-
Create a folder for your bot:
mkdir my-bot cd my-bot -
Create a
.envfile: This file holds your secret keys. Create a file named.envand paste the following (fill in your values):BOT_TOKENS=your_bot_token_from_botfather APP_KEY=your_telegram_app_id APP_HASH=your_telegram_app_hash ADMIN_ID=your_telegram_user_id HTTP_PORT=8000 FQDN=http://your-server-ip:8000 LOG_CHANNEL_ID=-100xxxxxxxxxx DB_CHANNEL_ID=-100xxxxxxxxxx MAIN_CHANNEL_ID=-100xxxxxxxxxx MAIN_CHANNEL_USERNAME=your_channel_username DBSTRING=your-psql-connection-string (get it from neon.com db [one day we will sponsor .. lol]) REDIS_DBSTRING=your-redis-connection-string (get it from upstash.com)
Note: You can get
APP_KEYandAPP_HASHfrom my.telegram.org. -
Create a
config.tomlfile: This file holds application settings. Create a file namedconfig.toml:app_name = "Fast Stream Bot" env_file = ".env" header_image = "https://some-image_url-or-path.com" # Credit System Configuration max_credits = 500 min_credits_required = 5 initial_credits = 50 increment_credits = 10 decrement_credits = 10
Once installed and configured, simply run:
fast-stream-botYou should see the startup logo and a message indicating the bot is valid and running.
You can also run the bot using Docker. This method ensures you have a consistent environment.
-
Build the Docker image:
docker build -t fast-stream-bot . -
Run the container:
docker run -d \ --name fast-stream-bot \ -p 8000:8000 \ -v $(pwd)/config.toml:/app/config.toml \ -v $(pwd)/.env:/app/.env \ fast-stream-bot
- Instant Links: Stream or download files instantly.
- Credit System: Control usage with a built-in credit system.
- Channel Lock: Force users to join a channel to use the bot.
- Admin Dashboard: Ban/unban users and broadcast messages directly from the bot.
If you want to contribute or build from source, follow these steps.
-
Clone the repository:
git clone https://github.com/biisal/fast-stream-bot.git cd fast-stream-bot -
Run in development mode:
make dev
-
Build production binary:
make build