mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +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_me.md
Normal file
49
docs/api/methods/get_me.md
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
# getMe
|
||||
|
||||
## Description
|
||||
|
||||
A simple method for testing your bot's auth token. Requires no parameters. Returns basic information about the bot in form of a User object.
|
||||
|
||||
|
||||
|
||||
|
||||
## Response
|
||||
|
||||
Type: `#!python3 User`
|
||||
|
||||
Description: Returns basic information about the bot in form of a User object.
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
|
||||
### As bot method bot
|
||||
|
||||
```python3
|
||||
result: User = await bot.get_me(...)
|
||||
```
|
||||
|
||||
### Method as object
|
||||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import GetMe`
|
||||
- `from aiogram.api.types import GetMe`
|
||||
- `from aiogram.api.types.get_me import GetMe`
|
||||
|
||||
|
||||
#### With specific bot
|
||||
```python3
|
||||
result: User = await bot.emit(GetMe(...))
|
||||
```
|
||||
|
||||
#### In handlers with current bot
|
||||
```python3
|
||||
result: User = await GetMe(...)
|
||||
```
|
||||
|
||||
|
||||
## Related pages:
|
||||
|
||||
- [Official documentation](https://core.telegram.org/bots/api#getme)
|
||||
- [aiogram.types.User](../types/user.md)
|
||||
Loading…
Add table
Add a link
Reference in a new issue