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

    Class RRule

    Index
    • Constructs a new RRule instance from an RFC 5545 string or options object.

      Parameters

      • rule: string | RRuleOptions

        RFC 5545 string (e.g. "FREQ=DAILY;INTERVAL=2;BYHOUR=10") or RRuleOptions.

      • OptionaldefaultTimezone: string

        Optional default IANA timezone if not defined in string/options.

      Returns RRule

    options: RRuleOptions

    The normalized recurrence options.

    DAILY: 3 = Frequency.DAILY
    FR: Weekday = ...
    HOURLY: 4 = Frequency.HOURLY
    MINUTELY: 5 = Frequency.MINUTELY
    MO: Weekday = ...
    MONTHLY: 1 = Frequency.MONTHLY
    SA: Weekday = ...
    SECONDLY: 6 = Frequency.SECONDLY
    SU: Weekday = ...
    TH: Weekday = ...
    TU: Weekday = ...
    WE: Weekday = ...
    WEEKLY: 2 = Frequency.WEEKLY
    YEARLY: 0 = Frequency.YEARLY
    • Calculates the next occurrence strictly after the given date.

      Parameters

      • afterDate: Date = ...

        Timestamp anchor after which the next occurrence must occur (defaults to now).

      Returns Date | null

      Next execution Date, or null if series is exhausted.

    • Parses an RFC 5545 string into structured RRuleOptions.

      Parameters

      • str: string

        Standard RFC 5545 string.

      Returns RRuleOptions

      Structured options object.