get version from Cargo.toml

This commit is contained in:
2025-05-11 22:04:51 +02:00
parent 87ad83f473
commit 7903e2baf4
4 changed files with 6 additions and 4 deletions

View File

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