• Iterate over profile photos

    Parameters

    • client: ITelegramClient
    • userId: InputPeerLike

      User ID, username, phone number, "me" or "self"

    • Optionalparams: { limit?: number; offset?: number } & { chunkSize?: number; limit?: number }
      • Optionallimit?: number

        Maximum number of items to fetch (up to 100)

        100

      • Optionaloffset?: number

        Offset from which to fetch.

        0

      • OptionalchunkSize?: number

        Size of chunks which are fetched. Usually not needed.

        100
        
      • Optionallimit?: number

        Maximum number of items to fetch

        Infinity, i.e. all items are fetched

    Returns AsyncIterableIterator<Photo>