Updated deps.
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user