diff options
Diffstat (limited to 'src/tg/keyboard-button-request-chat.lisp')
| -rw-r--r-- | src/tg/keyboard-button-request-chat.lisp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/tg/keyboard-button-request-chat.lisp b/src/tg/keyboard-button-request-chat.lisp new file mode 100644 index 0000000..07f0d27 --- /dev/null +++ b/src/tg/keyboard-button-request-chat.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/keyboard-button-request-chat | ||
| 4 | (:use :c2cl :ukkoclot/tg/chat-administrator-rights :ukkoclot/tg/macros) | ||
| 5 | (:export | ||
| 6 | #:keyboard-button-request-chat | ||
| 7 | #:make-keyboard-button-request-chat | ||
| 8 | #:keyboard-button-request-chat-p | ||
| 9 | #:copy-keyboard-button-request-chat | ||
| 10 | #:keyboard-button-request-chat-request-id | ||
| 11 | #:keyboard-button-request-chat-chat-is-channel | ||
| 12 | #:keyboard-button-request-chat-chat-is-created | ||
| 13 | #:keyboard-button-request-chat-user-administrator-rights | ||
| 14 | #:keyboard-button-request-chat-bot-administrator-rights | ||
| 15 | #:keyboard-button-request-chat-bot-is-member | ||
| 16 | #:keyboard-button-request-chat-request-title | ||
| 17 | #:keyboard-button-request-chat-request-username | ||
| 18 | #:keyboard-button-request-chat-request-photo)) | ||
| 19 | (in-package :ukkoclot/tg/keyboard-button-request-chat) | ||
| 20 | |||
| 21 | (define-tg-type keyboard-button-request-chat | ||
| 22 | (request-id integer) | ||
| 23 | (chat-is-channel boolean) | ||
| 24 | ;; TODO: (chat-is-forum ternary nil) | ||
| 25 | ;; TODO: (chat-has-username ternary nil) | ||
| 26 | (chat-is-created boolean nil) | ||
| 27 | (user-administrator-rights (or chat-administrator-rights null) nil) | ||
| 28 | (bot-administrator-rights (or chat-administrator-rights null) nil) | ||
| 29 | (bot-is-member boolean nil) | ||
| 30 | (request-title boolean nil) | ||
| 31 | (request-username boolean nil) | ||
| 32 | (request-photo boolean nil)) | ||