From d199b4927b03bbd8ec6f0175dd9329ef0e59e5a9 Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Sat, 6 May 2023 23:53:47 +0200 Subject: [PATCH] Ignore edited channel post update --- src/bots/mod.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/bots/mod.rs b/src/bots/mod.rs index 0e7faa9..8a4027b 100644 --- a/src/bots/mod.rs +++ b/src/bots/mod.rs @@ -17,8 +17,14 @@ type BotHandler = Handler< type BotCommands = Option>; fn ignore_channel_messages() -> crate::bots::BotHandler { - Update::filter_channel_post() - .endpoint(|| async { Ok(()) }) + dptree::entry() + .branch( + Update::filter_channel_post() + .endpoint(|| async { Ok(()) }) + ).branch( + Update::filter_edited_channel_post() + .endpoint(|| async { Ok(()) }) + ) } fn ignore_chat_member_update() -> crate::bots::BotHandler {