ContactRequestedEvent constructor

ContactRequestedEvent(
  1. void eventHandler(
    1. ContactRequestedPayload payload
    )
)

Implementation

ContactRequestedEvent(void Function(ContactRequestedPayload payload) eventHandler)
    : super(
        TelegramEventType.contactRequested,
        (ContactRequestedPayloadJSObject payload) {
          eventHandler(ContactRequestedPayload(payload.status.toDart));
        }.toJS,
      );