Airgram

Guides
/
/
Methods

api.getRepliedMessage()

Returns information about a message that is replied by a given message. Also returns the pinned message, the game message, and the invoice message for messages of the types messagePinMessage, messageGameScore, and messagePaymentSuccessful respectively

Parameters GetRepliedMessageParams:

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