ReadonlybotThe Bot client instance associated with this scheduler.
OptionalerrorOptional centralized error handler callback delegate.
Whether the job queue is currently active.
Internal
Internal helper to remove a job from tracking and indexes.
Job instance to remove.
Registers a named callback so persisted jobs can re-bind on application restart.
The job name.
The handler function.
Restores jobs from persistence using registered named callbacks.
Array of stored PersistedJob records.
Schedules a job to run daily at a specified time and optional days of the week.
The async function to execute.
Specific hour, minute, and second of execution.
Array of weekday numbers (0 = Sunday, 6 = Saturday) when the job runs.
Optionaldata: Data
Optional custom data payload.
Optionalname: string
Optional job name.
Optionalchat_id: string | number
Optional associated chat ID.
Optionaluser_id: number
Optional associated user ID.
The created daily recurring Job instance.
Schedules a one-off job to run after a specified duration or at a specific date.
The async function to execute.
Number of seconds in the future or a Date object.
Optionaldata: Data
Optional data payload passed to the job callback.
Optionalname: string
Optional job name (defaults to anonymous identifier).
Optionalchat_id: string | number
Optional associated chat ID.
Optionaluser_id: number
Optional associated user ID.
The created Job instance.
Schedules a recurring job that executes repeatedly at a fixed interval.
The async function to execute.
Interval in seconds between executions.
Optionalfirst: number | Date
Optional delay (seconds) or Date before the first run.
Optionaldata: Data
Optional custom data payload.
Optionalname: string
Optional job name.
Optionalchat_id: string | number
Optional associated chat ID.
Optionaluser_id: number
Optional associated user ID.
The created recurring Job instance.
Schedules a job using an RFC 5545 Recurrence Rule (RRule) with full Timezone support.
The async function to execute.
Configuration options specifying rrule, timezone, data, and job metadata.
The created recurring Job instance, or null if the rule cannot generate future occurrences.
Starts the job queue and activates all scheduled jobs.
Stops the job queue and cancels all pending timeouts.
Serializes all active jobs into PersistedJob descriptors for persistence.
Array of PersistedJob records.
Central scheduler for managing and executing background timers, intervals, and persistent jobs.