This commit is contained in:
Juan Madurga 2016-01-22 16:42:39 +01:00
parent 1dc9907a70
commit cbcbfab45f
2 changed files with 3 additions and 4 deletions

View file

@ -107,13 +107,13 @@ class Dispatcher:
except the first word (usually the command). except the first word (usually the command).
Example: '/add item1 item2 item3' -> ['item1', 'item2', 'item3'] Example: '/add item1 item2 item3' -> ['item1', 'item2', 'item3']
For other updates, args will be None For other updates, args will be None
In some cases handlers may need some context data to process the update. To 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 procedure just queue in update_queue.put(update, context=context) or
processUpdate(update,context=context). processUpdate(update,context=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 regex-based handlers, you can also request information about the match.
For all other handlers, these will be None For all other handlers, these will be None

View file

@ -53,7 +53,6 @@ class UpdateQueue(Queue):
Args: Args:
context (boolean): set true to get (update, context) context (boolean): set true to get (update, context)
""" """
if not context: if not context:
return Queue.get(self, block, timeout)[0] return Queue.get(self, block, timeout)[0]