lib/tdlib/client_methods.rb
def search_contacts(query: nil, limit:)
    broadcast('@type' => 'searchContacts',
              'query' => query,
              'limit' => limit)
  end
# Searches for the specified query in the first names, last names and usernames of the known user contacts.
#
# @param query [TD::Types::String, nil] Query to search for; may be empty to return all contacts.
# @param limit [Integer] The maximum number of users to be returned.
# @return [TD::Types::Users]
Searches for the specified query in the first names, last names and usernames of the known user contacts.
Searches for the specified query in the first names last names and usernames of the known user contacts .
def search_contacts(query: nil, limit:)
    broadcast('@type' => 'searchContacts',
              'query' => query,
              'limit' => limit)
  end
def search_contacts ( query : nil , limit : ) broadcast ( '@type' => 'searchContacts' , 'query' => query , 'limit' => limit ) end
Searches for the specified query in the first names, last names and usernames of the known user contacts.
Searches for the specified query in the first names last names and usernames of the known user contacts .
None
TD::Types::Users
query
Query to search for; may be empty to return all contacts.
Query to search for ; may be empty to return all contacts .
limit
The maximum number of users to be returned.
The maximum number of users to be returned .