This commit is contained in:
2023-05-19 01:35:12 +02:00
parent 38bd097b35
commit 5acf9b8e1d
9 changed files with 92 additions and 238 deletions

View File

@@ -23,12 +23,10 @@ pub async fn message_handler(
register::RegisterStatus::RegisterFail => strings::ALREADY_REGISTERED.to_string(),
};
#[allow(unused_must_use)]
{
bot.send_message(message.chat.id, message_text)
.reply_to_message_id(message.id)
.await;
}
bot.send_message(message.chat.id, message_text)
.reply_to_message_id(message.id)
.await?;
Ok(())
}