3 unstable releases
new 0.3.1 | Apr 7, 2024 |
---|---|
0.3.0 | Apr 7, 2024 |
0.2.0 | Jan 14, 2024 |
0.1.3 |
|
#262 in HTTP client
191 downloads per month
15KB
108 lines
VK Teams Bot API Cli
VK Teams Bot API terminal application.
Table of Contents
Environment
- Begin with bot API following instructions
- Set environment variables or save in
.env
file
# Unix-like
$ export VKTEAMS_VKTEAMS_BOT_API_TOKEN=<Your token here> #require
$ export VKTEAMS_BOT_API_URL=<Your base api url> #require
$ export VKTEAMS_PROXY=<Proxy> #optional
$ cargo install vkteams-bot-cli
# Windows
$ set VKTEAMS_VKTEAMS_BOT_API_TOKEN=<Your token here> #require
$ set VKTEAMS_BOT_API_URL=<Your base api url> #require
$ set VKTEAMS_PROXY=<Proxy> #optional
$ cargo install vkteams-bot-cli
Usage
# Help
$ vkteams-bot-cli --help
# Listen for events
$ vkteams-bot-cli get-events -l true | grep "ALARM"
# Send text
$ vkteams-bot-cli send-text -u "<USER_ID>" -m "text message"
# Send file
$ vkteams-bot-cli send-file -u "<USER_ID>" -f <FILE_PATH>
Dependencies
~13–28MB
~417K SLoC