A Telegram bot that manages the Tech Immigrants community with automated join approval, spam moderation, analytics, and cross-platform publishing.
- Smart join approval — Automatically assess and approve/decline join requests based on spam signals
- Anti-spam moderation — Detect and remove self-promotion, warn/mute/ban repeat offenders
- AI-assisted detection — Uses Claude for borderline cases where heuristics aren't enough
- Community analytics — trending topics, engagement tracking, weekly digests
- Cross-platform publishing — auto-post channel content to LinkedIn, X, Instagram
Talk to @BotFather on Telegram:
/newbot- Name:
Tech Immigrants Helper - Username:
TIHelperBot - Copy the token
cp .env.example .env
# Edit .env with your tokenspip install -r requirements.txt- Add
@TIHelperBotto your Telegram group - Promote it to admin with permissions:
- Delete messages
- Ban users
- Invite users (for approving join requests)
- Enable "Approve New Members" in group settings so join requests go through the bot
cd src
python main.pysrc/
├── main.py # Entry point, handler registration
├── config.py # Environment & settings
├── handlers/
│ ├── join_requests.py # Auto-approve/decline logic
│ ├── moderation.py # Spam detection & enforcement
│ └── admin_commands.py # /start, /stats, /approve_all
├── services/
│ └── spam_checker.py # Heuristic + AI spam assessment
└── models/ # DB models (Phase 2)
Designed for serverless (AWS Lambda + webhook) but runs in polling mode for development. See infra/ for deployment configs (coming soon).
Private — Tech Immigrants internal use.