This commit is contained in:
2023-05-06 23:07:09 +02:00
parent cc7165eadd
commit 3802ac0c1f
5 changed files with 12 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
use teloxide::prelude::*;
use teloxide::{prelude::*, adaptors::Throttle};
use std::error::Error;
@@ -10,7 +10,7 @@ pub mod utils;
pub async fn message_handler(
message: Message,
bot: Bot,
bot: Throttle<Bot>,
) -> Result<(), Box<dyn Error + Send + Sync>> {
let from_user = message.from().unwrap();
let text = message.text().unwrap_or("");