lib/tdlib/client_methods.rb
# Searches for the specified query in the title and username of already known chats via request to the server.
# Returns chats in the order seen in the main chat list.
#
# @param query [TD::Types::String] Query to search for.
# @param limit [Integer] The maximum number of chats to be returned.
# @return [TD::Types::Chats]
Searches for the specified query in the title and username of already known chats via request to the server.
Returns chats in the order seen in the main chat list.
Searches for the specified query in the title and username of already known chats via request to the server . Returns chats in the order seen in the main chat list .
def search_chats_on_server(query:, limit:)
    broadcast('@type' => 'searchChatsOnServer',
              'query' => query,
              'limit' => limit)
  end
def search_chats_on_server ( query : , limit : ) broadcast ( '@type' => 'searchChatsOnServer' , 'query' => query , 'limit' => limit ) end
Searches for the specified query in the title and username of already known chats via request to the server.
Searches for the specified query in the title and username of already known chats via request to the server .
None
TD::Types::Chats
query
Query to search for.
Query to search for .
limit
The maximum number of chats to be returned.
The maximum number of chats to be returned .