diff options
Diffstat (limited to 'src/tg/update.lisp')
| -rw-r--r-- | src/tg/update.lisp | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/tg/update.lisp b/src/tg/update.lisp new file mode 100644 index 0000000..1f0a463 --- /dev/null +++ b/src/tg/update.lisp | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | ;; SPDX-License-Identifier: EUPL-1.2 | ||
| 2 | ;; SPDX-FileCopyrightText: 2025 Uko Kokņevičs <perkontevs@gmail.com> | ||
| 3 | (defpackage :ukkoclot/tg/update | ||
| 4 | (:use | ||
| 5 | :c2cl | ||
| 6 | :ukkoclot/tg/macros | ||
| 7 | :ukkoclot/tg/business-connection | ||
| 8 | :ukkoclot/tg/callback-query | ||
| 9 | :ukkoclot/tg/message | ||
| 10 | :ukkoclot/tg/message-reaction-updated) | ||
| 11 | (:export | ||
| 12 | #:update | ||
| 13 | #:make-update | ||
| 14 | #:update-p | ||
| 15 | #:copy-update | ||
| 16 | #:update-update-id | ||
| 17 | #:update-message | ||
| 18 | #:update-edited-message | ||
| 19 | #:update-channel-post | ||
| 20 | #:update-edited-channel-post | ||
| 21 | #:update-business-connection | ||
| 22 | #:update-business-message | ||
| 23 | #:update-edited-business-message | ||
| 24 | #:update-message-reaction | ||
| 25 | #:update-callback-query)) | ||
| 26 | (in-package :ukkoclot/tg/update) | ||
| 27 | |||
| 28 | (define-tg-type update | ||
| 29 | (update-id integer) | ||
| 30 | (message (or message null) nil) | ||
| 31 | (edited-message (or message null) nil) | ||
| 32 | (channel-post (or message null) nil) | ||
| 33 | (edited-channel-post (or message null) nil) | ||
| 34 | (business-connection (or business-connection null) nil) | ||
| 35 | (business-message (or message null) nil) | ||
| 36 | (edited-business-message (or message null) nil) | ||
| 37 | ;; (deleted-business-messages (or business-messages-deleted null) nil) | ||
| 38 | (message-reaction (or message-reaction-updated null) nil) | ||
| 39 | ;; (message-reaction-count (or message-reaction-count-updated null) nil) | ||
| 40 | ;; (inline-query (or inline-query null) nil) | ||
| 41 | ;; (chosen-inline-result (or chosen-inline-result null) nil) | ||
| 42 | (callback-query (or callback-query null) nil) | ||
| 43 | ;; (shipping-query (or shipping-query null) nil) | ||
| 44 | ;; (pre-checkout-query (or pre-checkout-query null) nil) | ||
| 45 | ;; (poll (or poll null) nil) | ||
| 46 | ;; (poll-answer (or poll-answer null) nil) | ||
| 47 | ;; (my-chat-member (or chat-member-updated null) nil) | ||
| 48 | ;; (chat-member (or chat-member-updated null) nil) | ||
| 49 | ;; (chat-join-request (or chat-join-request null) nil) | ||
| 50 | ;; (chat-boost (or chat-boost-updated null) nil) | ||
| 51 | ;; (removed-chat-boost (or chat-boost-removed) nil) | ||
| 52 | ) | ||