Telegraph-Uploader is a Telegram bot that facilitates the upload of photos to Telegra.ph and generates instant view links for Telegram text messages.
- Instant View Links: Generate instant view links for Telegram text messages. ๐
- Photo Uploads: Upload photos to Telegra.ph and receive a direct link. ๐
- Obtain your API HASH & API TOKEN from my.telegram.org
- Paste them into their respective fields.
- Get the bot token from @BotFather.
-
Clone the repository:
git clone https://github.com/Ns-AnoNymouS/Telegraph-Uploader.git cd Telegraph-Uploader
-
Create virtual environment
python3 -m venv .venv # for windows .venv\Scripts\activate # for Linux or MacOS source .venv/bin/activate
-
Install the required libraries:
pip3 install -r requirements.txt
-
Add your configuration details to
.env
.API_HASH = "your_api_hash" API_ID = "your_api_id" BOT_TOKEN = "your_bot_token"
-
Run the bot:
python3 main.py
/start - Check the bot's status and receive instructions on how to use its features.
- 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}
Name: Anonymous
GitHub: Ns-AnoNymouS
Telegram: NS AnoNymouS
Contributions are welcome.