mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-23 06:50:29 +01:00
fix pep8
This commit is contained in:
parent
1dc9907a70
commit
cbcbfab45f
2 changed files with 3 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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]
|
||||||
|
|
Loading…
Reference in a new issue