A Telegram bot for interacting with the ANY.RUN API
Project description
ANY.RUN for Telegram
This Telegram bot provides a user-friendly interface to interact with the ANY.RUN API. It allows users to submit files and URLs for analysis, retrieve analysis results, and perform various operations with the ANY.RUN service directly through Telegram.
Key Features
- Submit files and URLs for analysis in ANY.RUN Sandbox
- Retrieve analysis results and reports
- Check the status of ongoing analyses
- Manage API keys within the Telegram interface
- Automatic language detection and support
- Flexible logging system with adjustable log levels
- Asynchronous database operations for improved performance
- Secure database backup with password protection
- Admin panel for user management and system operations
Getting Started
Follow these instructions to set up and run the bot.
Installation
-
Clone the repository:
git clone https://github.com/bykovk-pro/ANY.RUN-for-Telegram.git cd ANY.RUN-for-Telegram
-
Create a virtual environment (recommended):
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the bot:
pip install .
Configuration
-
Set up the environment variables:
Create a
.env
file in the project root with the following content:TELEGRAM_TOKEN=<your_telegram_token> TELEGRAM_ADMIN_ID=<your_telegram_admin_id> REQUIRED_GROUP_IDS=<comma_separated_group_ids> LOG_LEVEL=<your_log_level> TELEGRAM_LOG_LEVEL=<your_telegram_log_level> SQLITE_LOG_LEVEL=<your_sqlite_log_level> DB_PASSWORD=<your_backup_password>
Replace the placeholder values with your actual values.
Running the Bot
To run the bot, use the following command:
anyrun-tg-bot start
The bot will start and run in the foreground. For production use, consider using a process manager to run the bot as a background service.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file anyrun_tg_bot-0.6.4.tar.gz
.
File metadata
- Download URL: anyrun_tg_bot-0.6.4.tar.gz
- Upload date:
- Size: 24.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98c0408ef935d97e35a0ba74b773660374a485f4418106ec146b471540300499 |
|
MD5 | 7aed5a7db0c2ccaca19cc2518c8afb1a |
|
BLAKE2b-256 | 207c6e2cc47c3bff4e484f99dabe450a81e85d59f73aad437bb5577adb62c1d9 |
File details
Details for the file anyrun_tg_bot-0.6.4-py3-none-any.whl
.
File metadata
- Download URL: anyrun_tg_bot-0.6.4-py3-none-any.whl
- Upload date:
- Size: 35.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c76b57cdd3056357ef10ffbb34d362eb94a3459f7658f8816cc9dbcff7b1e4c |
|
MD5 | fdc52a53d6a8c9949fe5d55eb6213e63 |
|
BLAKE2b-256 | 06f6f5047df1062d91b91a29f19c7de5689789d3fba5741ed062bd6f7d28bc04 |