- iterChatMembers(client, chatId, params?): AsyncIterableIterator<ChatMember>
Parameters
- client: ITelegramClient
- chatId: InputPeerLike
Optional
params: {
limit?: number;
offset?: number;
query?: string;
type?:
| "mention"
| "restricted"
| "contacts"
| "bots"
| "banned"
| "admins"
| "all"
| "recent";
} & {
chunkSize?: number;
}
Returns AsyncIterableIterator<ChatMember>
Iterate through chat members
This method is a small wrapper over getChatMembers, which also handles duplicate entries (i.e. does not yield the same member twice)