
Other Telegram AI Chat Bot in Python — Ready to Launch
Important notice
Any third-party trademarks, brand names, and product names referenced on this website are used solely to identify the relevant goods/services and, where applicable, to indicate intended purpose or compatibility. No affiliation, authorization, sponsorship, or endorsement by the trademark owners is implied unless expressly stated.
🤖 Telegram AI Chat Bot in Python — ready to launch in 5 minutes!
A full-featured Telegram bot with support for any OpenAI-compatible API (ChatGPT, GLM, Llama, Nemotron, and others). Streaming responses, dialogue history, model selection — all included.
━━━ ✨ FEATURES ━━━
✅ Any OpenAI-compatible API — ChatGPT, GLM 5.2, Llama 3.3 70B, Nemotron 550B
✅ Streaming responses — text is typed as it is generated
✅ Dialogue history — each user has their own context (SQLite)
✅ Model selection — buttons to switch between models
✅ System prompt — configuring the bot's role (programmer, marketer, teacher)
✅ Temperature — creativity adjustment (0.0–2.0)
✅ Rate limiting — spam protection
✅ Markdown formatting of responses
✅ Logging — all requests in bot.log
━━━ 📦 WHAT YOU GET ━━━
1. bot.py — main bot code (500+ lines, clean Python)
2. requirements.txt — dependencies (openai, python-telegram-bot)
3. .env.example — configuration template
4. README.md — detailed installation guide (5 minutes)
5. LICENSE.txt — MIT license (can be resold)
6. tests/test_smoke.py — basic tests
━━━ 🚀 INSTALLATION IN 5 MINUTES ━━━
1. pip install -r requirements.txt
2. Create a bot in @BotFather → get the token
3. cp .env.example .env → enter the tokens
4. python bot.py
5. Send /start to the bot in Telegram — done!
━━━ 📋 COMMANDS ━━━
/start — restart (clears history)
/help — help
/model — model selection (buttons)
/models — list of available models from the API
/clear — clear dialogue history
/history — show recent messages
/temperature 0.7 — creativity adjustment (0.0–2.0)
/system You are a programmer — set the bot's role
━━━ 💡 USE CASES ━━━
• Chat assistant: ask questions about code, texts, ideas
• Teacher: learning English with error correction
• Marketer: generating a content plan for social media
• Programmer: code review, refactoring, debugging
• Support: automatic replies to customers
━━━ 🔧 TECHNICAL DETAILS ━━━
Libraries: pyt
Format: ZIP (Python code + guide). Instant delivery after payment.