lib/tdlib/client_methods.rb
# Searches for the specified query in the title and username of already known chats, this is an offline request.
# Returns chats in the order seen in the main chat list.
#
# @param query [TD::Types::String] Query to search for.
#   If the query is empty, returns up to 50 recently found chats.
# @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, this is an offline request.
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 this is an offline request . Returns chats in the order seen in the main chat list .
def search_chats(query:, limit:)
    broadcast('@type' => 'searchChats',
              'query' => query,
              'limit' => limit)
  end
def search_chats ( query : , limit : ) broadcast ( '@type' => 'searchChats' , 'query' => query , 'limit' => limit ) end
Searches for the specified query in the title and username of already known chats, this is an offline request.
Searches for the specified query in the title and username of already known chats this is an offline request .
None
TD::Types::Chats
query
Query to search for. If the query is empty, returns up to 50 recently found chats.
Query to search for . If the query is empty returns up to 50 recently found chats .
limit
The maximum number of chats to be returned.
The maximum number of chats to be returned .