Function: exportChat()
exportChat(
options):Promise<void>
Export messages as a PDF or a Markdown file.
"pdf" renders a branded, self-contained HTML document and drives it
through a hidden <iframe> + print() - so the browser’s print dialog
(defaulting to “Save as PDF”) opens directly, with no popup tab. If the
iframe path can’t run (e.g. no DOM body), the document is downloaded as a
self-contained .html file so the export - charts included - still lands.
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”Promise<void>