Skip to content

Telegram MTPROTO uploading system, upload and retrieve files up to 2GB

Notifications You must be signed in to change notification settings

TeaByte/mt-uploader

Repository files navigation

⚠️ This is just a prototype! https://mt-uploader.vercel.app/

it only 4.4 MB Vercel size limit you can deploy your own copy and get 2GB telegram limit limits.

  1. Clone the Repository

    git clone https://github.com/TeaByte/mt-uploader.git
    cd mt-uploader
  2. Install Dependencies

    npm install
  3. Start MTPROTO API

    # Don't forget to put telegram bot-token, etc.. in ( main.py )
    cd mtproto
    pip install requirements.txt
    py main.py
  4. Make .env File

    # Telegram MTPROTO Flask API endpoint
    PYTHON_MTPROTO_API_URL=http://127.0.0.1:80
    
    # Database
    DATABASE_URL=postgres://....neon.tech/main
    SHADOW_DATABASE_URL=postgres://....neon.tech/shadow
    
    # Google Recaptcha V2
    RECAPTCHA_SECRET_KEY=...
    

    Neon PostgreSQL: https://console.neon.tech

  5. Start the Development Server

    npm run dev

photo