mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +00:00
* Regenerate API * Update code * Fixed command filter for photos * Fix tests so they are able to run * Test new and renamed API methods * Reformat files * Fix outer_middleware resolution (#637) (#640) * Fix outer_middleware resolution (#637) * Reformat files * Reorder routers when resolve middlewares Co-authored-by: Alex Root Junior <jroot.junior@gmail.com> * Added possibility to use empty callback data factory filter * Rename KeyboardConstructor to KeyboardBuilder * Fixed type Co-authored-by: evgfilim1 <evgfilim1@yandex.ru>
44 lines
753 B
ReStructuredText
44 lines
753 B
ReStructuredText
##################
|
|
getChatMemberCount
|
|
##################
|
|
|
|
Returns: :obj:`int`
|
|
|
|
.. automodule:: aiogram.methods.get_chat_member_count
|
|
:members:
|
|
:member-order: bysource
|
|
:undoc-members: True
|
|
|
|
|
|
Usage
|
|
=====
|
|
|
|
As bot method
|
|
-------------
|
|
|
|
.. code-block::
|
|
|
|
result: int = await bot.get_chat_member_count(...)
|
|
|
|
|
|
Method as object
|
|
----------------
|
|
|
|
Imports:
|
|
|
|
- :code:`from aiogram.methods.get_chat_member_count import GetChatMemberCount`
|
|
- alias: :code:`from aiogram.methods import GetChatMemberCount`
|
|
|
|
In handlers with current bot
|
|
----------------------------
|
|
|
|
.. code-block:: python
|
|
|
|
result: int = await GetChatMemberCount(...)
|
|
|
|
With specific bot
|
|
~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: python
|
|
|
|
result: int = await bot(GetChatMemberCount(...))
|