• Check whether a given peer ID can be used to actually interact with the Telegram API. This method checks the internal peers cache for the given input peer, and returns true if it is available there.

    You can think of this method as a stripped down version of resolvePeer, which only returns true or false.

    Note: This method works offline and never sends any requests. This means that when passing a username or phone number, it will only return true if the user with that username/phone number is cached in the storage, and will not try to resolve the peer by calling the API, which may lead to false negatives.

    Parameters

    Returns Promise<boolean>