Interface IPreCheckoutQueryHandler

All Superinterfaces:
ITelegramHandler

public interface IPreCheckoutQueryHandler extends ITelegramHandler
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onPreCheckoutQuery(AbstractTelegramBot bot, org.telegram.telegrambots.meta.api.objects.Update update, org.telegram.telegrambots.meta.api.objects.payments.PreCheckoutQuery preCheckoutQuery)
    Fired whenever pre checkout query is received

    Methods inherited from interface com.github.unafraid.telegrambot.handlers.ITelegramHandler

    getRequiredAccessLevel
  • Method Details

    • onPreCheckoutQuery

      boolean onPreCheckoutQuery(AbstractTelegramBot bot, org.telegram.telegrambots.meta.api.objects.Update update, org.telegram.telegrambots.meta.api.objects.payments.PreCheckoutQuery preCheckoutQuery) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
      Fired whenever pre checkout query is received
      Parameters:
      bot - the bot
      update - the update
      preCheckoutQuery - the pre checkout query
      Returns:
      true if handler 'consumed' that event, aborting notification to other handlers, false otherwise, continuing to look for handler that would return true
      Throws:
      org.telegram.telegrambots.meta.exceptions.TelegramApiException - the exception