WriteAccessRequestedEvent constructor
WriteAccessRequestedEvent(
- void eventHandler(
- WriteAccessRequestedPayload result
Implementation
WriteAccessRequestedEvent(void Function(WriteAccessRequestedPayload result) eventHandler)
: super(
TelegramEventType.writeAccessRequested,
(WriteAccessRequestedPayloadJSObject payload) {
eventHandler.call(WriteAccessRequestedPayload(payload.status.toDart));
}.toJS,
);