Updated Code snippets (markdown)

Jannes Höke 2016-05-28 23:30:24 +02:00
parent 7d7f6a44b0
commit e3eaf93eed

@ -6,7 +6,7 @@ It is also a follow-up to the page [Introduction to the API](https://github.com/
#### 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.
**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
>>> updates = bot.getUpdates()