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

    Function code

    • Wraps text in an inline code or multi-line preformatted code block.

      Parameters

      • text: string

        Code text (will be escaped).

      • Optionallanguage: string

        Optional syntax highlighting language (e.g. "typescript").

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

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

      Returns string

      Formatted code block string.