WriteAccessRequestedEvent constructor

WriteAccessRequestedEvent(
  1. void eventHandler(
    1. WriteAccessRequestedPayload result
    )
)

Implementation

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