commented spoiler branch, now is unnecessary

This commit is contained in:
Guillermo Roche 2025-05-04 18:31:31 +02:00
parent cddbc362a8
commit ae79359990
Signed by: groche97
GPG Key ID: 041FB85BEEA4B9B0

View File

@ -72,12 +72,14 @@ async fn run() {
Ok(()) Ok(())
}), }),
) )
/*
Now is useless because the group doesn't make any spoiler
.branch( .branch(
dptree::filter(move |msg: Message| { dptree::filter(move |msg: Message| {
(is_photo(msg.clone()) && p2.compar_party(&msg.chat.id.to_string())) (is_photo(msg.clone()) && p2.compar_party(&msg.chat.id.to_string()))
}) })
.endpoint(|msg: Message, bot: Bot| spoiler_mangas::check_image(msg, bot)), .endpoint(|msg: Message, bot: Bot| spoiler_mangas::check_image(msg, bot)),
) )*/
.branch( .branch(
dptree::filter(move |msg: Message| filter_files::analyce_name::check_file(msg.clone())) dptree::filter(move |msg: Message| filter_files::analyce_name::check_file(msg.clone()))
.endpoint(|msg: Message, bot: Bot| filter_files::action::take_actions(msg, bot)), .endpoint(|msg: Message, bot: Bot| filter_files::action::take_actions(msg, bot)),