search method
Search.
ID: 05f58d0f.
Implementation
Future<Result<ContactsFoundBase>> search({
required bool broadcasts,
required bool bots,
required String q,
required int limit,
}) async {
// Preparing the request.
final request = ContactsSearch(
broadcasts: broadcasts,
bots: bots,
q: q,
limit: limit,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<ContactsFoundBase>();
}