Fixed notify all.
/ docker_build (push) Failing after 2m16s
/ deploy_helm (push) Has been skipped
release.yaml / docker_build (push) Successful in 9m40s
release.yaml / deploy_helm (push) Successful in 34s

Signed-off-by: Pavel Kirilin <s3riussan@gmail.com>
This commit is contained in:
2026-09-18 11:36:02 +02:00
parent 1dd6c21ce4
commit 60a8af1c2d
2 changed files with 8 additions and 3 deletions
+4 -2
View File
@@ -1,4 +1,4 @@
use grammers_client::{types::Chat, Client, Update};
use grammers_client::{types::Chat, Client, InputMessage, Update};
use crate::{bot::handlers::Handler, utils::messages::get_message};
@@ -24,7 +24,9 @@ impl Handler for NotifyAll {
response.push_str(format!("@{username} ").as_str());
}
}
message.reply(response).await?;
message
.reply(InputMessage::from(response).silent(true))
.await?;
Ok(())
}
}
+4 -1
View File
@@ -184,7 +184,10 @@ async fn run(args: BotConfig, client: Client) -> anyhow::Result<()> {
.add_filter(ExcludedChatsFilter(args.excluded_chats.clone()))
.add_filter(UpdateTypeFilter(&[UpdateType::New]))
.add_filter(SilentFilter)
.add_filter(TextFilter(&["@all"], TextMatchMethod::Contains))
.add_filter(TextFilter(
&["@all ", "@all,", "@all."],
TextMatchMethod::Contains,
))
.add_middleware::<MembersCount<100>>(),
// Time conversion utils
FilteredHandler::new(TimeConverter)