A Telegram bot for interacting with the ANY.RUN sandbox service. Submit files and URLs for analysis, retrieve results, and manage your ANY.RUN API access - all through Telegram.
- File and URL analysis submission
- Real-time analysis status monitoring
- Detailed analysis reports with threat verdicts
- Automatic language detection
- Cross-platform support (Windows, Linux, MacOS)
- Secure API key management
- Database-backed task tracking
- Python 3.10 or higher
- ANY.RUN API key
- Telegram Bot Token
- Clone the repository:
git clone https://github.com/bykovk-pro/anyrun-tg-bot.git
cd anyrun-tg-bot
- Create and activate virtual environment:
python -m venv venv
source venv/bin/activate # Linux/MacOS
# or
venv\Scripts\activate # Windows
- Install the package:
pip install .
- Create
.env
file in the project root:
TELEGRAM_TOKEN=your_telegram_bot_token
TELEGRAM_ADMIN_ID=your_telegram_id
- Start the bot:
python -m src.main
- Start a chat with your bot on Telegram
- Use
/start
to initialize your account - Set your ANY.RUN API key using
/apikey
- Send files or URLs for analysis
- Use
/getreport
to retrieve analysis results by UUID
/start
- Initialize bot/help
- Show help information/apikey
- Set or update API key/getreport
- Get report by UUID
- Secure API key storage
- User access control
- Request rate limiting
- Input validation
- Error handling
anyrun-tg-bot/
├── src/
│ ├── api/ # API interaction
│ ├── db/ # Database operations
│ └── lang/ # Localization
├── tests/ # Test suite
└── docs/ # Documentation
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Bot Issues: Report a bug
- ANY.RUN Support: Contact support
- ANY.RUN API: Read API documentation
- ANY.RUN for their excellent sandbox service
- python-telegram-bot team