Skip to content

searchUserByPhoneNumber

Function · TDLib 1.8.67 · d1085f9c

Searches a user by their phone number. Returns a 404 error if the user can't be found

searchUserByPhoneNumber(
  phone_number: string,
  only_local: Bool
) → User

phone_number

string

Phone number to search for

only_local

Bool

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