Airgram

Guides
/
/
Methods

api.getMessage()

Returns information about a message

Parameters GetMessageParams:

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