Skip to content

Latest commit

 

History

History
72 lines (57 loc) · 1.92 KB

README.md

File metadata and controls

72 lines (57 loc) · 1.92 KB

Pixeldrain Bot

This project is designed to facilitate easy media uploads from Telegram to PixelDrain, providing a seamless integration for file sharing.

Bot Commands:

  • /start This is generic like any other bot.
  • /auth Used to authorise a user and can be used in private mode only. [Owner CMD]
  • /unauth Used to revoke authorisation. [Owner CMD]
  • /auths Used to get the the authorised user list. [Owner CMD]
  • /pdup Used to upload files from a group chat by replying the file with it. [Available for authorised users only]

TO-Dos:

  • Introduce MongoDB for managing auth_users.
  • User Authorization Support.
  • Support Pixeldrain API.
  • Support multiple files upload in one go.
  • No cooldown timer.
  • Add support for group chats.
  • Add support for links mirror.

Requirements & Variables:

  • API_HASH Your API Hash from Telegram
  • API_ID Your API ID from Telegram
  • BOT_TOKEN Your bot token from @BotFather
  • MONGODB_URI Your MongoDB URI
  • OWNER_ID Telegram user ID of the Owner
  • PIXELDRAIN_API_KEY Your Pixeldrain API KEY
Note: Make the required changes in .env file.

Deployment:

  • Clone the Repository:
git clone https://github.com/Burhanverse/Pixeldrain-Bot.git
cd Pixeldrain-Bot
  • Setup Virtual Environment:
python -m venv venv
. ./venv/bin/activate
  • Install Dependencies:
pip install -r requirements.txt
  • Run the Bot:
# <Setup the .env Variables appropriately first>
python bot.py

Credits: