Upgrading from Beta to v1.0.0 (Major Release)
If you're upgrading from an earlier beta version, there are important breaking changes that require environment configuration updates. This guide will help you migrate smoothly to the stable major release.
ADMIN_USERS- Telegram user IDs for bot administration (CRITICAL)
COMPANY_NAMEβMY_COMPANY_NAME(renamed)- Enhanced validation prevents placeholder values
Before starting the migration, gather these details:
-
Get Your Telegram User ID (NEW REQUIREMENT)
- Message @userinfobot on Telegram
- Copy your numeric user ID (e.g.,
123456789) - CRITICAL: Without this, you cannot configure bot groups!
-
Get Your Bot Username (OPTIONAL - Performance Boost)
- Check your bot's profile or @BotFather settings
- Copy the username without @ symbol (e.g.,
mycompanybot) - BENEFIT: Eliminates 200+ API calls, makes deep links instant
-
Backup Current Configuration
# Backup your current .env file cp .env .env.backup
Add these required variables to your existing .env file:
# π¨ CRITICAL - Add this NEW REQUIRED variable:
ADMIN_USERS=123456789,987654321 # Your Telegram user ID(s) from @userinfobot
# π OPTIONAL - Performance optimization:
BOT_USERNAME=your_bot_username # Your bot's username (without @)
# π RENAME - Update existing variable:
MY_COMPANY_NAME=Your Company Name # Was previously COMPANY_NAME
# β¨ NEW OPTIONAL - Email domain configuration:
DUMMY_EMAIL_DOMAIN=telegram.user # Default email domain for auto-generated emails# Remove this old variable (now renamed):
# COMPANY_NAME=... # Remove this lineThe new version includes enhanced validation. Ensure no placeholder values remain:
# β These will be REJECTED:
TELEGRAM_BOT_TOKEN=your_telegram_bot_token_here
ADMIN_USERS=your_telegram_user_id_here
MY_COMPANY_NAME=your_company_name_here
# β
Use actual values:
TELEGRAM_BOT_TOKEN=1234567890:ABCdefGHIjklMNOpqrsTUVwxyz
ADMIN_USERS=123456789,987654321
MY_COMPANY_NAME=Acme Corporation# Ensure Redis services are running:
PLATFORM_REDIS_URL=redis://redis-platform:6379
WEBHOOK_REDIS_URL=redis://redis-webhook:6379
# Update docker-compose if needed
docker-compose down
docker-compose up -d# Update Railway environment variables:
ADMIN_USERS=123456789,987654321
BOT_USERNAME=your_bot_username
MY_COMPANY_NAME=Your Company Name
PLATFORM_REDIS_URL="redis://redis-platform:6379" # For BotsStore
WEBHOOK_REDIS_URL="redis://redis-webhook:6379" # For webhook consumer# Check if bot starts without errors:
bun run start
# Look for these success messages:
# β
Environment configuration validated successfully
# β
Configured 1 bot administrator(s)
# π Running in production mode- Start a private chat with your bot
- Send
/activatecommand - Should receive: "β Admin privileges activated!"
- Add bot to a test group
- Run
/setupcommand in the group - Complete setup in private DM
- Create a test ticket with
/support - Verify email collection works
- Check agent response delivery
Error: Missing required environment variables: ADMIN_USERSSolution: Add your Telegram user ID to ADMIN_USERS
Error: ADMIN_USERS contains placeholder valuesSolution: Replace with actual numeric user IDs
Error: Redis connection failedSolution: Ensure Redis is running and both URLs are configured correctly
Error: Insufficient permissionsSolution: Use /activate command in private chat first
If migration fails, you can quickly rollback:
# Restore backup configuration:
cp .env.backup .env
# Or use git to revert to previous version:
# List available version tags:
git tag --list
# Then checkout your previous version, e.g.:
git checkout v0.9.xOnce successfully migrated, you'll have access to:
- π‘οΈ Enhanced Security: Admin-only bot configuration
- β‘ Performance Boost: 200x faster with BOT_USERNAME
- π§ Email Management: User email preferences with
/viewemailand/setemail - π¨ Template System: Customizable message templates
- π Advanced Logging: Enterprise-grade logging with PII redaction
If you encounter issues during migration:
- Check Common Issues section above
- Review the logs with
LOG_LEVEL=debug - Join our community: GitHub Discussions
- Create an issue: Report a Bug
π» Migration Guide by WG Technology Labs π