diff options
| author | 2025-10-23 10:17:00 +0300 | |
|---|---|---|
| committer | 2025-10-23 10:32:36 +0300 | |
| commit | fec434a4e2d0ff65510581e461d87a945d25759a (patch) | |
| tree | 676891233e6121f8801f4751d3e2d1ca7ad4e09c /src/tg/send-message.lisp | |
| parent | Use alexandria's make-keyword & symbolicate (diff) | |
| download | ukkoclot-fec434a4e2d0ff65510581e461d87a945d25759a.tar.gz ukkoclot-fec434a4e2d0ff65510581e461d87a945d25759a.tar.xz ukkoclot-fec434a4e2d0ff65510581e461d87a945d25759a.zip | |
Use serapeum's -> & defsubst
Diffstat (limited to 'src/tg/send-message.lisp')
| -rw-r--r-- | src/tg/send-message.lisp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tg/send-message.lisp b/src/tg/send-message.lisp index befecbe..7c24f87 100644 --- a/src/tg/send-message.lisp +++ b/src/tg/send-message.lisp | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | ;; SPDX-FileCopyrightText: 2025 Uko Kokņevičs <perkontevs@gmail.com> | 2 | ;; SPDX-FileCopyrightText: 2025 Uko Kokņevičs <perkontevs@gmail.com> |
| 3 | (defpackage :ukkoclot/src/tg/send-message | 3 | (defpackage :ukkoclot/src/tg/send-message |
| 4 | (:documentation "sendMessage Telegram method") | 4 | (:documentation "sendMessage Telegram method") |
| 5 | (:import-from :serapeum :->) | ||
| 5 | (:use | 6 | (:use |
| 6 | :c2cl | 7 | :c2cl |
| 7 | :ukkoclot/src/tg/force-reply | 8 | :ukkoclot/src/tg/force-reply |
| @@ -31,6 +32,11 @@ | |||
| 31 | (reply-parameters (or reply-parameters null) nil) | 32 | (reply-parameters (or reply-parameters null) nil) |
| 32 | (reply-markup (or inline-keyboard-markup reply-keyboard-markup reply-keyboard-remove force-reply null) nil)) | 33 | (reply-markup (or inline-keyboard-markup reply-keyboard-markup reply-keyboard-remove force-reply null) nil)) |
| 33 | 34 | ||
| 35 | (-> reply-message (message | ||
| 36 | string | ||
| 37 | &key | ||
| 38 | (:parse-mode (or parse-mode null)) | ||
| 39 | (:allow-sending-without-reply boolean))) | ||
| 34 | (defun reply-message (msg text &key parse-mode allow-sending-without-reply) | 40 | (defun reply-message (msg text &key parse-mode allow-sending-without-reply) |
| 35 | "Shortcut to reply to a given MSG." | 41 | "Shortcut to reply to a given MSG." |
| 36 | (send-message :chat-id (message-chat-id msg) | 42 | (send-message :chat-id (message-chat-id msg) |