• Iterate over profile stories. Wrapper over getProfileStories

    Parameters

    • client: ITelegramClient
    • peerId: InputPeerLike
    • Optionalparams: { kind?: "pinned" | "archived"; limit?: number; offsetId?: number } & {
          chunkSize?: number;
          limit?: number;
      }
      • Optionalkind?: "pinned" | "archived"

        Kind of stories to fetch

        • pinned - stories pinned to the profile and visible to everyone
        • archived - "archived" stories that can later be pinned, only visible to the owner

        pinned

      • Optionallimit?: number

        Maximum number of stories to fetch

        100
        
      • OptionaloffsetId?: number

        Offset ID for pagination

      • OptionalchunkSize?: number

        Number of stories to fetch per request. Usually you shouldn't care about this.

        100
        
      • Optionallimit?: number

        Total number of stories to fetch

        Infinity, i.e. fetch all stories

    Returns AsyncIterableIterator<Story>