Code Monkey home page Code Monkey logo

telegraph-uploader's Introduction

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.

telegraph-uploader's People

Contributors

ns-anonymous avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

telegraph-uploader's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.