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
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
chatId | number | Identifier of the chat the message belongs to |
messageId | number | 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>
}