diff --git a/Cargo.lock b/Cargo.lock index a41f9a7..4cbacb7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1145,7 +1145,7 @@ dependencies = [ [[package]] name = "mini_admin_bot" -version = "0.1.0" +version = "0.2.5" dependencies = [ "anyhow", "chrono", diff --git a/Cargo.toml b/Cargo.toml index ddf942d..ea38697 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,9 @@ [package] name = "mini_admin_bot" -version = "0.1.0" +version = "0.2.5" edition = "2018" [dependencies] -#teloxide = { version = "0.11.3", features = ["macros", "auto-send"] } teloxide = { version = "0.12", features = ["macros", "auto-send"] } futures = "0.3.5" log = "0.4" diff --git a/polesDB b/polesDB index c6ab948..74e6394 100644 Binary files a/polesDB and b/polesDB differ diff --git a/src/lib.rs b/src/lib.rs index 7fe3592..2d12800 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -119,7 +119,10 @@ async fn answer(bot: Bot, msg: Message, command: Command) -> anyhow::Result<()> ) .await? } - Command::Version => bot.send_message(msg.chat.id, "0.2.5").await?, + Command::Version => { + bot.send_message(msg.chat.id, env!("CARGO_PKG_VERSION")) + .await? + } }; Ok(())