mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-26 09:07:43 +01:00
Updated Code snippets (markdown)
parent
7d7f6a44b0
commit
e3eaf93eed
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ It is also a follow-up to the page [Introduction to the API](https://github.com/
|
||||||
#### Fetch updates (pure API)
|
#### Fetch updates (pure API)
|
||||||
To fetch messages sent to your Bot, you can use the [getUpdates](https://core.telegram.org/bots/api#getupdates) API method.
|
To fetch messages sent to your Bot, you can use the [getUpdates](https://core.telegram.org/bots/api#getupdates) API method.
|
||||||
|
|
||||||
**Note:** You don't have to use `getUpdates` if you are writing your bot with the `telegram.ext` submodule, since `telegram.ext.Updater` takes care of fetching all updates for you. Read more about that [here]().
|
**Note:** You don't have to use `getUpdates` if you are writing your bot with the `telegram.ext` submodule, since `telegram.ext.Updater` takes care of fetching all updates for you. Read more about that [here](https://github.com/python-telegram-bot/python-telegram-bot/wiki/Extensions-%E2%80%93-Your-first-Bot).
|
||||||
|
|
||||||
```python
|
```python
|
||||||
>>> updates = bot.getUpdates()
|
>>> updates = bot.getUpdates()
|
||||||
|
|
Loading…
Reference in a new issue