telebot-ts API Documentation - v1.0.0
    Preparing search index...

    Type Alias JobCallback<_Data, C>

    JobCallback: (context: C) => Promise<void> | void

    Signature for job callback functions executed by the JobQueue.

    Type Parameters

    Type Declaration

      • (context: C): Promise<void> | void
      • Parameters

        • context: C

        Returns Promise<void> | void

    The Data type parameter is not part of the callback's own signature (job data is read via context.job?.data, matching Job.data); it exists so JobCallback<Data> stays paired with the Data used by Job, JobQueue.runOnce, and its siblings.