api.searchChats()
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
Parameters
SearchChatsParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
query | string | Query to search for. If the query is empty, returns up to 50 recently found chats |
limit | number | The maximum number of chats to be returned |
Returns
ApiResponse
interface:interface ApiResponse {
_: 'searchChats' | 'error'
airgram: Airgram
request: {
method: 'searchChats'
params: SearchChatsParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}