• Get the InputPeer of a known peer id. Useful when an InputPeer is needed in Raw API.

    Parameters

    • client: ITelegramClient
    • peerId: InputPeerLike

      The peer identifier that you want to extract the InputPeer from.

    • force: boolean = false

      Whether to force re-fetch the peer from the server (only for usernames and phone numbers)

    Returns Promise<tl.TypeInputPeer>