A feature-rich Telegram bot leveraging OpenAI's API to provide:
- 🖼️ Text-to-ImageGeneration (DALL-E 3)
- 💬 Smart Q&A (GPT-4)
- 🎥 Simple Video Creation (Image sequences)
Command | Description | Example |
---|---|---|
/start |
Show welcome message | |
/image <prompt> |
Generate AI artwork | /image cyberpunk cat |
/ask <question> |
Get expert answers | /ask Explain quantum physics simply |
/video <prompt> |
Create 5-second video | /video sunset over mountains |
- Python 3.11+
- Docker (optional)
- Telegram Bot Token
- OpenAI API Key
git clone https://github.com/ayazayyub/telegram-chatbot.git
cd telegram-chatbot
# Install dependencies
pip install -r requirements.txt
# Set environment variables
export TELEGRAM_TOKEN="your_bot_token"
export OPENAI_API_KEY="your_openai_key"
# Run the bot
python __main__.py