aiogram/docs/api/methods/get_chat_member_count.rst
Alex Root Junior 02f1d3555e Regenerate API
2021-07-05 03:17:22 +03:00

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(...))