Interface SearchUserByPhoneNumber

Searches a user by their phone number. Returns a 404 error if the user can't be found. Request type for Tdjson#searchUserByPhoneNumber.

interface SearchUserByPhoneNumber {
    @type: "searchUserByPhoneNumber";
    only_local?: boolean;
    phone_number: string;
}

Properties

@type: "searchUserByPhoneNumber"
only_local?: boolean

Pass true to get only locally available information without sending network requests.

phone_number: string

Phone number to search for.