Skip to content

Commit f7b497c

Browse files
committed
Fix in keyword ordering
We're testing for a string in list, not the other way around :P
1 parent 4e60008 commit f7b497c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

telegram/ext/messagehandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def entities(entity_types):
108108
"""
109109

110110
def entities_filter(message):
111-
return any([entity_types in entity.type for entity in message.entities])
111+
return any([entity.type in entity_types for entity in message.entities])
112112

113113
return entities_filter
114114

0 commit comments

Comments
 (0)