mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-21 22:56:38 +01:00
add note on shortcut methods
parent
36ceb9bc4b
commit
b862995ed1
1 changed files with 10 additions and 1 deletions
|
@ -12,6 +12,15 @@ Please also check out the [official Telegram API docs](https://core.telegram.org
|
|||
|
||||
Let's have a look at how sending a document can be done. In these examples, we'll be using `Bot`'s [`send_document`](https://python-telegram-bot.readthedocs.io/telegram.bot.html#telegram.Bot.send_document) method.
|
||||
|
||||
> **Note:**
|
||||
>
|
||||
> In discussion and examples below, we will be using methods of `Bot`, but most of them
|
||||
> (including [`send_document`](https://python-telegram-bot.readthedocs.io/telegram.bot.html#telegram.Bot.send_document))
|
||||
> have shortcut methods in classes like `User`, `Chat` or `Message` that can be more
|
||||
> convenient to use in your particular situation. Documentation for every method in `Bot`
|
||||
> contains links to shortcut methods in other classes.
|
||||
|
||||
|
||||
1. Uploading a file
|
||||
|
||||
```python
|
||||
|
|
Loading…
Reference in a new issue