vkteams-bot 0.11.5

High-performance VK Teams Bot API toolkit with CLI and MCP server support
Documentation

VK Teams Bot API client

docs.rs crates.io codecov Unsafe forbidden

Table of Contents

Environment

There are two ways to initialize the bot:

Option 1: Using Environment Variables (Default)

  1. Begin with bot API following instructions

  2. Set environment variables or save in .env file

# Unix-like
$ export VKTEAMS_BOT_API_TOKEN=<Your token here> #require
$ export VKTEAMS_BOT_API_URL=<Your base api url> #require
$ export VKTEAMS_BOT_CONFIG=<Your bot config path> #optional
$ export VKTEAMS_PROXY=<Proxy> #optional

# Windows
$ set VKTEAMS_BOT_API_TOKEN=<Your token here> #require
$ set VKTEAMS_BOT_API_URL=<Your base api url> #require
$ set VKTEAMS_BOT_CONFIG=<Your bot config path> #optional
$ set VKTEAMS_PROXY=<Proxy> #optional
  1. Put lines in you Cargo.toml file
[dependencies]
vkteams_bot = { version = "0.9", features = ["full"] }

Option 2: Direct Parameter Passing

Alternatively, you can create the bot by directly passing parameters:

let bot = Bot::with_default_version(
    "your_bot_token".to_string(),
    "https://api.example.com".to_string()
)?;

Usage examples

Examples: