feat(imports): format imports
This commit is contained in:
parent
311187b6eb
commit
b557bf5832
|
@ -1,5 +1,7 @@
|
|||
use telers::{
|
||||
event::{telegram::HandlerResult, EventReturn}, methods::BanChatMember, Bot
|
||||
event::{telegram::HandlerResult, EventReturn},
|
||||
methods::BanChatMember,
|
||||
Bot,
|
||||
};
|
||||
|
||||
use tokio::time::{sleep, Duration as DurationSleep};
|
||||
|
@ -21,10 +23,11 @@ pub async fn ban_member(
|
|||
let (bot, message, mut sender_builder): ExtractedEntityData = handler_entity.extract();
|
||||
|
||||
sleep(DurationSleep::from_millis(delay)).await;
|
||||
|
||||
|
||||
let user_id: i64 = user.get_id().unwrap();
|
||||
|
||||
let callback = || async { bot.send(BanChatMember::new(chat_id, user_id)).await };
|
||||
|
||||
let demote_args: (&Bot, i64, i64) = (&bot, user_id, chat_id);
|
||||
|
||||
sender_builder.set_text("Невозможно забанить пользователя.");
|
||||
|
|
Loading…
Reference in New Issue