Addition to format

This commit is contained in:
LasterAlex 2024-08-18 14:23:50 +03:00
parent 9d591ac3e6
commit 55c70579a6
No known key found for this signature in database

View file

@ -62,7 +62,7 @@ async fn main() {
|bot: Bot, msg: Message, cmd: GroupCommand| async move {
match cmd {
GroupCommand::Repeat { text } => {
bot.send_message(msg.chat.id, "You said: ".to_owned() + &text)
bot.send_message(msg.chat.id, format!("You said: {text}"))
.await?;
Ok(())
}