Class TdApi.SearchUserByPhoneNumber
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.User>
dev.voroby.springframework.telegram.client.TdApi.SearchUserByPhoneNumber
- Enclosing class:
- TdApi
Searches a user by their phone number. Returns a 404 error if the user can't be found.
Returns User
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.boolean
Pass true to get only locally available information without sending network requests.Phone number to search for. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which searches a user by their phone number.SearchUserByPhoneNumber
(String phoneNumber, boolean onlyLocal) Creates a function, which searches a user by their phone number. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
phoneNumber
Phone number to search for. -
onlyLocal
public boolean onlyLocalPass true to get only locally available information without sending network requests. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SearchUserByPhoneNumber
public SearchUserByPhoneNumber()Default constructor for a function, which searches a user by their phone number. Returns a 404 error if the user can't be found.Returns
User
-
SearchUserByPhoneNumber
Creates a function, which searches a user by their phone number. Returns a 404 error if the user can't be found.Returns
User
- Parameters:
phoneNumber
- Phone number to search for.onlyLocal
- Pass true to get only locally available information without sending network requests.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-