summaryrefslogtreecommitdiff
path: root/src/tg/send-animation.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tg/send-animation.lisp')
-rw-r--r--src/tg/send-animation.lisp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tg/send-animation.lisp b/src/tg/send-animation.lisp
index 560b331..acddb21 100644
--- a/src/tg/send-animation.lisp
+++ b/src/tg/send-animation.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-animation 3(defpackage :ukkoclot/src/tg/send-animation
4 (:documentation "sendAnimation Telegram method") 4 (:documentation "sendAnimation 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
@@ -41,6 +42,14 @@
41 (reply-markup (or inline-keyboard-markup reply-keyboard-markup reply-keyboard-remove force-reply null) nil)) 42 (reply-markup (or inline-keyboard-markup reply-keyboard-markup reply-keyboard-remove force-reply null) nil))
42 43
43;; TODO: Some kind of caching for files? 44;; TODO: Some kind of caching for files?
45(-> reply-animation (message
46 pathname
47 &key
48 (:allow-sending-without-reply boolean)
49 (:text (or string null))
50 (:parse-mode (or parse-mode null))
51 (:caption-above boolean))
52 message)
44(defun reply-animation (msg animation &key allow-sending-without-reply text parse-mode caption-above) 53(defun reply-animation (msg animation &key allow-sending-without-reply text parse-mode caption-above)
45 "Shortcut to reply to a given MSG with an animation." 54 "Shortcut to reply to a given MSG with an animation."
46 (send-animation :chat-id (message-chat-id msg) 55 (send-animation :chat-id (message-chat-id msg)