SearchChatsOnServer constructor

const SearchChatsOnServer({
  1. required String query,
  2. required int limit,
})

SearchChatsOnServer (searchChatsOnServer) - TDLib function

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.

  • query: Query to search for.
  • limit: The maximum number of chats to be returned.

Chats is returned on completion.

Implementation

const SearchChatsOnServer({
  required this.query,
  required this.limit,
});