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