HyperCore is a minimal Telegram core for userbot-first deployments with optional bot polling support. V0.3.0 is scoped to proving that the core boots, loads commands, persists sudo users, performs git-based updates, and restarts cleanly in a real Telegram environment.
- Python 3.11
- telethon
- python-telegram-bot
- Git
- Bash for
bash startup
Install the Telegram libraries before running the core.
pip install telethon python-telegram-botEdit the single root .env file.
Required:
API_IDAPI_HASH
Optional:
BOT_TOKENDATABASE_URLLOG_CHANNEL
Notes:
- Core engine values live in
hypercore/core/config.pyand are not controlled by.env. DATABASE_URLsupports SQLite paths in V0.3.0, for examplesqlite:///hypercore.db.- Logging is console-only in V0.3.0.
bash startupYou can also run the module directly.
python -m hypercore.ping.uptime.stats.addsudo <user_id>or reply with.addsudo.rmsudo <user_id>or reply with.rmsudo.vsudos.update -core.restart.shutdown
- The userbot is the primary runtime and determines the owner account.
- The bot runtime starts only when
BOT_TOKENis configured. - Updates use
git pull --ff-only. - Restart uses full process replacement through
python -m hypercore.