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

    Function assertNumber

    • Asserts that a value is a valid finite number.

      Parameters

      • value: unknown

        The value to check.

      • name: string

        The name of the parameter/field being validated (for error reporting).

      Returns asserts value is number

      TypeError When the value is not a number or is NaN.

      assertNumber(chatId, "chatId");