mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 01:54:53 +00:00
Reformat code and docs
This commit is contained in:
parent
690223f4e0
commit
3b2df194a9
95 changed files with 825 additions and 751 deletions
|
|
@ -59,25 +59,25 @@ Imports:
|
|||
- `from aiogram.api.methods import SendInvoice`
|
||||
- `from aiogram.api.methods.send_invoice import SendInvoice`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
return SendInvoice(...)
|
||||
```
|
||||
|
||||
#### With specific bot
|
||||
```python3
|
||||
result: Message = await bot.emit(SendInvoice(...))
|
||||
```
|
||||
|
||||
#### In handlers with current bot
|
||||
```python3
|
||||
result: Message = await SendInvoice(...)
|
||||
```
|
||||
|
||||
#### With specific bot
|
||||
```python3
|
||||
result: Message = await bot(SendInvoice(...))
|
||||
```
|
||||
#### As reply into Webhook in handler
|
||||
```python3
|
||||
return SendInvoice(...)
|
||||
```
|
||||
|
||||
|
||||
|
||||
## Related pages:
|
||||
|
||||
- [Official documentation](https://core.telegram.org/bots/api#sendinvoice)
|
||||
- [aiogram.types.LabeledPrice](../types/labeled_price.md)
|
||||
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
|
||||
- [aiogram.types.LabeledPrice](../types/labeled_price.md)
|
||||
- [aiogram.types.Message](../types/message.md)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue