mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-28 09:05:13 +00:00
11 lines
269 B
Python
11 lines
269 B
Python
"""This example shows how to get all the members of a chat."""
|
|
|
|
from pyrogram import Client
|
|
|
|
app = Client("my_count")
|
|
target = "pyrogramchat" # Target channel/supergroup
|
|
|
|
with app:
|
|
for member in app.iter_chat_members(target):
|
|
print(member.user.first_name)
|