botway-rs

Rust client package for Botway


Crates.io

## Installation - `Cargo.toml` ```toml [dependencies] botway-rs = "0.2.2" ``` - `CLI` ``` cargo add botway-rs ``` ## Usage > after creating a new rust botway project, you need to use your tokens to connect with your bot. ```rust use teloxide::{prelude::*, utils::command::BotCommands}; use std::error::Error; use botway_rs::get; #[tokio::main] async fn main() { pretty_env_logger::init(); log::info!("Starting command bot..."); let bot = Bot::new(get("token")); teloxide::commands_repl(bot, answer, Command::ty()).await; } ... ```