Telegram Bot Control
Русский
Панель мониторинга и управления существующими 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, он должен совпадать в обоих местах.
Работаете с ИИ? Скопируйте готовый промпт. Подробная инструкция первого запуска.
Возможности
- Состояние ботов, пользователи, сообщения, команды, кнопки и история ошибок.
- Свои события
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.
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.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| telegram_bot_control-0.7.0.tar.gz | 317.3 kB | With provenance | Details for telegram_bot_control-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| telegram_bot_control-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for telegram_bot_control-0.7.0-py3-none-any.whl |
Total release size: 566.1 kB
Release files / telegram_bot_control-0.7.0.tar.gz
| Download URL | telegram_bot_control-0.7.0.tar.gz |
|---|---|
| Size | 317.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b04044db8dcc56a0db55bcddf114bdcfc73c41d122930fa8d1da84591dbd532f
|
|
BLAKE2b-256 checksum How to use checksums |
61d0ba2abd579cdf9465c964dfdf9444af72f411f4390ed09f9bf167c2eadbfa
|
| 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 logRelease files / telegram_bot_control-0.7.0-py3-none-any.whl
| Download URL | telegram_bot_control-0.7.0-py3-none-any.whl |
|---|---|
| Size | 248.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36d839c8818068cd3bbba4dfd91399f11127620c764c5f5ccbf8536409cd13d6
|
|
BLAKE2b-256 checksum How to use checksums |
d65f455084953678bc972c87335ce3363602c8ec8e860a5293e9bdfc019561ee
|
| 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 logSecurity for telegram-bot-control 0.7.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.
Attestation for telegram_bot_control-0.7.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 logA 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.