Skip to content

With this bot you can upload photos and videos to telegraph and get links to them.

Notifications You must be signed in to change notification settings

nessshon/telegraph-uploader-bot

Repository files navigation

🤖 Telegra.ph Uploader Bot

With this bot you can upload photos and videos to telegraph and get links to them.

Bot example @nTelegraphUploaderBot

Requirements

  • Python 3.10 and above.
  • Systemd or Docker.

Usage

Clone this repo via link

git clone https://github.com/nessshon/telegraph-uploader-bot

Go to the project folder

cd telegraph-uploader-bot

Create environment variables file

cp .env.example .env

Edit environment variables in .env

nano .env

Launch using Docker

  1. Install docker and docker compose

  2. Build and run your container

    docker-compose up -d

Launch using systemd

  1. Create a virtual environment

    python3.10 -m venv env
  2. Activate virtual environment

    source env/bin/activate
  3. Install required packages

    pip install -r requirements.txt
  4. Check if the bot is running

    python -m app
  5. Set WorkingDirectory to the path to the project folder.

    nano telegram-bot.service
  6. Copy telegram-bot.service to /lib/systemd/system/

    sudo cp telegram-bot.service /lib/systemd/system/telegraph-uploader-bot.service
  7. Enable autostart on boot

    sudo systemctl enable telegraph-uploader-bot.service
  8. Launch Bot

    sudo systemctl start telegraph-uploader-bot.service

Environment variables reference

Variable Description
BOT_TOKEN Token, get it from @BotFather

About

With this bot you can upload photos and videos to telegraph and get links to them.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published