diff options
Diffstat (limited to 'src/tg-types/reply-parameters.lisp')
| -rw-r--r-- | src/tg-types/reply-parameters.lisp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/tg-types/reply-parameters.lisp b/src/tg-types/reply-parameters.lisp new file mode 100644 index 0000000..5f0595d --- /dev/null +++ b/src/tg-types/reply-parameters.lisp | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | ;; SPDX-License-Identifier: EUPL-1.2 | ||
| 2 | ;; SPDX-FileCopyrightText: 2025 Uko Kokņevičs <perkontevs@gmail.com> | ||
| 3 | (defpackage :ukkoclot/tg-types/reply-parameters | ||
| 4 | (:use :c2cl :ukkoclot/tg-types/macros :ukkoclot/tg-types/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 | |||
| 19 | hash->reply-parameters | ||
| 20 | parse-reply-parameters-array)) | ||
| 21 | (in-package :ukkoclot/tg-types/reply-parameters) | ||
| 22 | |||
| 23 | (define-tg-type reply-parameters | ||
| 24 | (message-id integer) | ||
| 25 | (chat-id (or integer string null) nil) | ||
| 26 | ;; Technically true if on a business account but yeah right lmao | ||
| 27 | (allow-sending-without-reply boolean nil) | ||
| 28 | (quote (or string null) nil) | ||
| 29 | (quote-parse-mode (or string null) nil) | ||
| 30 | (quote-entities (or (array message-entity) null) nil) | ||
| 31 | (quote-position (or integer null) nil) | ||
| 32 | (checklist-task-id (or integer null) nil)) | ||