diff options
Diffstat (limited to 'src/tg/reply-parameters.lisp')
| -rw-r--r-- | src/tg/reply-parameters.lisp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/tg/reply-parameters.lisp b/src/tg/reply-parameters.lisp new file mode 100644 index 0000000..e41d837 --- /dev/null +++ b/src/tg/reply-parameters.lisp | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | ;; SPDX-License-Identifier: EUPL-1.2 | ||
| 2 | ;; SPDX-FileCopyrightText: 2025 Uko Kokņevičs <perkontevs@gmail.com> | ||
| 3 | (defpackage :ukkoclot/tg/reply-parameters | ||
| 4 | (:use :c2cl :ukkoclot/tg/macros :ukkoclot/tg/message-entity) | ||
| 5 | (:export | ||
| 6 | #:reply-parameters | ||
| 7 | #:make-reply-parameters | ||
| 8 | #:reply-parameters-p | ||
| 9 | #:copy-reply-parameters | ||
| 10 | #:reply-parameters-message-id | ||
| 11 | #:reply-parameters-chat-id | ||
| 12 | #:reply-parameters-allow-sending-without-reply | ||
| 13 | #:reply-parameters-quote | ||
| 14 | #:reply-parameters-quote-parse-mode | ||
| 15 | #:reply-parameters-quote-entities | ||
| 16 | #:reply-parameters-quote-position | ||
| 17 | #:reply-parameters-checklist-task-id)) | ||
| 18 | (in-package :ukkoclot/tg/reply-parameters) | ||
| 19 | |||
| 20 | (define-tg-type reply-parameters | ||
| 21 | (message-id integer) | ||
| 22 | (chat-id (or integer string null) nil) | ||
| 23 | ;; TODO: This should be a ternary true, false, default | ||
| 24 | (allow-sending-without-reply boolean nil) | ||
| 25 | (quote (or string null) nil) | ||
| 26 | (quote-parse-mode (or string null) nil) | ||
| 27 | (quote-entities (or (array message-entity) null) nil) | ||
| 28 | (quote-position (or integer null) nil) | ||
| 29 | (checklist-task-id (or integer null) nil)) | ||