15 lines
347 B
ReStructuredText
15 lines
347 B
ReStructuredText
|
get_chat_members
|
||
|
================
|
||
|
|
||
|
This example shows how to get all the members of a chat.
|
||
|
|
||
|
.. code-block:: python
|
||
|
|
||
|
from pyrogram import Client
|
||
|
|
||
|
app = Client("my_account")
|
||
|
target = "pyrogramchat" # Target channel/supergroup
|
||
|
|
||
|
with app:
|
||
|
for member in app.iter_chat_members(target):
|
||
|
print(member.user.first_name)
|