Ignore edited channel post update

This commit is contained in:
2023-05-06 23:53:47 +02:00
parent 7f62234fd7
commit d199b4927b

View File

@@ -17,8 +17,14 @@ type BotHandler = Handler<
type BotCommands = Option<Vec<teloxide::types::BotCommand>>;
fn ignore_channel_messages() -> crate::bots::BotHandler {
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 {