Class AnswerPreCheckoutQuery

java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<AnswerPreCheckoutQuery,Boolean>
io.github.natanimn.telebof.requests.answer.AnswerPreCheckoutQuery

public class AnswerPreCheckoutQuery extends AbstractBaseRequest<AnswerPreCheckoutQuery,Boolean>
AnswerPreCheckoutQuery class. Returns True on success.
Since:
3 March 2025
See Also:
  • Constructor Details

    • AnswerPreCheckoutQuery

      public AnswerPreCheckoutQuery(String preCheckoutQueryId, boolean ok, Api api)
      Required
      Parameters:
      preCheckoutQueryId - pre checkout query id
      ok - ok
      api - api
  • Method Details

    • errorMessage

      public AnswerPreCheckoutQuery errorMessage(String errorMessage)
      Optional
      Parameters:
      errorMessage - Required if ok is False.
      Error message in human-readable form that explains the reason for failure to proceed with the checkout (e.g. "Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!"). Telegram will display this message to the user.
      Returns:
      AnswerPreCheckoutQuery