diff options
Diffstat (limited to 'src/tg/photo-size.lisp')
| -rw-r--r-- | src/tg/photo-size.lisp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/tg/photo-size.lisp b/src/tg/photo-size.lisp new file mode 100644 index 0000000..32b586c --- /dev/null +++ b/src/tg/photo-size.lisp | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | ;; SPDX-License-Identifier: EUPL-1.2 | ||
| 2 | ;; SPDX-FileCopyrightText: 2025 Uko Kokņevičs <perkontevs@gmail.com> | ||
| 3 | (defpackage :ukkoclot/tg/photo-size | ||
| 4 | (:use :c2cl :ukkoclot/tg/macros) | ||
| 5 | (:export | ||
| 6 | #:photo-size | ||
| 7 | #:make-photo-size | ||
| 8 | #:photo-size-p | ||
| 9 | #:copy-photo-size | ||
| 10 | #:photo-size-file-id | ||
| 11 | #:photo-size-file-unique-id | ||
| 12 | #:photo-size-width | ||
| 13 | #:photo-size-height | ||
| 14 | #:photo-size-file-size)) | ||
| 15 | (in-package :ukkoclot/tg/photo-size) | ||
| 16 | |||
| 17 | (define-tg-type photo-size | ||
| 18 | (file-id string) | ||
| 19 | (file-unique-id string) | ||
| 20 | (width integer) | ||
| 21 | (height integer) | ||
| 22 | (file-size (or integer null) nil)) | ||