file-upload-telegram-bot icon indicating copy to clipboard operation
file-upload-telegram-bot copied to clipboard

Open source python script to upload files from vps server to telegram using python-telegram-bot

Files upload from server to telegram

Requirements

(Version 3.10.12 Works Flawlessly)

Installation

To deploy this project run

sudo apt update && apt upgrade
git clone https://github.com/IroshanBrian/file-upload-telegram-bot
cd file-upload-telegram-bot
pip3 install -r requirements.txt

Configuration

You have to configure the example.env

  • Token= !Your telegram bot token
  • FOLDER_DIR=!Your server folder path

file and rename it to .env

Usage

Run the python file

python3 main.py

In the telegram chat use this commands:

  • /start - Start the bot
  • /help - Show this help message
  • /list- List of the files in the folder
  • /download - Download a file from the bot
  • /downloadAll - Download all files in the folder

Documentation

Python-Telegram-Bot

Credits

Support

For support, email [email protected].