Updated deps.

This commit is contained in:
2024-09-27 09:31:04 +02:00
parent 7013318400
commit 58b3d621fb
3 changed files with 202 additions and 168 deletions

View File

@ -112,7 +112,10 @@ async fn run(args: BotConfig, client: Client) -> anyhow::Result<()> {
.add_filter(MessageDirectionFilter(MessageDirection::Incoming))
.add_filter(SilentFilter)
.add_filter(ExcludedChatsFilter(vec![me.id()]))
.add_filter(TextFilter(&["привет", "здравствуйте"], TextMatchMethod::StartsWith))
.add_filter(TextFilter(
&["привет", "здравствуйте"],
TextMatchMethod::StartsWith,
))
.add_middleware::<MembersCount<100>>(),
// Getting chat id.
FilteredHandler::new(GetChatId)
@ -202,7 +205,7 @@ async fn run(args: BotConfig, client: Client) -> anyhow::Result<()> {
continue;
}
// We get update if there's no error
let Some(update_data) = update.ok().and_then(|inner| inner) else {
let Some(update_data) = update.ok() else {
log::warn!("Empty update is found.");
continue;
};