Chat.iter_members()

Chat.iter_members()

Bound method iter_members of Chat.

Use as a shortcut for:

for member in client.iter_chat_members(chat_id):
    print(member.user.first_name)

Example

for member in chat.iter_members():
    print(member.user.first_name)
Returns

Generator – A generator yielding ChatMember objects.