Skip to content

Repository files navigation

Deploy your own Telegram Bot API

Based on aiogram

Build Status Issues Contributors Stars

Docker Image Version Dcoker Image Size Docker Image Pulls Docker Image Stars


✨ Features

  • Single token with Bearer Authentication
  • Easy deploy for your own telegram-bot-api API server
  • Increase bot API limits

Note

Before deploy, please read this


Deploy

Create a directory

mkdir tgserver
cd tgserver

Copy or create the docker-compose.yml file in your tgserver directory

name: tgserver

services:
  api:
    image: tgserver/tgserver:latest
    env_file: .env
    restart: always
    ports:
      - '8383:8383'
    healthcheck:
      test: [CMD, curl, -f, 'http://127.0.0.1:8383/healthcheck']
    volumes:
      - file:/file

volumes:
  file: {}

Environments

Create a .env file on your tgserver directory

TELEGRAM_API_ID=<api-id>                           # (required) API ID
TELEGRAM_API_HASH=<api-hash>                       # (required) API HASH
TELEGRAM_API_SECRET=<your-api-secret>              # (required) Add API Secret for most security
TELEGRAM_API_STATS_PATH=<my-secret-stats-path>     # (optional) Secret path for bot API stats (Stats contain bot tokens)
TELEGRAM_WORK_DIR=<files-dir>                      # (optional) File serve path
EXTRA_ARGS=--local                                 # (optional) Pass extra arguments to telegram-bot-api command

🐛 Any issue?

About

🚀 Deploy your own Telegram Bot API

Topics

Resources

Stars

7 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages