diff options
| author | 2025-10-13 06:48:00 +0300 | |
|---|---|---|
| committer | 2025-10-13 06:48:00 +0300 | |
| commit | 8b8bd2b811ed4097a3aaf8785d233bd012d22ac0 (patch) | |
| tree | 99ff57559866e712b5a9b1b587ba54f3095a779e /src/tg/send-animation.lisp | |
| parent | Move bot/methods to tg/* (diff) | |
| download | ukkoclot-8b8bd2b811ed4097a3aaf8785d233bd012d22ac0.tar.gz ukkoclot-8b8bd2b811ed4097a3aaf8785d233bd012d22ac0.tar.xz ukkoclot-8b8bd2b811ed4097a3aaf8785d233bd012d22ac0.zip | |
Move bot/adanced to tg/*
Diffstat (limited to 'src/tg/send-animation.lisp')
| -rw-r--r-- | src/tg/send-animation.lisp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/tg/send-animation.lisp b/src/tg/send-animation.lisp index e9558fa..97dd9f0 100644 --- a/src/tg/send-animation.lisp +++ b/src/tg/send-animation.lisp | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | :ukkoclot/tg/reply-keyboard-remove | 13 | :ukkoclot/tg/reply-keyboard-remove |
| 14 | :ukkoclot/tg/reply-parameters | 14 | :ukkoclot/tg/reply-parameters |
| 15 | :ukkoclot/tg/suggested-post-parameters) | 15 | :ukkoclot/tg/suggested-post-parameters) |
| 16 | (:export :send-animation)) | 16 | (:export :reply-animation :send-animation)) |
| 17 | (in-package :ukkoclot/tg/send-animation) | 17 | (in-package :ukkoclot/tg/send-animation) |
| 18 | 18 | ||
| 19 | (define-tg-method (send-animation message) | 19 | (define-tg-method (send-animation message) |
| @@ -38,3 +38,17 @@ | |||
| 38 | (suggested-post-parameters (or suggested-post-parameters null) nil) | 38 | (suggested-post-parameters (or suggested-post-parameters null) nil) |
| 39 | (reply-parameters (or reply-parameters null) nil) | 39 | (reply-parameters (or reply-parameters null) nil) |
| 40 | (reply-markup (or inline-keyboard-markup reply-keyboard-markup reply-keyboard-remove force-reply null) nil)) | 40 | (reply-markup (or inline-keyboard-markup reply-keyboard-markup reply-keyboard-remove force-reply null) nil)) |
| 41 | |||
| 42 | ;; TODO: Some kind of caching for files? | ||
| 43 | (defun reply-animation (bot msg animation &key allow-sending-without-reply text parse-mode caption-above) | ||
| 44 | (send-animation bot | ||
| 45 | :chat-id (message-chat-id msg) | ||
| 46 | :animation animation | ||
| 47 | :caption text | ||
| 48 | :parse-mode parse-mode | ||
| 49 | :show-caption-above-media caption-above | ||
| 50 | :reply-parameters | ||
| 51 | (make-reply-parameters | ||
| 52 | :allow-sending-without-reply allow-sending-without-reply | ||
| 53 | :message-id (message-id msg) | ||
| 54 | :chat-id (message-chat-id msg)))) | ||