Airgram

Guides
/
/
Methods

api.getCallbackQueryMessage()

Returns information about a message with the callback button that originated a callback query; for bots only

Parameters GetCallbackQueryMessageParams:

NameTypeDescription
chatIdnumber Identifier of the chat the message belongs to
messageIdnumber Message identifier
callbackQueryIdstring Identifier of the callback query
Returns ApiResponse interface:
interface ApiResponse {
  _: 'getCallbackQueryMessage' | 'error'
  airgram: Airgram
  request: {
    method: 'getCallbackQueryMessage'
    params: GetCallbackQueryMessageParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}