diff --git a/telegram/dispatcher.py b/telegram/dispatcher.py index a4839480d..ac64a2867 100644 --- a/telegram/dispatcher.py +++ b/telegram/dispatcher.py @@ -107,13 +107,13 @@ class Dispatcher: except the first word (usually the command). Example: '/add item1 item2 item3' -> ['item1', 'item2', 'item3'] For other updates, args will be None - + In some cases handlers may need some context data to process the update. To procedure just queue in update_queue.put(update, context=context) or processUpdate(update,context=context). - + context: - Extra data for handling updates. + Extra data for handling updates. For regex-based handlers, you can also request information about the match. For all other handlers, these will be None diff --git a/telegram/updatequeue.py b/telegram/updatequeue.py index 7222cc1e5..21032a4da 100644 --- a/telegram/updatequeue.py +++ b/telegram/updatequeue.py @@ -53,7 +53,6 @@ class UpdateQueue(Queue): Args: context (boolean): set true to get (update, context) - """ if not context: return Queue.get(self, block, timeout)[0]