• Get the InputPeer by user's phone number. Useful when an InputPeer is needed in Raw API.

    Parameters

    • client: ITelegramClient
    • phone: string

      Phone number of the user

    • force: boolean = false

      Whether to force re-fetch the peer from the server

    Returns Promise<tl.TypeInputPeer>