blob: a6ad9ba7fb2e9ea95037699042aa821e39d170e3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
;; SPDX-License-Identifier: EUPL-1.2
;; SPDX-FileCopyrightText: 2025 Uko Kokņevičs <perkontevs@gmail.com>
(defpackage :ukkoclot/bot/advanced
(:use :c2cl :ukkoclot/bot/impl :ukkoclot/bot/methods :ukkoclot/tg-types)
(:export :bot-id :bot-username :reply-message))
(in-package :ukkoclot/bot/advanced)
(defun bot-id (bot)
(or (bot-id% bot)
(progn
(get-me bot)
(bot-id% bot))))
(defun bot-username (bot)
(or (bot-username% bot)
(progn
(get-me bot)
(bot-username% bot))))
(defun reply-message (bot msg text &key parse-mode allow-sending-without-reply)
(send-message bot
:chat-id (message-chat-id msg)
:text text
:parse-mode parse-mode
:reply-parameters
(make-reply-parameters
:allow-sending-without-reply allow-sending-without-reply
:message-id (message-id msg)
:chat-id (message-chat-id msg))))
|