mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +00:00
Upgrade architecture + 5.0 Bot API (#469) * Moved `methods`, `types` and `client` to root package * Removed update handler from routers to dispatcher * Reworked events propagation mechanism to handlers * Reworked inner middlewares logic (very small change) * Updated to Bot API 5.0 * Initial migration from MkDocs to Sphinx + config for readthedocs
45 lines
833 B
ReStructuredText
45 lines
833 B
ReStructuredText
#####################
|
|
getChatAdministrators
|
|
#####################
|
|
|
|
Returns: :obj:`List[ChatMember]`
|
|
|
|
.. automodule:: aiogram.methods.get_chat_administrators
|
|
:members:
|
|
:member-order: bysource
|
|
:undoc-members: True
|
|
|
|
|
|
Usage
|
|
=====
|
|
|
|
As bot method
|
|
-------------
|
|
|
|
.. code-block::
|
|
|
|
result: List[ChatMember] = await bot.get_chat_administrators(...)
|
|
|
|
|
|
Method as object
|
|
----------------
|
|
|
|
Imports:
|
|
|
|
- :code:`from aiogram.methods.get_chat_administrators import GetChatAdministrators`
|
|
- alias: :code:`from aiogram.methods import GetChatAdministrators`
|
|
|
|
In handlers with current bot
|
|
----------------------------
|
|
|
|
.. code-block:: python
|
|
|
|
result: List[ChatMember] = await GetChatAdministrators(...)
|
|
|
|
With specific bot
|
|
~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: python
|
|
|
|
result: List[ChatMember] = await bot(GetChatAdministrators(...))
|
|
|