How sxcsamina/ben works
Ben is a small Telegram bot: it polls for updates, replies to /start, and sends a randomly selected voice clip when a message starts with “ben”. It also exposes a health endpoint and can periodically ping its configured Render URL. The runtime is implemented in one file; the voice clips are repository assets. Relationships shown are supported by the excerpted ben.py; no other runtime modules are present.
Main entry points: ben.py Bot polling · hohoho.ogg Voice clips
Components 9
Other components
- Telegram user
- Telegram API
- Bot polling
ben.py - Start handler
ben.py - Voice handler
ben.py - Voice clips
voices/hohoho.ogg - Health endpoint
ben.py - Keep-alive task
ben.py - Render host
Connections 9
- Telegram user → Telegram API: sends messages
- Telegram API → Bot polling: delivers updates
ben.py - Bot polling → Start handler: dispatches /start
ben.py - Bot polling → Voice handler: dispatches matching text
ben.py - Start handler → Telegram API: sends reply
ben.py - Voice handler → Voice clips: selects clip
ben.py - Voice handler → Telegram API: sends voice
ben.py - Bot polling → Health endpoint: starts server
ben.py - Keep-alive task → Render host: pings URL
ben.py