mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 02:03:04 +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
56
docs/api/methods/get_chat_member.md
Normal file
56
docs/api/methods/get_chat_member.md
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
# getChatMember
|
||||
|
||||
## Description
|
||||
|
||||
Use this method to get information about a member of a chat. Returns a ChatMember object on success.
|
||||
|
||||
|
||||
## Arguments
|
||||
|
||||
| Name | Type | Description |
|
||||
| - | - | - |
|
||||
| `chat_id` | `#!python3 Union[int, str]` | Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername) |
|
||||
| `user_id` | `#!python3 int` | Unique identifier of the target user |
|
||||
|
||||
|
||||
|
||||
## Response
|
||||
|
||||
Type: `#!python3 ChatMember`
|
||||
|
||||
Description: Returns a ChatMember object on success.
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
|
||||
### As bot method bot
|
||||
|
||||
```python3
|
||||
result: ChatMember = await bot.get_chat_member(...)
|
||||
```
|
||||
|
||||
### Method as object
|
||||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import GetChatMember`
|
||||
- `from aiogram.api.types import GetChatMember`
|
||||
- `from aiogram.api.types.get_chat_member import GetChatMember`
|
||||
|
||||
|
||||
#### With specific bot
|
||||
```python3
|
||||
result: ChatMember = await bot.emit(GetChatMember(...))
|
||||
```
|
||||
|
||||
#### In handlers with current bot
|
||||
```python3
|
||||
result: ChatMember = await GetChatMember(...)
|
||||
```
|
||||
|
||||
|
||||
## Related pages:
|
||||
|
||||
- [Official documentation](https://core.telegram.org/bots/api#getchatmember)
|
||||
- [aiogram.types.ChatMember](../types/chat_member.md)
|
||||
Loading…
Add table
Add a link
Reference in a new issue