Airgram

Guides
/
/
Methods

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:

NameTypeDescription
fromMessageIdnumber Identifier of the message from which to search; use 0 to get results from the last message
limitnumber 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
onlyMissedboolean 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>
}