mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 07:06:26 +01:00
reorder text
parent
4eeab1ec24
commit
e1858448d8
1 changed files with 2 additions and 2 deletions
|
@ -28,10 +28,10 @@ updater = Updater(token='TOKEN', use_context=True)
|
|||
```
|
||||
**Related docs:** [telegram.ext.Updater](http://python-telegram-bot.readthedocs.io/en/latest/telegram.ext.updater.html#telegram.ext.updater.Updater)
|
||||
|
||||
For quicker access to the `Dispatcher` used by your `Updater`, you can introduce it locally:
|
||||
|
||||
**Note**: The `use_context=True` is a special argument only needed for version 12 of the library. It allows for better backwards compatibility with older versions of the library, and to give users some time to upgrade. From version 13 `use_context=True` will be the default.
|
||||
|
||||
For quicker access to the `Dispatcher` used by your `Updater`, you can introduce it locally:
|
||||
|
||||
```python
|
||||
dispatcher = updater.dispatcher
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue