chore(rewrite-v2): Ground-up rewrite of Python Italy Telegram Bot ("Electus")#41
Closed
Copilot wants to merge 1 commit intorewrite-v2from
Closed
chore(rewrite-v2): Ground-up rewrite of Python Italy Telegram Bot ("Electus")#41Copilot wants to merge 1 commit intorewrite-v2from
Copilot wants to merge 1 commit intorewrite-v2from
Conversation
Copilot
AI
changed the title
[WIP] Remove existing Telegram bot codebase for rewrite
chore(rewrite-v2): Ground-up rewrite of Python Italy Telegram Bot ("Electus")
Feb 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Complete replacement of the legacy fork-based codebase with a clean Python 3.14/uv rewrite. Named Electus (Matrix × Python theme), Italian-first UX.
Core architecture
src/python_italy_bot/— single installable package viapyproject.tomlRepository(sync) /AsyncRepository(async) abstract interfaces indb/base.py; in-memory default, asyncpg PostgreSQL whenDATABASE_URLis setservices/Features
assets/regolamento.md→ bot unrestricts; globally-verified users skip captcha in subsequent chats/ban,/unban,/mute,/unmute,/report,@adminmention; global ban propagated across all registered chats/setwelcome//resetwelcome/announcebroadcast to all registered chats,/pinghealth check/id— returns chat ID + caller user IDPersistence
8 PostgreSQL tables (
schema.sql):pending_verifications,verified_users,bans,mutes,reports,group_settings,globally_verified_users,bot_chats,global_bans. Zero-config in-memory backend requires no schema.Configuration
All settings via env vars;
.env.exampleprovided. Key vars:TELEGRAM_BOT_TOKEN,DATABASE_URL,CAPTCHA_SECRET_COMMAND,BOT_OWNER_ID,MAIN_GROUP_ID,LOCAL_GROUP_IDS,RULES_URL.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.