From 7903e2baf493936949f7bb7c36235a6be3c09224 Mon Sep 17 00:00:00 2001
From: Guillermo Roche <groche97@gmail.com>
Date: Sun, 11 May 2025 22:04:51 +0200
Subject: [PATCH] get version from Cargo.toml

---
 Cargo.lock |   2 +-
 Cargo.toml |   3 +--
 polesDB    | Bin 20480 -> 20480 bytes
 src/lib.rs |   5 ++++-
 4 files changed, 6 insertions(+), 4 deletions(-)

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 c6ab94872a56fb28c6473b272220a1dd8530d86a..74e639476c2b2c55fe118db50c03a8081d2eecc0 100644
GIT binary patch
delta 79
zcmZozz}T>Wae_1>-$WT_M!t;+QSyvDn|I5*2ne(CGB7Z(@*6YoU*})P-^w4uZ@gJh
jK#^Zaos~^dQ<jmz$iT={*T7WQ&}i}jdx_1l_KO7o+{zLQ

delta 54
zcmZozz}T>Wae_1>&qNt#MxKocQSywOn|I5*2ne$9GB7Z(@W(LlU*})P-^w4eSx~@-
Ke{+oe5&-~y?hVlZ

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(())