This is a Telegram bot that allows users to upload video files or provide remote URLs to upload them to pdisk.pro. It supports video files with the extensions MP4, MOV, AVI, and MKV.
Before running the bot, make sure you have the following:
- Python 3.9 or later
- Required Python packages:
pyrogram
,requests
- Telegram API credentials (API ID, API Hash)
- Bot token from BotFather on Telegram
- pdisk.pro API key
-
Clone the repository and install requirements:
git clone https://github.com/nikhilpatidar/pdisk-uploader.git cd pdisk-uploader pip install -r requirements.txt
python main.py
Note - Make sure to replace YOUR_API_ID
, YOUR_API_HASH
, YOUR_BOT_TOKEN
, YOUR_PDISK_KEY
in config.ini file
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.