refactor: some refactor

This commit is contained in:
doryan 2024-08-31 23:41:18 +04:00
parent 9029d4397a
commit d5c0df353c
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ pub async fn dice_handler(bot: Bot, message: Message) -> HandlerResult {
let (chat_id, dice): (i64, Dice) = (message.chat().id(), message.dice().unwrap().clone()); let (chat_id, dice): (i64, Dice) = (message.chat().id(), message.dice().unwrap().clone());
let sender = MessageSender::builder(chat_id); let sender = MessageSender::builder(chat_id);
let mut handler_entity = HandlerEntity::new(bot, message, sender); let handler_entity = HandlerEntity::new(bot, message, sender);
let (mute_time, emoji): (TimeMetrics, &str) = (TimeMetrics::Days(dice.value), &dice.emoji); let (mute_time, emoji): (TimeMetrics, &str) = (TimeMetrics::Days(dice.value), &dice.emoji);

View File

@ -1,7 +1,7 @@
use async_trait::async_trait; use async_trait::async_trait;
use telers::{ use telers::{
errors::{EventErrorKind, HandlerError}, errors::{EventErrorKind, HandlerError},
event::{telegram::{HandlerRequest, HandlerResponse}, EventReturn}, event::telegram::{HandlerRequest, HandlerResponse},
middlewares::{InnerMiddleware, Next}, types::Message, middlewares::{InnerMiddleware, Next}, types::Message,
}; };