pyrobale.objects.precheckoutquery

Classes

Module Contents

class pyrobale.objects.precheckoutquery.PreCheckoutQuery(id, from_user, currency, total_amount, invoice_payload, **kwargs)[source]
Parameters:
id[source]
from_user[source]
currency[source]
total_amount[source]
invoice_payload[source]
client: pyrobale.client.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