refactor: some refactor
This commit is contained in:
parent
9029d4397a
commit
d5c0df353c
|
@ -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 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);
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use async_trait::async_trait;
|
||||
use telers::{
|
||||
errors::{EventErrorKind, HandlerError},
|
||||
event::{telegram::{HandlerRequest, HandlerResponse}, EventReturn},
|
||||
event::telegram::{HandlerRequest, HandlerResponse},
|
||||
middlewares::{InnerMiddleware, Next}, types::Message,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue