{"repo":"donbarbos/telegram-bot-template","free":true,"listed":false,"github":"https://github.com/donbarbos/telegram-bot-template","clone":"git clone https://github.com/donbarbos/telegram-bot-template.git","description":"🤖 Template for telegram bot using postgres, pgbouncer, redis, docker, amplitude, prometheus, grafana, CI with admin panel","language":"Python","stars":476,"topics":["telegram-bot","python","aiogram-bot-template","docker-compose","postgresql","aiogram","docker","poetry","redis","telegram"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"Telegram bot template Best way to create a scalable telegram bot with analytics ✨ Features - [x] Admin Panel based on Flask-Admin-Dashboard ( Flask-Admin + AdminLTE = ❤️ ) - [x] Product Analytics System: using Amplitude or Posthog or Google Analytics - [x] Performance Monitoring System: using Prometheus and Grafana - [x] Tracking System: using Sentry - [x] Seamless use of Docker and Docker Compose - [x] Export all users in .csv (or .xlsx , .json , yaml from admin panel) - [x] Configured CI pipeline from git hooks to github actions - [x] SQLAlchemy V2 is used to communicate with the database - [x] Database Migrations with Alembic - [x] Ability to cache using decorator - [x] Convenient validation using Pydantic V2 - [x] Internationalization (i18n) using GNU gettex and Babel 🚀 How to Use 🐳 Running in Docker (recommended method) - configure environment variables in .env file - start services 💻 Running on Local Machine - set environment and install dependencies using uv (you can find branch with Poetry here) - start the necessary services (at least your database and redis) - configure environment variables in .env file - start telegram bot - start admin panel - make migrations 🌍 Environment variables to launch the bot you only need a token bot, database and redis settings, everything else can be left out name description ------------------------ ------------------------------------------------------------------------------------------- BOT TOKEN Telegram bot API token RATE LIM","default_branch":null,"files":null,"tree":[],"storefront":"/r/donbarbos","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/donbarbos/telegram-bot-template/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}