CHATBOT
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
index.ts
https://fevy--171cfa8c3fb411f080a776b3cceeab13.web.val.run
A comprehensive Telegram bot for Fevyfashionhub fashion school that helps students with inquiries and provides a public chat room for discussions about courses and fees.
- Student Inquiries: Handle questions about courses, fees, and enrollment
- Course Information: Detailed information about different fashion programs
- Fee Structure: Transparent pricing for all courses
- Public Chat Room: Community space for students to discuss and interact
- Admin Panel: Manage courses, fees, and moderate discussions
- Create a Telegram bot via @BotFather
- Get your bot token and add it to environment variables as
TELEGRAM_BOT_TOKEN
- Set up the webhook by visiting your bot's webhook URL
- Configure admin users by setting
TELEGRAM_ADMIN_IDS
(comma-separated user IDs)
TELEGRAM_BOT_TOKEN
: Your Telegram bot token from BotFatherTELEGRAM_ADMIN_IDS
: Comma-separated list of admin user IDs (optional)
/start
- Welcome message and main menu/courses
- View available courses/fees
- View fee structure/contact
- Contact information/help
- Help and support/admin
- Admin panel (admin only)
├── backend/
│ ├── bot/
│ │ ├── handlers.ts # Bot command handlers
│ │ ├── keyboards.ts # Inline keyboards
│ │ └── messages.ts # Message templates
│ ├── database/
│ │ ├── migrations.ts # Database schema
│ │ └── queries.ts # Database operations
│ └── index.ts # Main bot entry point
├── shared/
│ └── types.ts # Shared TypeScript types
└── README.md
Students can interact with the bot to:
- Get information about fashion courses
- View fee structures
- Ask questions about enrollment
- Participate in community discussions
- Contact the school directly