diff options
| author | 2025-10-12 23:55:11 +0300 | |
|---|---|---|
| committer | 2025-10-12 23:55:11 +0300 | |
| commit | fd245cd23ce79af85adc814b91a91902912e6de0 (patch) | |
| tree | a293cf0aae3d9c043d50f42ace88ce64a052e595 /src | |
| parent | Added BusinessBotRights and BusinessConnection (diff) | |
| download | ukkoclot-fd245cd23ce79af85adc814b91a91902912e6de0.tar.gz ukkoclot-fd245cd23ce79af85adc814b91a91902912e6de0.tar.xz ukkoclot-fd245cd23ce79af85adc814b91a91902912e6de0.zip | |
Some more TG types
Diffstat (limited to 'src')
| -rw-r--r-- | src/tg-types.lisp | 5 | ||||
| -rw-r--r-- | src/tg-types/message-reaction-updated.lisp | 31 | ||||
| -rw-r--r-- | src/tg-types/reaction-type-custom-emoji.lisp | 20 | ||||
| -rw-r--r-- | src/tg-types/reaction-type-emoji.lisp | 20 | ||||
| -rw-r--r-- | src/tg-types/reaction-type-paid.lisp | 18 | ||||
| -rw-r--r-- | src/tg-types/reaction-type.lisp | 14 | ||||
| -rw-r--r-- | src/tg-types/update.lisp | 6 |
7 files changed, 112 insertions, 2 deletions
diff --git a/src/tg-types.lisp b/src/tg-types.lisp index 15dd7d6..24d4923 100644 --- a/src/tg-types.lisp +++ b/src/tg-types.lisp | |||
| @@ -22,8 +22,13 @@ | |||
| 22 | :ukkoclot/tg-types/message | 22 | :ukkoclot/tg-types/message |
| 23 | :ukkoclot/tg-types/message-entity | 23 | :ukkoclot/tg-types/message-entity |
| 24 | :ukkoclot/tg-types/message-entity-type | 24 | :ukkoclot/tg-types/message-entity-type |
| 25 | :ukkoclot/tg-types/message-reaction-updated | ||
| 25 | :ukkoclot/tg-types/parse-mode | 26 | :ukkoclot/tg-types/parse-mode |
| 26 | :ukkoclot/tg-types/photo-size | 27 | :ukkoclot/tg-types/photo-size |
| 28 | :ukkoclot/tg-types/reaction-type | ||
| 29 | :ukkoclot/tg-types/reaction-type-custom-emoji | ||
| 30 | :ukkoclot/tg-types/reaction-type-emoji | ||
| 31 | :ukkoclot/tg-types/reaction-type-paid | ||
| 27 | :ukkoclot/tg-types/reply-keyboard-markup | 32 | :ukkoclot/tg-types/reply-keyboard-markup |
| 28 | :ukkoclot/tg-types/reply-keyboard-remove | 33 | :ukkoclot/tg-types/reply-keyboard-remove |
| 29 | :ukkoclot/tg-types/reply-parameters | 34 | :ukkoclot/tg-types/reply-parameters |
diff --git a/src/tg-types/message-reaction-updated.lisp b/src/tg-types/message-reaction-updated.lisp new file mode 100644 index 0000000..38d506f --- /dev/null +++ b/src/tg-types/message-reaction-updated.lisp | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | ;; SPDX-License-Identifier: EUPL-1.2 | ||
| 2 | ;; SPDX-FileCopyrightText: 2025 Uko Kokņevičs <perkontevs@gmail.com> | ||
| 3 | (defpackage :ukkoclot/tg-types/message-reaction-updated | ||
| 4 | (:use | ||
| 5 | :c2cl | ||
| 6 | :ukkoclot/tg-types/chat | ||
| 7 | :ukkoclot/tg-types/macros | ||
| 8 | :ukkoclot/tg-types/reaction-type | ||
| 9 | :ukkoclot/tg-types/user) | ||
| 10 | (:export | ||
| 11 | #:message-reaction-updated | ||
| 12 | #:make-message-reaction-updated | ||
| 13 | #:message-reaction-updated-p | ||
| 14 | #:copy-message-reaction-updated | ||
| 15 | #:message-reaction-updated-chat | ||
| 16 | #:message-reaction-updated-message-id | ||
| 17 | #:message-reaction-updated-user | ||
| 18 | #:message-reaction-updated-actor-chat | ||
| 19 | #:message-reaction-updated-date | ||
| 20 | #:message-reaction-updated-old-reaction | ||
| 21 | #:message-reaction-updated-new-reaction)) | ||
| 22 | (in-package :ukkoclot/tg-types/message-reaction-updated) | ||
| 23 | |||
| 24 | (define-tg-type message-reaction-updated | ||
| 25 | (chat chat) | ||
| 26 | (message-id integer) | ||
| 27 | (user (or user null) nil) | ||
| 28 | (actor-chat (or chat null) nil) | ||
| 29 | (date integer) | ||
| 30 | (old-reaction (array reaction-type)) | ||
| 31 | (new-reaction (array reaction-type))) | ||
diff --git a/src/tg-types/reaction-type-custom-emoji.lisp b/src/tg-types/reaction-type-custom-emoji.lisp new file mode 100644 index 0000000..353e78f --- /dev/null +++ b/src/tg-types/reaction-type-custom-emoji.lisp | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | ;; SPDX-License-Identifier: EUPL-1.2 | ||
| 2 | ;; SPDX-FileCopyrightText: 2025 Uko Kokņevičs <perkontevs@gmail.com> | ||
| 3 | (defpackage :ukkoclot/tg-types/reaction-type-custom-emoji | ||
| 4 | (:use :c2cl :ukkoclot/enum :ukkoclot/tg-types/macros) | ||
| 5 | (:export | ||
| 6 | #:custom-emoji-type | ||
| 7 | #:reaction-type-custom-emoji-type | ||
| 8 | #:reaction-type-custom-emoji | ||
| 9 | #:make-reaction-type-custom-emoji | ||
| 10 | #:reaction-type-custom-emoji-p | ||
| 11 | #:copy-reaction-type-custom-emoji | ||
| 12 | #:reaction-type-custom-emoji-custom-emoji-id)) | ||
| 13 | (in-package :ukkoclot/tg-types/reaction-type-custom-emoji) | ||
| 14 | |||
| 15 | (define-enum reaction-type-custom-emoji-type | ||
| 16 | (custom-emoji-type "custom_emoji")) | ||
| 17 | |||
| 18 | (define-tg-type reaction-type-custom-emoji | ||
| 19 | (type reaction-type-custom-emoji-type) | ||
| 20 | (custom-emoji-id string)) | ||
diff --git a/src/tg-types/reaction-type-emoji.lisp b/src/tg-types/reaction-type-emoji.lisp new file mode 100644 index 0000000..c7aeebb --- /dev/null +++ b/src/tg-types/reaction-type-emoji.lisp | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | ;; SPDX-License-Identifier: EUPL-1.2 | ||
| 2 | ;; SPDX-FileCopyrightText: 2025 Uko Kokņevičs <perkontevs@gmail.com> | ||
| 3 | (defpackage :ukkoclot/tg-types/reaction-type-emoji | ||
| 4 | (:use :c2cl :ukkoclot/enum :ukkoclot/tg-types/macros) | ||
| 5 | (:export | ||
| 6 | #:reaction-type-emoji-type | ||
| 7 | #:emoji-type | ||
| 8 | #:reaction-type-emoji | ||
| 9 | #:make-reaction-type-emoji | ||
| 10 | #:reaction-type-emoji-p | ||
| 11 | #:copy-reaction-type-emoji | ||
| 12 | #:reaction-type-emoji-emoji)) | ||
| 13 | (in-package :ukkoclot/tg-types/reaction-type-emoji) | ||
| 14 | |||
| 15 | (define-enum reaction-type-emoji-type | ||
| 16 | (emoji-type "emoji")) | ||
| 17 | |||
| 18 | (define-tg-type reaction-type-emoji | ||
| 19 | (type reaction-type-emoji-type) | ||
| 20 | (emoji string)) | ||
diff --git a/src/tg-types/reaction-type-paid.lisp b/src/tg-types/reaction-type-paid.lisp new file mode 100644 index 0000000..260ddf7 --- /dev/null +++ b/src/tg-types/reaction-type-paid.lisp | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | ;; SPDX-License-Identifier: EUPL-1.2 | ||
| 2 | ;; SPDX-FileCopyrightText: 2025 Uko Kokņevičs <perkontevs@gmail.com> | ||
| 3 | (defpackage :ukkoclot/tg-types/reaction-type-paid | ||
| 4 | (:use :c2cl :ukkoclot/enum :ukkoclot/tg-types/macros) | ||
| 5 | (:export | ||
| 6 | #:reaction-type-paid-type | ||
| 7 | #:paid-type | ||
| 8 | #:reaction-type-paid | ||
| 9 | #:make-reaction-type-paid | ||
| 10 | #:reaction-type-paid-p | ||
| 11 | #:copy-reaction-type-paid)) | ||
| 12 | (in-package :ukkoclot/tg-types/reaction-type-paid) | ||
| 13 | |||
| 14 | (define-enum reaction-type-paid-type | ||
| 15 | (paid-type "paid")) | ||
| 16 | |||
| 17 | (define-tg-type reaction-type-paid | ||
| 18 | (type reaction-type-paid-type)) | ||
diff --git a/src/tg-types/reaction-type.lisp b/src/tg-types/reaction-type.lisp new file mode 100644 index 0000000..4eb0d0b --- /dev/null +++ b/src/tg-types/reaction-type.lisp | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | ;; SPDX-License-Identifier: EUPL-1.2 | ||
| 2 | ;; SPDX-FileCopyrightText: 2025 Uko Kokņevičs <perkontevs@gmail.com> | ||
| 3 | (defpackage :ukkoclot/tg-types/reaction-type | ||
| 4 | (:use | ||
| 5 | :c2cl | ||
| 6 | :ukkoclot/tg-types/macros | ||
| 7 | :ukkoclot/tg-types/reaction-type-custom-emoji | ||
| 8 | :ukkoclot/tg-types/reaction-type-emoji | ||
| 9 | :ukkoclot/tg-types/reaction-type-paid) | ||
| 10 | (:export :reaction-type)) | ||
| 11 | (in-package :ukkoclot/tg-types/reaction-type) | ||
| 12 | |||
| 13 | (deftype reaction-type () | ||
| 14 | '(or reaction-type-emoji reaction-type-custom-emoji reaction-type-paid)) | ||
diff --git a/src/tg-types/update.lisp b/src/tg-types/update.lisp index bc08984..be4cb32 100644 --- a/src/tg-types/update.lisp +++ b/src/tg-types/update.lisp | |||
| @@ -6,7 +6,8 @@ | |||
| 6 | :ukkoclot/tg-types/macros | 6 | :ukkoclot/tg-types/macros |
| 7 | :ukkoclot/tg-types/business-connection | 7 | :ukkoclot/tg-types/business-connection |
| 8 | :ukkoclot/tg-types/callback-query | 8 | :ukkoclot/tg-types/callback-query |
| 9 | :ukkoclot/tg-types/message) | 9 | :ukkoclot/tg-types/message |
| 10 | :ukkoclot/tg-types/message-reaction-updated) | ||
| 10 | (:export | 11 | (:export |
| 11 | #:update | 12 | #:update |
| 12 | #:make-update | 13 | #:make-update |
| @@ -20,6 +21,7 @@ | |||
| 20 | #:update-business-connection | 21 | #:update-business-connection |
| 21 | #:update-business-message | 22 | #:update-business-message |
| 22 | #:update-edited-business-message | 23 | #:update-edited-business-message |
| 24 | #:update-message-reaction | ||
| 23 | #:update-callback-query)) | 25 | #:update-callback-query)) |
| 24 | (in-package :ukkoclot/tg-types/update) | 26 | (in-package :ukkoclot/tg-types/update) |
| 25 | 27 | ||
| @@ -33,7 +35,7 @@ | |||
| 33 | (business-message (or message null) nil) | 35 | (business-message (or message null) nil) |
| 34 | (edited-business-message (or message null) nil) | 36 | (edited-business-message (or message null) nil) |
| 35 | ;; (deleted-business-messages (or business-messages-deleted null) nil) | 37 | ;; (deleted-business-messages (or business-messages-deleted null) nil) |
| 36 | ;; (message-reaction (or message-reaction-updated null) nil) | 38 | (message-reaction (or message-reaction-updated null) nil) |
| 37 | ;; (message-reaction-count (or message-reaction-count-updated null) nil) | 39 | ;; (message-reaction-count (or message-reaction-count-updated null) nil) |
| 38 | ;; (inline-query (or inline-query null) nil) | 40 | ;; (inline-query (or inline-query null) nil) |
| 39 | ;; (chosen-inline-result (or chosen-inline-result null) nil) | 41 | ;; (chosen-inline-result (or chosen-inline-result null) nil) |