pyrofork/docs/source/start/examples/get_chat_members.rst
wulan17 d91b933715
PyroFork: Bring back docs
Signed-off-by: wulan17 <galihgustip@gmail.com>
2023-01-02 15:04:23 +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 pyrogram 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())