Skip to main content

Telegram Bot Control

Русский · English

Русский

Панель мониторинга и управления существующими aiogram-ботами на Windows/Linux. Для готовой программы достаточно Python 3.11+. Node.js, pnpm, Git и сборка исходников не нужны. Используйте обычный Python, которым уже запускаете бота.

Установка и запуск

python -m pip install --upgrade telegram-bot-control
tgbots

Панель сама откроется в браузере. Python, стандартная папка данных и локальный вход определяются автоматически. Оставьте терминал открытым; Ctrl+C остановит панель, а боты продолжат работать.

Если tgbots не найден, выполните python -m telegram_bot_control. На Linux используйте python3; на Windows также можно использовать py. Нужен Python 3.11+. Node.js, pnpm и отдельный установщик для этого способа не нужны.

Отдельное desktop-окно Windows — дополнительный вариант. В нём есть автоматический поиск Python и окно ошибки с конкретным способом исправления. Termux и доступ из сети.

Как добавить бота

В его главном файле после создания существующих bot и dp, перед polling:

from telegram_bot_control import start

monitor = start(bot=bot, dispatcher=dp, capture_logs=True)
dp.update.outer_middleware(monitor.middleware())

Запустите бота привычной командой — карточка появится автоматически. Оставьте свои роутеры, .env и логгер. По умолчанию бот и панель используют общую папку текущего пользователя. Если задаёте data_dir, он должен совпадать в обоих местах.

Работаете с ИИ? Скопируйте готовый промпт. Подробная инструкция первого запуска.

Desktop-версия 0.8.0+ обновляется через GitHub Releases: проверка и загрузка в фоне, затем «Установить и перезапустить». Для 0.7.0 и старше один раз установите новый .exe. Боты продолжают работать. ZIP-сборки обновляются вручную; Linux — через AppImage. Python-пакет обновляйте командой python -m pip install --upgrade telegram-bot-control.

Возможности

  • Состояние ботов, пользователи, сообщения, команды, кнопки и история ошибок.
  • Свои события monitor.track_action() и @monitor.action() для функций: графики, время срабатывания, длительность и результат.
  • Существующие logging/Loguru, поиск по логам, подробности ошибок запуска.
  • CPU, RSS и потоки процесса каждого бота.
  • Запуск/остановка/перезапуск, сложные команды и ограниченный автоперезапуск.
  • Русский/английский интерфейс, обучение, трей и настройки хранения.

Базовый пакет зависит только от psutil. Для существующего aiogram-проекта достаточно базового пакета; если aiogram ещё не установлен, используйте python -m pip install "telegram-bot-control[aiogram]". Веб-интерфейс и шрифты с кириллицей уже включены в пакет.

Все готовые сборки · События и аналитика · Разработка из исходников.


English

Monitor and control existing aiogram bots on Windows/Linux. Python 3.11+ is enough for the ready-made application; Node.js, pnpm and a source build are not required. Use the same Python that already runs your bot.

Install and launch

python -m pip install --upgrade telegram-bot-control
tgbots

The bundled dashboard opens in your browser and signs in locally. It uses the launching Python and the owner's default directory without manual configuration. Keep the terminal open; Ctrl+C stops the dashboard. If tgbots is not on PATH, use python -m telegram_bot_control. Use python3 on Linux or py on Windows as needed.

The optional desktop application includes automatic Python discovery, SDK checks and actionable connection error dialogs. Installed Windows apps and Linux AppImages also receive GitHub updates, with background downloads and an Install and restart button. Versions 0.7.0 and older need one manual upgrade; extracted ZIP builds update manually. The Python package is updated with pip.

Connect an existing bot

from telegram_bot_control import start

monitor = start(bot=bot, dispatcher=dp, capture_logs=True)
dp.update.outer_middleware(monitor.middleware())

Add this after your existing Bot/Dispatcher and before polling. Preserve existing routers, logging, .env and launch commands. Start the bot normally to register it. The bot and dashboard use the owner's shared directory by default; any explicit data_dir must match. Copyable AI integration task.

Includes status, action timelines, exact timestamps/outcomes/duration, existing logging/Loguru adapters, CPU/RSS history, launch profiles and process controls, bounded restarts, Russian/English UI, onboarding and configurable retention. The base dependency is psutil. Use [aiogram] only if aiogram is not already installed. The browser UI and local fonts are bundled in the Python package.

Downloads · Source development setup.

Early preview for one trusted owner. History starts at SDK integration. Bots sharing one Python process share resources and cannot stop independently. Desktop Python is installed separately. The Windows installer is currently unsigned.

Created by Дмитрий Варг. MIT license.

Metadata

Release files for telegram-bot-control 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for telegram-bot-control 0.8.0
File Size Uploaded Provenance Actions
telegram_bot_control-0.8.0.tar.gz 324.1 kB With provenance Details for telegram_bot_control-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for telegram-bot-control 0.8.0
File Interpreter ABI Platform Actions
telegram_bot_control-0.8.0-py3-none-any.whl Python 3 none any Details for telegram_bot_control-0.8.0-py3-none-any.whl

Total release size: 575.9 kB

Release files / telegram_bot_control-0.8.0.tar.gz

Download URL telegram_bot_control-0.8.0.tar.gz
Size 324.1 kB
Tags Source
SHA-256 checksum
How to use checksums
081006c5e855e54070c61d043d80e917e70d823d0b779e27c3f191a61231e9ae
BLAKE2b-256 checksum
How to use checksums
2f80517c50d7c1c5ab508b7fc901c8e36a182ddb57900d6e3e97c5931c96f434
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / telegram_bot_control-0.8.0-py3-none-any.whl

Download URL telegram_bot_control-0.8.0-py3-none-any.whl
Size 251.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
771be8e68047a684e40d48430e81f918b291f79e4df1aa6345a94cad9bfe1d6f
BLAKE2b-256 checksum
How to use checksums
f7b2166e157e024a75df6a01ffa2fa9625796cc9632cf77c7e0de0f40cf017ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Security for telegram-bot-control 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for telegram_bot_control-0.8.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page