5 releases
Uses new Rust 2024
| 0.11.5 | Sep 7, 2025 |
|---|---|
| 0.11.2 | Jul 5, 2025 |
| 0.6.6 |
|
| 0.6.5 |
|
| 0.2.2 |
|
#125 in Machine learning
2,935 downloads per month
Used in 3 crates
530KB
12K
SLoC
VK Teams Bot API client
Table of Contents
Environment
There are two ways to initialize the bot:
Option 1: Using Environment Variables (Default)
-
Begin with bot API following instructions
-
Set environment variables or save in
.envfile
# 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
- Put lines in you
Cargo.tomlfile
[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
Dependencies
~16–45MB
~638K SLoC