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

    Function assertNonEmptyString

    • Asserts that a value is a non-empty string.

      Parameters

      • value: unknown

        The value to check.

      • name: string

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

      Returns asserts value is string

      TypeError When the value is not a string or contains only whitespace.

      assertNonEmptyString(token, "token");