Skip to content

A Telegram bot that creates instant view links and uploads photos to Telegraph, providing seamless media sharing and instant viewing capabilities.

License

Notifications You must be signed in to change notification settings

Ns-AnoNymouS/Telegraph-Uploader

Repository files navigation

Telegraph-Uploader 📤

Open Source? Yes! Ask Me Anything!

Telegraph-Uploader is a Telegram bot that facilitates the upload of photos to Telegra.ph and generates instant view links for Telegram text messages.

Features

  • Instant View Links: Generate instant view links for Telegram text messages. 🔗
  • Photo Uploads: Upload photos to Telegra.ph and receive a direct link. 🏞

Easy Deployment

Deploy

  1. Obtain your API HASH & API TOKEN from my.telegram.org
  2. Paste them into their respective fields.
  3. Get the bot token from @BotFather.

How to Run Locally

  1. Clone the repository:

    git clone https://github.com/Ns-AnoNymouS/Telegraph-Uploader.git
    cd Telegraph-Uploader
  2. Create virtual environment

    python3 -m venv .venv
    
    # for windows
    .venv\Scripts\activate
    
    # for Linux or MacOS
    source .venv/bin/activate
  3. Install the required libraries:

    pip3 install -r requirements.txt
  4. Add your configuration details to .env.

    API_HASH = "your_api_hash"
    API_ID = "your_api_id"
    BOT_TOKEN = "your_bot_token"
  5. Run the bot:

    python3 main.py

Commands 👨‍✈️

/start - Check the bot's status and receive instructions on how to use its features.

Usage 🤔

  • Photo Upload: Send any photo to the bot, and it will return a direct link.
  • Text to Instant View: Send any text to the bot to generate instant view links.
  • Custom Title: To use custom title for your post on Telegra.ph, send a text message in the following format:
Title: {title}
{content}

Made with 🛠

Python

Framework 🧰

Pyrogram

Developer 👨🏻‍💻

Developer Image

Name: Anonymous

GitHub: Ns-AnoNymouS

Telegram: NS AnoNymouS

Contributions

Contributions are welcome.

About

A Telegram bot that creates instant view links and uploads photos to Telegraph, providing seamless media sharing and instant viewing capabilities.

Topics

Resources

License

Stars

Watchers

Forks