diff --git a/src/dispatching/dispatchers/filter/filters/text.rs b/src/dispatching/dispatchers/filter/filters/text.rs index 2bb76a0e..c1d06c32 100644 --- a/src/dispatching/dispatchers/filter/filters/text.rs +++ b/src/dispatching/dispatchers/filter/filters/text.rs @@ -9,7 +9,12 @@ impl Filter for MessageTextFilter { fn test(&self, value: &Message) -> bool { match value.text() { Some(text) => self.text == text, - None => false + None => { + match value.caption() { + Some(caption) => self.text == caption, + None => false + } + } } } }