pyrofork/docs/source/start/examples/get_chat_members.rst
wulan17 8353e5a2a2
Pyrofork: Full rebrand
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-02-06 04:41:59 +07:00

22 lines
No EOL
402 B
ReStructuredText

get_chat_members
================
This example shows how to get all the members of a chat.
.. code-block:: python
from pyrofork import Client
# Target channel/supergroup
TARGET = -100123456789
app = Client("my_account")
async def main():
async with app:
async for member in app.get_chat_members(TARGET):
print(member)
app.run(main())