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

    Class Weekday

    Weekday representation with RFC 5545 nth occurrence support. Note: Numeric weekday values use 0 = MO (Monday) through 6 = SU (Sunday) per RFC 5545 / ISO 8601, distinct from JavaScript's Date.prototype.getDay() (where 0 is Sunday).

    Index
    • Parameters

      • weekday: number
      • Optionaln: number

      Returns Weekday

    n?: number
    weekday: number
    • Returns an instance representing the nth occurrence of this weekday (e.g. 1st Friday of month or -1 for last Friday).

      Parameters

      • n: number

      Returns Weekday

    • Returns string