3 releases

0.5.4 Jul 19, 2024
0.5.3 Jul 14, 2024
0.5.2 Jun 30, 2024
0.4.0 May 12, 2024
0.1.3 Dec 29, 2023

#53 in HTTP client

Download history 71/week @ 2024-07-23 3/week @ 2024-07-30 10/week @ 2024-09-10 3/week @ 2024-09-17 17/week @ 2024-09-24 20/week @ 2024-10-01

828 downloads per month

MIT license

17KB
170 lines

VK Teams Bot API Cli

VK Teams Bot API terminal application.

Table of Contents

Environment

  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_PROXY=<Proxy> #optional

$ cargo install vkteams-bot-cli

# Windows
$ set VKTEAMS_BOT_API_TOKEN=<Your token here> #require
$ set VKTEAMS_BOT_API_URL=<Your base api url> #require
$ set VKTEAMS_PROXY=<Proxy> #optional

# Build from source
$ 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>
# Download file
$ vkteams-bot-cli get-file -i <FILE_ID> -f <FILE_PATH>

Commands

Command Description
get-events Listen for events (long polling)
send-text Send text message
send-file Send file to chat
get-file Download file from API

Dependencies

~11–24MB
~331K SLoC