summaryrefslogtreecommitdiff
path: root/src/tg-types
diff options
context:
space:
mode:
Diffstat (limited to 'src/tg-types')
-rw-r--r--src/tg-types/chat-type.lisp12
-rw-r--r--src/tg-types/chat.lisp4
2 files changed, 14 insertions, 2 deletions
diff --git a/src/tg-types/chat-type.lisp b/src/tg-types/chat-type.lisp
new file mode 100644
index 0000000..dc9147a
--- /dev/null
+++ b/src/tg-types/chat-type.lisp
@@ -0,0 +1,12 @@
1;; SPDX-License-Identifier: EUPL-1.2
2;; SPDX-FileCopyrightText: 2025 Uko Kokņevičs <perkontevs@gmail.com>
3(defpackage :ukkoclot/tg-types/chat-type
4 (:use :c2cl :ukkoclot/enum)
5 (:export :channel :chat-type :group :private :supergroup))
6(in-package :ukkoclot/tg-types/chat-type)
7
8(define-enum chat-type
9 (private "private")
10 (group "group")
11 (supergroup "supergroup")
12 (channel "channel"))
diff --git a/src/tg-types/chat.lisp b/src/tg-types/chat.lisp
index 3ad42ef..d4af5a1 100644
--- a/src/tg-types/chat.lisp
+++ b/src/tg-types/chat.lisp
@@ -1,7 +1,7 @@
1;; SPDX-License-Identifier: EUPL-1.2 1;; SPDX-License-Identifier: EUPL-1.2
2;; SPDX-FileCopyrightText: 2025 Uko Kokņevičs <perkontevs@gmail.com> 2;; SPDX-FileCopyrightText: 2025 Uko Kokņevičs <perkontevs@gmail.com>
3(defpackage :ukkoclot/tg-types/chat 3(defpackage :ukkoclot/tg-types/chat
4 (:use :c2cl :ukkoclot/tg-types/macros) 4 (:use :c2cl :ukkoclot/tg-types/chat-type :ukkoclot/tg-types/macros)
5 (:export 5 (:export
6 #:chat 6 #:chat
7 #:make-chat 7 #:make-chat
@@ -19,7 +19,7 @@
19 19
20(define-tg-type chat 20(define-tg-type chat
21 (id integer) 21 (id integer)
22 (type string nil) ;TODO: member of keywords 22 (type chat-type)
23 (title (or string null) nil) 23 (title (or string null) nil)
24 (username (or string null) nil) 24 (username (or string null) nil)
25 (first-name (or string null) nil) 25 (first-name (or string null) nil)