get version from Cargo.toml
This commit is contained in:
@@ -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(())
|
||||
|
||||
Reference in New Issue
Block a user