/pdisk-uploader

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.

Primary LanguagePythonMIT LicenseMIT

Pdisk File Upload Bot

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.

Prerequisites

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

Setup

  1. Clone the repository and install requirements:

    git clone https://github.com/nikhilpatidar/pdisk-uploader.git
    cd pdisk-uploader
    pip install -r requirements.txt
    

Usage

python main.py

Note - Make sure to replace YOUR_API_ID, YOUR_API_HASH, YOUR_BOT_TOKEN, YOUR_PDISK_KEY in config.ini file

Contributing

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.

License

MIT