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

    Function spoiler

    • Wraps text with spoiler concealment formatting.

      Parameters

      • text: string

        Content to conceal behind spoiler.

      • mode: "MarkdownV2" | "HTML" = "HTML"

        Target parse mode ("HTML" or "MarkdownV2"). Default: "HTML".

      Returns string

      Formatted spoiler string.