Interface SearchChats

Searches for the specified query in the title and username of already known chats. This is an offline method. Returns chats in the order seen in the main chat list. Request type for Tdjson#searchChats.

interface SearchChats {
    @type: "searchChats";
    limit: number;
    query: string;
}

Properties

Properties

@type: "searchChats"
limit: number

The maximum number of chats to be returned.

query: string

Query to search for. If the query is empty, returns up to 50 recently found chats.