Skip to content

πŸ€– A robot that transforms files into direct links, hosting them on Telegram servers, with unlimited capacity and no limitations.

License

Notifications You must be signed in to change notification settings

mohamadSaleh82/File-Stream-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Getting Started πŸš€

  1. Install Python 3.8+

    Make sure you have Python 3.8 or a higher version installed on your system.

    python --version
  2. Clone the Repository Clone the GitHub repository for the File Stream bot using the following command:

     git clone https://github.com/mohamadSaleh82/File-Stream-bot
    
  3. Set Environment Variables or Edit Config/init.py Open the Config/init.py file and configure the following environment variables:

    api_id = 12345  # Your Telegram API ID
    api_hash = "21ab7cb0a453b5e60016dc7bbeb701cb"  # Your Telegram API hash
    channel_files_chat_id = -10012345466  # Telegram channel chat ID for storing files
    channel_username = "Userlandapp"  # Telegram channel username for support
    token = "0000000:AAFFMMgYoL9Vjb5KUU0bXxVReUI81xuU"  # Your Telegram bot token
    
  4. Install Python Dependencies

    Install the required Python packages using pip:

     pip install -r requirements.txt
    
  5. Run the Web Application

    run web :

     gunicorn main:main --workers 4 --threads 4 --bind 0.0.0.0:$PORT --timeout 86400 --worker-class aiohttp.GunicornWebWorker
    

    run bot :

     python -m bot
    

    run web and bot :

     ./start
    

Environment:

Env Description Example
api_id Telegram API ID for developing a bot (get from my.telegram.org) 12345
api_hash Telegram API hash for developing a bot 21ab7cb0a453b5e60016dc7bbeb701cb
channel_files_chat_id Telegram channel chat ID for storing and managing files -10012345466
channel_username Telegram channel username for support file2link
token Telegram bot token for launching 0000000:AAFFMMgYoL9Vjb5KUU0bXxVReUI81xuU

Management Guide:

πŸ“š If a file is deleted from the storage channel, the link will expire.

πŸ“© If a file is replayed in the storage channel and a message is sent, that message will be sent to the sender of the file.

πŸ”„ If a file is edited in the storage channel and replaced by another file, the link will download the new file.

🚫 If a user is blocked from the support channel, they can no longer use the bot.

Feel free to ask if you need any further information or assistance! πŸ€–πŸ”—πŸ“¦

Management guide:

If a file is deleted from the storage channel, the link will expire
If a file is replayed in the storage channel and a message is sent, that message will be sent to the sender of the file
If a file is edited in the storage channel and replaced by another file, the link will download the new file
If a user is blocked from the support channel, he can no longer use the robot

Don't forget to star this repository 🌟 if you find it useful!

About

πŸ€– A robot that transforms files into direct links, hosting them on Telegram servers, with unlimited capacity and no limitations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published