https://github.com/bug-ops/vkteams-bot
VK Teams Bot API Client
https://github.com/bug-ops/vkteams-bot
api bot rust vkteams
Last synced: about 1 year ago
JSON representation
VK Teams Bot API Client
- Host: GitHub
- URL: https://github.com/bug-ops/vkteams-bot
- Owner: bug-ops
- License: mit
- Created: 2023-12-10T11:16:16.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-01-08T17:58:07.000Z (over 1 year ago)
- Last Synced: 2025-03-24T16:46:07.396Z (about 1 year ago)
- Topics: api, bot, rust, vkteams
- Language: Rust
- Homepage: https://docs.rs/vkteams-bot/latest
- Size: 161 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# VK Teams Bot API client
VK Teams Bot API client written in Rust.
## Table of Contents
- [Environment](#environment)
- [Usage](#usage-examples)
## Environment
1. Begin with bot API following [instructions](https://teams.vk.com/botapi/?lang=en)
2. Set environment variables or save in `.env` file
```bash
# Unix-like
$ export VKTEAMS_BOT_API_TOKEN= #require
$ export VKTEAMS_BOT_API_URL= #require
$ export VKTEAMS_PROXY= #optional
# Windows
$ set VKTEAMS_BOT_API_TOKEN= #require
$ set VKTEAMS_BOT_API_URL= #require
$ set VKTEAMS_PROXY= #optional
```
3. Put lines in you `Cargo.toml` file
```toml
[dependencies]
vkteams_bot = { version = "0.6", feature = ["full"] }
log = "0.4"
```
## Usage examples
[Examples:](examples)
- [new message](examples/new_message.rs)
- [new message / edit message](examples/emul_chat_gpt.rs)
- [event listener](examples/event_listener.rs)
- [answer callback query](examples/callback_query.rs)
- [chat - get info](examples/chat_get_info.rs)
- [chat admin - avatar set](examples/chat_admin_avatar_set.rs)
- [chat - download files](examples/chat_get_file.rs)
- [bot - webhook handler](examples/prometheus_webhook.rs)