diff --git a/telegram/ext/messagehandler.py b/telegram/ext/messagehandler.py index c121d56eb..b6837e2cc 100644 --- a/telegram/ext/messagehandler.py +++ b/telegram/ext/messagehandler.py @@ -108,7 +108,7 @@ class Filters(object): """ def entities_filter(message): - return any([entity_types in entity.type for entity in message.entities]) + return any([entity.type in entity_types for entity in message.entities]) return entities_filter