• 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)

    Parameters

    • client: ITelegramClient
    • chatId: InputPeerLike

      Chat ID or username

    • Optionalparams: {
          limit?: number;
          offset?: number;
          query?: string;
          type?:
              | "mention"
              | "restricted"
              | "contacts"
              | "bots"
              | "banned"
              | "admins"
              | "all"
              | "recent";
      } & {
          chunkSize?: number;
      }

      Additional parameters

    Returns AsyncIterableIterator<ChatMember>