• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
fevy

fevy

CHATBOT

Public
Like
CHATBOT
Home
Code
4
backend
3
shared
1
README.md
SETUP_GUIDE.md
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
SETUP_GUIDE.md
Code
/
SETUP_GUIDE.md
Search
6/2/2025
SETUP_GUIDE.md

Fevyfashionhub Telegram Bot Setup Guide

πŸš€ Quick Setup Instructions

Step 1: Create Your Telegram Bot

  1. Open Telegram and search for @BotFather
  2. Start a conversation and send /newbot
  3. Choose a name for your bot (e.g., "Fevyfashionhub Assistant")
  4. Choose a username (e.g., "fevyfashionhub_bot")
  5. Copy the bot token that BotFather provides

Step 2: Configure Environment Variables

In your Val Town environment, set these variables:

  1. TELEGRAM_BOT_TOKEN: Your bot token from BotFather

    1234567890:ABCdefGHIjklMNOpqrSTUvwxYZ1234567890
    
  2. TELEGRAM_ADMIN_IDS (Optional): Comma-separated admin user IDs

    123456789,987654321
    

To get your Telegram user ID:

  • Message @userinfobot on Telegram
  • It will reply with your user ID

Step 3: Set Up the Webhook

  1. Visit your bot's setup webhook URL:

    https://your-val-url.web.val.run/setup-webhook
    
  2. You should see a success message confirming the webhook is set

Step 4: Test Your Bot

  1. Find your bot on Telegram using the username you created
  2. Send /start to begin interacting with the bot
  3. Test the various features:
    • View courses
    • Check fees
    • Ask questions
    • Join chat room

πŸ”§ Bot Features

For Students:

  • Course Information: Browse available fashion courses by category
  • Fee Structure: View transparent pricing for all programs
  • Ask Questions: Submit inquiries about courses, enrollment, fees, etc.
  • Chat Room: Community space to discuss with other students
  • Contact Information: Get school contact details

For Admins:

  • Statistics: View student count and inquiry stats
  • Manage Inquiries: See and respond to pending student questions
  • Student Management: View list of active students
  • Chat Moderation: Monitor community discussions

πŸ“± Bot Commands

  • /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)

πŸ›  Customization

Update Course Information

Courses are stored in the database. To modify them:

  1. Edit the insertDefaultCourses() function in /backend/database/migrations.ts
  2. Change the table name (e.g., add _2 to create a fresh table)
  3. Redeploy and visit /init-db to update

Update Contact Information

Edit the contact details in /backend/bot/messages.ts in the contactMessage variable.

Add New Features

The bot is modular and easy to extend:

  • Add new keyboards in /backend/bot/keyboards.ts
  • Add new message templates in /backend/bot/messages.ts
  • Add new handlers in /backend/bot/handlers.ts

πŸ” Monitoring & Debugging

Check Bot Status

GET /

View Webhook Info

GET /webhook-info

View Bot Info

GET /bot-info

Test Environment

GET /test

πŸ“ž Support

If you need help with setup or customization:

  1. Check the logs in Val Town for any error messages
  2. Test individual endpoints to isolate issues
  3. Verify environment variables are set correctly
  4. Ensure webhook is properly configured

🎯 Next Steps

  1. Customize Content: Update course information, fees, and contact details
  2. Brand Styling: Customize messages and emojis to match your brand
  3. Add Features: Consider adding payment integration, scheduling, etc.
  4. Promote: Share your bot with students and on social media

Your Fevyfashionhub Telegram bot is ready to help students learn about your fashion school! πŸŽ“βœ¨

FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
Β© 2026 Val Town, Inc.