api.searchCallMessages()
Searches for call messages. Returns the results in reverse chronological order (i. e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib
Parameters
SearchCallMessagesParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
fromMessageId | number | Identifier of the message from which to search; use 0 to get results from the last message |
limit | number | The maximum number of messages to be returned; up to 100. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit |
onlyMissed | boolean | If true, returns only messages with missed/declined calls |
Returns
ApiResponse
interface:interface ApiResponse {
_: 'searchCallMessages' | 'error'
airgram: Airgram
request: {
method: 'searchCallMessages'
params: SearchCallMessagesParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}