PreCheckoutQuery.answer()

PreCheckoutQuery.answer()

Bound method answer of PreCheckoutQuery.

Use this method as a shortcut for:

await client.answer_pre_checkout_query(
    pre_checkout_query.id,
    success=True
)

Example

await pre_checkout_query.answer(success=True)
Parameters:
  • success (bool optional) – If true, an alert will be shown by the client instead of a notification at the top of the chat screen. Defaults to False.

  • error (bool optional) – If true, an alert will be shown by the client instead of a notification at the top of the chat screen. Defaults to False.