mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-04 14:04:43 +01:00
Updated Builder Pattern (markdown)
parent
043f6f5ff7
commit
da43ff0f05
1 changed files with 2 additions and 1 deletions
|
@ -13,13 +13,14 @@ All of those components have different parameters. Some of them are optional. So
|
|||
That's a lot to take in and when coding your bot and setting this all up by yourself would be tiresome.
|
||||
|
||||
That's why `python-telegram-bot` makes an effort to make the setup easy with reasonable defaults.
|
||||
For example, after running
|
||||
|
||||
```python
|
||||
from telegram.ext import Application
|
||||
application = Application.builder().token('TOKEN').build()
|
||||
```
|
||||
|
||||
E.g. with `python-telegram-bot` you will automatically have
|
||||
you will automatically have
|
||||
|
||||
* the `Updater` available as `application.dispatcher`
|
||||
* the `Bot` available as `application.(updater.)bot`
|
||||
|
|
Loading…
Reference in a new issue