mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Ignore edited channel post update
This commit is contained in:
@@ -17,8 +17,14 @@ type BotHandler = Handler<
|
|||||||
type BotCommands = Option<Vec<teloxide::types::BotCommand>>;
|
type BotCommands = Option<Vec<teloxide::types::BotCommand>>;
|
||||||
|
|
||||||
fn ignore_channel_messages() -> crate::bots::BotHandler {
|
fn ignore_channel_messages() -> crate::bots::BotHandler {
|
||||||
Update::filter_channel_post()
|
dptree::entry()
|
||||||
.endpoint(|| async { Ok(()) })
|
.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 {
|
fn ignore_chat_member_update() -> crate::bots::BotHandler {
|
||||||
|
|||||||
Reference in New Issue
Block a user