pyrobale.objects.precheckoutquery

Classes

Module Contents

class pyrobale.objects.precheckoutquery.PreCheckoutQuery(id=None, from_user=None, currency=None, total_amount=None, invoice_payload=None, **kwargs)[source]
Parameters:
  • id (Optional[str])

  • from_user (Optional[pyrobale.objects.user.User])

  • currency (Optional[str])

  • total_amount (Optional[int])

  • invoice_payload (Optional[str])

id = None[source]
from_user = None[source]
currency = None[source]
total_amount = None[source]
invoice_payload = None[source]
client[source]
async answer(ok, error_message=None)[source]

Answers to a ‘PreCheckoutQuery’ update

Parameters:
  • ok (bool) – True for allowing the payment and False for showing the error message

  • error_message (str) – Optional: An string to show the user if the ok argument is False

Returns:

True in success

Return type:

bool