From 97bb04cd385271ff2b357475a78520f6e53933db Mon Sep 17 00:00:00 2001 From: Jacob Bom Date: Tue, 13 Sep 2016 20:50:25 +0200 Subject: [PATCH] Faulty example was faulty. --- telegram/ext/messagehandler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telegram/ext/messagehandler.py b/telegram/ext/messagehandler.py index b6837e2cc..6289d86f8 100644 --- a/telegram/ext/messagehandler.py +++ b/telegram/ext/messagehandler.py @@ -95,8 +95,8 @@ class Filters(object): If you want AND filtering instead, you have to specify multiple of this filter in the `filters` attribute. Example: - >>> MessageHandler([Filters.entities(TEXT_MENTION, MENTION), - ... Filters.entities(HASHTAG)], callback) + >>> MessageHandler([Filters.entities([TEXT_MENTION, MENTION]), + ... Filters.entities([HASHTAG])], callback) Will require either a one type of mention AND a hashtag in the message.