Skip to content

Commit 97bb04c

Browse files
committed
Faulty example was faulty.
1 parent 7ab007d commit 97bb04c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

telegram/ext/messagehandler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ def entities(entity_types):
9595
If you want AND filtering instead, you have to specify multiple of this filter in the
9696
`filters` attribute. Example:
9797
98-
>>> MessageHandler([Filters.entities(TEXT_MENTION, MENTION),
99-
... Filters.entities(HASHTAG)], callback)
98+
>>> MessageHandler([Filters.entities([TEXT_MENTION, MENTION]),
99+
... Filters.entities([HASHTAG])], callback)
100100
101101
Will require either a one type of mention AND a hashtag in the message.
102102

0 commit comments

Comments
 (0)