Your AI-powered Telegram Bot with superpowers! 🤖✨
- 💬 Natural conversations that feel human
- 🎯 Smart context handling
- 🎨 Beautiful rich media responses
- 🎠 Swipeable carousels
- 🔘 Interactive buttons
- 🖼️ Image cards that pop!
- 🔄 State-of-the-art session management
- 📊 Built-in analytics
- 🔒 Security first approach
- 📝 Comprehensive logging
- ⚡ Lightning-fast responses
# Clone this beauty
git clone https://github.com/yourusername/voiceflow-telegram-bot.git
cd voiceflow-telegram-bot
# Set up your secret sauce
cp .env.example .env
# Edit .env with your magical tokens ✨
# Launch into orbit! 🚀
docker compose up -d# Install dependencies
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
# Launch!
python main.py- Python 3.11+
- Telegram Bot Token (Get it from @BotFather)
- Voiceflow API Key
- Redis (optional, for scaling)
TELEGRAM_BOT_TOKEN=your_bot_token
VOICEFLOW_API_KEY=your_api_key
VOICEFLOW_PROJECT_ID=your_project_id
REDIS_URL=redis://localhost:6379 # Optional
LOG_LEVEL=INFO/start- Wake up the bot/clear- Fresh start/stats- See your chat stats
- 🎯
main.py- The conductor - 🎭
telegram_handler.py- Message maestro - 🔌
voiceflow_client.py- AI whisperer - 💾
session_manager.py- Memory keeper - 📊
analytics.py- Number cruncher
# 🔘 Buttons
buttons = ["Products 🛍️", "Support 🤝", "Track Order 📦"]
# 🖼️ Image Cards
card = {
"image": "product.jpg",
"title": "✨ New Release!",
"description": "Check this out..."
}
# 🎠 Carousel
carousel = [
{"title": "Item 1 🎁", "image": "item1.jpg"},
{"title": "Item 2 🎉", "image": "item2.jpg"}
]- 🌩️ Ready for Render
- 🐳 Docker optimized
- 🔄 Auto-scaling ready
- ⚡ Response time < 100ms
- 🔄 99.9% uptime
- 🎯 Error rate < 0.1%
Got ideas? We love them! Check out our contributing guidelines.
MIT - Go wild! 🎉
If this bot makes you smile, give us a star! ⭐
- 🐛 Found a bug? [Report it]
Made with ❤️ by developers for developers