How thrishok/telegram-bot works
This is a small Telegram chatbot: Telegram sends text to a FastAPI webhook, which passes it through a prompt, Groq-backed language model, and string parser, then sends the reply through Telegram’s API. The same module exposes a health check. All runtime behavior is in telegram_bot.py; the graph reflects its visible calls and chain composition.
Main entry points: telegram_bot.py Webhook handler
Components 8
Other components
- Telegram user
- Telegram API
- Webhook handler
telegram_bot.py - Chat prompt
telegram_bot.py - Groq model
telegram_bot.py - String parser
telegram_bot.py - Reply sender
telegram_bot.py - Health check
telegram_bot.py
Connections 6
- Telegram user → Webhook handler: sends text
- Webhook handler → Chat prompt: invokes chain
telegram_bot.py - Chat prompt → Groq model: formats input
telegram_bot.py - Groq model → String parser: parses output
telegram_bot.py - Webhook handler → Reply sender: sends reply
telegram_bot.py - Reply sender → Telegram API: posts message
telegram_bot.py