InvoiceClosedEvent constructor

InvoiceClosedEvent(
  1. void eventHandler(
    1. InvoiceClosedPayload payload
    )
)

Implementation

InvoiceClosedEvent(void Function(InvoiceClosedPayload payload) eventHandler)
    : super(
        TelegramEventType.invoiceClosed,
        (InvoiceClosedPayloadJSObject payload) {
          eventHandler(InvoiceClosedPayload(
            payload.url.toDart,
            payload.status.toDart,
          ));
        }.toJS,
      );