• Iterate over viewers list of a story. Wrapper over getStoryViewers

    Parameters

    • client: ITelegramClient
    • peerId: InputPeerLike
    • storyId: number
    • Optionalparams: {
          limit?: number;
          offset?: string;
          onlyContacts?: boolean;
          query?: string;
          sortBy?: "date" | "reaction";
      } & { chunkSize?: number; limit?: number }
      • Optionallimit?: number

        Maximum number of viewers to fetch

        100
        
      • Optionaloffset?: string

        Offset ID for pagination

      • OptionalonlyContacts?: boolean

        Whether to only fetch viewers from contacts

      • Optionalquery?: string

        Search query

      • OptionalsortBy?: "date" | "reaction"

        How to sort the results?

        • reaction - by reaction (viewers who has reacted are first), then by date (newest first)
        • date - by date, newest first

        reaction

      • OptionalchunkSize?: number

        Number of viewers to fetch per request. Usually you don't need to change this.

        100
        
      • Optionallimit?: number

        Total number of viewers to fetch

        Infinity, i.e. fetch all viewers
        

    Returns AsyncIterableIterator<StoryViewer>