mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 18:19:34 +00:00
Add autogenerated docs for types and methods
This commit is contained in:
parent
a24708d589
commit
65331e1fda
166 changed files with 7361 additions and 4 deletions
49
docs/api/methods/get_webhook_info.md
Normal file
49
docs/api/methods/get_webhook_info.md
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
# getWebhookInfo
|
||||
|
||||
## Description
|
||||
|
||||
Use this method to get current webhook status. Requires no parameters. On success, returns a WebhookInfo object. If the bot is using getUpdates, will return an object with the url field empty.
|
||||
|
||||
|
||||
|
||||
|
||||
## Response
|
||||
|
||||
Type: `#!python3 WebhookInfo`
|
||||
|
||||
Description: On success, returns a WebhookInfo object. If the bot is using getUpdates, will return an object with the url field empty.
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
|
||||
### As bot method bot
|
||||
|
||||
```python3
|
||||
result: WebhookInfo = await bot.get_webhook_info(...)
|
||||
```
|
||||
|
||||
### Method as object
|
||||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import GetWebhookInfo`
|
||||
- `from aiogram.api.types import GetWebhookInfo`
|
||||
- `from aiogram.api.types.get_webhook_info import GetWebhookInfo`
|
||||
|
||||
|
||||
#### With specific bot
|
||||
```python3
|
||||
result: WebhookInfo = await bot.emit(GetWebhookInfo(...))
|
||||
```
|
||||
|
||||
#### In handlers with current bot
|
||||
```python3
|
||||
result: WebhookInfo = await GetWebhookInfo(...)
|
||||
```
|
||||
|
||||
|
||||
## Related pages:
|
||||
|
||||
- [Official documentation](https://core.telegram.org/bots/api#getwebhookinfo)
|
||||
- [aiogram.types.WebhookInfo](../types/webhook_info.md)
|
||||
Loading…
Add table
Add a link
Reference in a new issue