How kemel49/prothombot1 works
Prothombot1 is a Telegram bot that turns an X/Twitter status URL into Wikipedia’s {{Cite tweet}} template. Its workflow polls Telegram updates, handles help commands or converts submitted URLs by parsing the status ID, fetching tweet text from the Twitter API, formatting the citation, and replying to the chat. The single source file contains the whole runtime; no persistence layer is shown. Edges reflect calls visible in main.py and API usage documented in the README.
Main entry points: main.py Polling and routing
Components 9
Telegram interaction
- Polling and routing
main.py - Update retrieval
main.py - Chat reply
main.py
Citation conversion
- URL parsing
main.py - Tweet retrieval
main.py - Citation formatting
main.py
Other components
- Telegram user
- Telegram Bot API
- Twitter API
Connections 10
- Telegram user → Telegram Bot API: submits URL
README.md - Telegram Bot API → Update retrieval: delivers updates
main.py - Polling and routing → Update retrieval: polls
main.py - Polling and routing → URL parsing: routes text
main.py - URL parsing → Tweet retrieval: requests text
main.py - Tweet retrieval → Twitter API: fetches tweet
main.py - URL parsing → Citation formatting: formats citation
main.py - Polling and routing → Chat reply: sends result
main.py - Chat reply → Telegram Bot API: posts message
main.py - Telegram Bot API → Telegram user: delivers reply
README.md