mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Addition to format
This commit is contained in:
parent
9d591ac3e6
commit
55c70579a6
1 changed files with 1 additions and 1 deletions
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue