How machine1337/telegramrat works
TelegramRAT is a single-file Python remote-control client: it polls Telegram for messages, dispatches each message to a command handler, and sends results or files back through the bot. The handler also exposes host information, location lookup, screenshots, file transfer, URL downloads, and shell commands. The diagram reflects the inspected client.py; it does not establish safeguards or behavior beyond that source.
Main entry points: client.py Command Handler
Components 11
Telegram Polling
- Polling Loop
client.py - Update Polling
client.py - Message Sender
client.py
Command Dispatch
- Update Handler
client.py - Command Handler
client.py
Host Capabilities
- Location Lookup
client.py - URL Download
client.py - File Transfer
client.py
Other components
- Bot Operator
- Telegram API
- Host Environment
Connections 17
- Bot Operator → Telegram API: sends commands
README.md - Polling Loop → Update Polling: polls updates
client.py - Update Polling → Telegram API: requests updates
client.py - Telegram API → Update Polling: returns updates
client.py - Polling Loop → Update Handler: passes updates
client.py - Update Handler → Telegram API: deletes messages
client.py - Update Handler → Command Handler: dispatches text
client.py - Command Handler → Host Environment: runs host actions
client.py - Command Handler → Location Lookup: looks up location
client.py - Location Lookup → Telegram API: queries services
client.py - Command Handler → URL Download: downloads URL
client.py - URL Download → Host Environment: writes file
client.py - Command Handler → File Transfer: sends requested file
client.py - File Transfer → Telegram API: uploads document
client.py - Command Handler → Message Sender: returns result
client.py - Message Sender → Telegram API: sends response
client.py - Telegram API → Bot Operator: delivers response
README.md