• Returns a thenable object (promise interface) that resolves when a specific event occurs

    Type Parameters

    • Name extends
          | "blocklist.sync"
          | "call.incoming_call"
          | (keyof ChatEventTypes)
          | "config.update"
          | (keyof ConnEventTypes)
          | "group.participant_changed"
          | "order.payment_status"
          | "status.sync"
          | (keyof WebpackEvents)
          | "alfa"
          | "beta"

    Parameters

    • event: Name
    • Optionaltimeout: number

    Returns CancelablePromise<
        ListenerType<
            (
                BlocklistEventTypes & CallEventTypes & ChatEventTypes & ConfigEventTypes & ConnEventTypes & GroupEventTypes & OrderEventTypes & StatusEventTypes & WebpackEvents & {
                    alfa: string;
                    beta: (from: number, to: string) => void;
                }
            )[Name],
        >,
    >

  • Returns a thenable object (promise interface) that resolves when a specific event occurs

    Type Parameters

    • Name extends
          | "blocklist.sync"
          | "call.incoming_call"
          | (keyof ChatEventTypes)
          | "config.update"
          | (keyof ConnEventTypes)
          | "group.participant_changed"
          | "order.payment_status"
          | "status.sync"
          | (keyof WebpackEvents)
          | "alfa"
          | "beta"

    Parameters

    • event: Name
    • Optionalfilter: WaitForFilter

    Returns CancelablePromise<
        ListenerType<
            (
                BlocklistEventTypes & CallEventTypes & ChatEventTypes & ConfigEventTypes & ConnEventTypes & GroupEventTypes & OrderEventTypes & StatusEventTypes & WebpackEvents & {
                    alfa: string;
                    beta: (from: number, to: string) => void;
                }
            )[Name],
        >,
    >

  • Returns a thenable object (promise interface) that resolves when a specific event occurs

    Type Parameters

    • Name extends
          | "blocklist.sync"
          | "call.incoming_call"
          | (keyof ChatEventTypes)
          | "config.update"
          | (keyof ConnEventTypes)
          | "group.participant_changed"
          | "order.payment_status"
          | "status.sync"
          | (keyof WebpackEvents)
          | "alfa"
          | "beta"

    Parameters

    • event: Name
    • Optionaloptions: WaitForOptions

    Returns CancelablePromise<
        ListenerType<
            (
                BlocklistEventTypes & CallEventTypes & ChatEventTypes & ConfigEventTypes & ConnEventTypes & GroupEventTypes & OrderEventTypes & StatusEventTypes & WebpackEvents & {
                    alfa: string;
                    beta: (from: number, to: string) => void;
                }
            )[Name],
        >,
    >