How default-dark/ipinfo works
ipinfo is a small Telegram bot for looking up the sender’s public IP or querying details for a supplied IP. Both commands request JSON from ipinfo.io, format the returned network and location fields, and send the result back in Telegram. The README and sole source file support this compact map; no separate storage layer is present.
Main entry points: ipinfo.py Command handlers
Components 6
Telegram bot
- Command handlers
ipinfo.py - GeoIP prompt
ipinfo.py
IP lookup
- Result formatting
ipinfo.py
Other components
- Telegram user
- ipinfo.io API
- Telegram API
Connections 10
- Telegram user → Command handlers: sends commands
ipinfo.py - Command handlers → GeoIP prompt: requests IP
ipinfo.py - GeoIP prompt → Telegram user: prompts for address
ipinfo.py - Telegram user → Command handlers: submits address
ipinfo.py - Command handlers → ipinfo.io API: fetches IP data
ipinfo.py - ipinfo.io API → Result formatting: returns JSON
ipinfo.py - Command handlers → Result formatting: formats lookup
ipinfo.py - Result formatting → Telegram API: sends result
ipinfo.py - Telegram API → Telegram user: delivers messages
- Command handlers → Telegram API: polls updates
ipinfo.py