• Preparing search index...
  • The search index is not available
Documentation - v0.23.3
  • Documentation
  • @mtcute/core
  • highlevel/methods
  • resolvePeerMany

Function resolvePeerManyInternal

  • resolvePeerMany<T extends TypeInputPeer | TypeInputUser | TypeInputChannel>(
        client: ITelegramClient,
        peerIds: InputPeerLike[],
        normalizer: (obj: TypeInputPeer) => null | T,
    ): Promise<T[]>
  • Get multiple InputPeers at once, while also normalizing and removing peers that can't be normalized to that type.

    If a peer was not found, it will be skipped.

    Uses async pool internally, with a concurrent limit of 8

    Type Parameters

    • T extends TypeInputPeer | TypeInputUser | TypeInputChannel

    Parameters

    • client: ITelegramClient
    • peerIds: InputPeerLike[]

      Peer Ids

    • normalizer: (obj: TypeInputPeer) => null | T

      Normalization function

    Returns Promise<T[]>

    • Defined in packages/core/src/highlevel/methods/users/resolve-peer-many.ts:22
  • resolvePeerMany(
        client: ITelegramClient,
        peerIds: InputPeerLike[],
    ): Promise<(tl.TypeInputPeer | null)[]>
  • Get multiple InputPeers at once.

    If a peer was not found, null will be returned instead

    Uses async pool internally, with a concurrent limit of 8

    Parameters

    • client: ITelegramClient
    • peerIds: InputPeerLike[]

      Peer Ids

    Returns Promise<(tl.TypeInputPeer | null)[]>

    • Defined in packages/core/src/highlevel/methods/users/resolve-peer-many.ts:37

Settings

Member Visibility
Documentation - v0.23.3
  • Loading...

Generated using TypeDoc