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
54
docs/api/methods/get_chat_members_count.md
Normal file
54
docs/api/methods/get_chat_members_count.md
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
# getChatMembersCount
|
||||
|
||||
## Description
|
||||
|
||||
Use this method to get the number of members in a chat. Returns Int 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) |
|
||||
|
||||
|
||||
|
||||
## Response
|
||||
|
||||
Type: `#!python3 int`
|
||||
|
||||
Description: Returns Int on success.
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
|
||||
### As bot method bot
|
||||
|
||||
```python3
|
||||
result: int = await bot.get_chat_members_count(...)
|
||||
```
|
||||
|
||||
### Method as object
|
||||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import GetChatMembersCount`
|
||||
- `from aiogram.api.types import GetChatMembersCount`
|
||||
- `from aiogram.api.types.get_chat_members_count import GetChatMembersCount`
|
||||
|
||||
|
||||
#### With specific bot
|
||||
```python3
|
||||
result: int = await bot.emit(GetChatMembersCount(...))
|
||||
```
|
||||
|
||||
#### In handlers with current bot
|
||||
```python3
|
||||
result: int = await GetChatMembersCount(...)
|
||||
```
|
||||
|
||||
|
||||
## Related pages:
|
||||
|
||||
- [Official documentation](https://core.telegram.org/bots/api#getchatmemberscount)
|
||||
Loading…
Add table
Add a link
Reference in a new issue