Airgram

Guides
/
/
Methods

api.getMessageLocally()

Returns information about a message, if it is available locally without sending network request. This is an offline request

Parameters GetMessageLocallyParams:

NameTypeDescription
chatIdnumber Identifier of the chat the message belongs to
messageIdnumber Identifier of the message to get
Returns ApiResponse interface:
interface ApiResponse {
  _: 'getMessageLocally' | 'error'
  airgram: Airgram
  request: {
    method: 'getMessageLocally'
    params: GetMessageLocallyParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}