From f7b497c1b4e8f91ed881679fcc704350a5249fb3 Mon Sep 17 00:00:00 2001 From: Jacob Bom Date: Tue, 13 Sep 2016 20:45:42 +0200 Subject: [PATCH] Fix in keyword ordering We're testing for a string in list, not the other way around :P --- telegram/ext/messagehandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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