• Get viewers list of a story

    Parameters

    • client: ITelegramClient
    • peerId: InputPeerLike
    • storyId: number
    • Optionalparams: {
          limit?: number;
          offset?: string;
          onlyContacts?: boolean;
          query?: string;
          sortBy?: "date" | "reaction";
      }
      • 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

    Returns Promise<StoryViewersList>