Telegram Bot Setup Guide
Configure and manage the TuitionSG Telegram integration
1Environment Variables
⚠️ Secret names must be prefixed with VITE_ to be accessible in the frontend:
- VITE_TELEGRAM_BOT_TOKEN
- VITE_TELEGRAM_CHANNEL_ID
- VITE_BOT_USERNAME
Add these in Base44 → Dashboard → Secrets. The bot token comes from BotFather. Channel ID is the @username (e.g. @tuitionsgteachers).
The Admin Chat ID can be set directly on this page below — no secret needed.
★Set Up Private Admin Notifications
Get instant private Telegram messages for every key event: new tuition requests, new tutor registrations, phone leads captured, and tutor applications.
1. Open Telegram and message @userinfobot
2. It will reply with your numeric chat ID (e.g. 123456789)
3. Copy that number and paste it below:
2Register Webhook with Telegram
This tells Telegram to send all bot messages to your website. Run this once after setup.
3Add Bot to Channel
- Open your Telegram channel: @tuitionsgteachers
- Go to channel settings → Administrators
- Add @TuitionSG_1bot as an administrator
- Enable the "Post Messages" permission
- Set VITE_TELEGRAM_CHANNEL_ID =
@tuitionsgteachersin Base44 Secrets
4Test Channel Post
5Share Bot with Tutors
Share this link so tutors can subscribe to assignment alerts:
6Subscriber Statistics
0
Total Subscribers
0
Active
0
Paused
0
Inactive
Broadcast Message
Send an announcement to all active subscribers (0 tutors).