Socket
Socket
Sign inDemoInstall

anyrun-tg-bot

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anyrun-tg-bot

A Telegram bot for interacting with the ANY.RUN API


Maintainers
1

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

  1. Clone the repository:

    git clone https://github.com/bykovk-pro/ANY.RUN-for-Telegram.git
    cd ANY.RUN-for-Telegram
    
  2. Create a virtual environment (recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
    
  3. Install the bot:

    pip install .
    

Configuration

  1. 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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc