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-message.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-message.lisp')
| -rw-r--r-- | src/tg/send-message.lisp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/tg/send-message.lisp b/src/tg/send-message.lisp index d2e7248..7cd91d9 100644 --- a/src/tg/send-message.lisp +++ b/src/tg/send-message.lisp | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | :ukkoclot/tg/reply-keyboard-markup | 13 | :ukkoclot/tg/reply-keyboard-markup |
| 14 | :ukkoclot/tg/reply-keyboard-remove | 14 | :ukkoclot/tg/reply-keyboard-remove |
| 15 | :ukkoclot/tg/reply-parameters) | 15 | :ukkoclot/tg/reply-parameters) |
| 16 | (:export :send-message)) | 16 | (:export :reply-message :send-message)) |
| 17 | (in-package :ukkoclot/tg/send-message) | 17 | (in-package :ukkoclot/tg/send-message) |
| 18 | 18 | ||
| 19 | (define-tg-method (send-message message) | 19 | (define-tg-method (send-message message) |
| @@ -29,3 +29,14 @@ | |||
| 29 | (message-effect-id (or string null) nil) | 29 | (message-effect-id (or string null) nil) |
| 30 | (reply-parameters (or reply-parameters null) nil) | 30 | (reply-parameters (or reply-parameters null) nil) |
| 31 | (reply-markup (or inline-keyboard-markup reply-keyboard-markup reply-keyboard-remove force-reply null) nil)) | 31 | (reply-markup (or inline-keyboard-markup reply-keyboard-markup reply-keyboard-remove force-reply null) nil)) |
| 32 | |||
| 33 | (defun reply-message (bot msg text &key parse-mode allow-sending-without-reply) | ||
| 34 | (send-message bot | ||
| 35 | :chat-id (message-chat-id msg) | ||
| 36 | :text text | ||
| 37 | :parse-mode parse-mode | ||
| 38 | :reply-parameters | ||
| 39 | (make-reply-parameters | ||
| 40 | :allow-sending-without-reply allow-sending-without-reply | ||
| 41 | :message-id (message-id msg) | ||
| 42 | :chat-id (message-chat-id msg)))) | ||