safe-vk
This is a simple library for creating your own VK bot in Rust 🦀
Current State
- Has only
replyfunction to send a message into conversation commandfunction is for listening a command and it's in its initial stage and will be enhanced- Only Long Poll is supported right now
- Also has
watchfunction that will be triggered each callback from VK - But these functions are enough to create a simple bot
Overview
- Works with API version 5.199
- uses threads for more fast reply
- has serde_json, tokio and reqwest under the hood
- API is similar to
axumcrate
Installation
Example
use SafeVkBot;
const GROUP_ID: u32 = YOUR GROUP ID HERE;
const TOKEN: &'static str = "YOUR TOKEN HERE"
// You can define your custom structure for custom requests
// Replying to command
async
// Monitoring all incoming changes and do some funny stuff
async
// Monitoring all incoming changes and also sends a custom request
async
async
License
MIT