vkteams-bot-cli

Crates.iovkteams-bot-cli
lib.rsvkteams-bot-cli
version0.5.4
sourcesrc
created_at2023-12-22 18:31:05.047976
updated_at2024-07-19 22:01:18.918178
descriptionVK Teams Bot API CLI
homepage
repositoryhttps://github.com/bug-ops/vkteams-bot-cli/tree/master
max_upload_size
id1078578
size57,987
Andrei G (bug-ops)

documentation

README

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
Commit count: 0

cargo fmt