From 31a972d6825114b1a971e42cdc86e1bd7a9834c3 Mon Sep 17 00:00:00 2001 From: Uko Kokņevičs Date: Sun, 12 Oct 2025 22:14:39 +0300 Subject: Introduce enums and a pretty parse-mode type --- src/tg-types/parse-mode.lisp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/tg-types/parse-mode.lisp (limited to 'src/tg-types/parse-mode.lisp') diff --git a/src/tg-types/parse-mode.lisp b/src/tg-types/parse-mode.lisp new file mode 100644 index 0000000..80c24aa --- /dev/null +++ b/src/tg-types/parse-mode.lisp @@ -0,0 +1,11 @@ +;; SPDX-License-Identifier: EUPL-1.2 +;; SPDX-FileCopyrightText: 2025 Uko Kokņevičs +(defpackage :ukkoclot/tg-types/parse-mode + (:use :c2cl :ukkoclot/enum) + (:export :html :markdown-legacy :markdown :parse-mode)) +(in-package :ukkoclot/tg-types/parse-mode) + +(define-enum parse-mode + (markdown-legacy "Markdown") + (markdown "MarkdownV2") + (html "HTML")) -- cgit v1.2.3