mirror of
https://github.com/vale981/cl-telegram-bot
synced 2025-03-05 09:41:39 -05:00
fixed make-request
This commit is contained in:
parent
3418a333f9
commit
4a4b96ee4c
1 changed files with 2 additions and 1 deletions
|
@ -34,6 +34,7 @@
|
|||
(token
|
||||
:initarg :token
|
||||
:documentation "Bot token given by BotFather"
|
||||
:accessor token
|
||||
:initform nil)
|
||||
(endpoint
|
||||
:initarg :endpoint
|
||||
|
@ -43,7 +44,7 @@
|
|||
|
||||
(defmethod initialize-instance :after ((b bot) &key)
|
||||
(setf (endpoint b)
|
||||
(concatenate 'string +telegram-api-uri+ (endpoint b) "/")))
|
||||
(concatenate 'string +telegram-api-uri+ (token b) "/")))
|
||||
|
||||
(defun make-bot (token)
|
||||
"Create a new bot instance. Takes a token string."
|
||||
|
|
Loading…
Add table
Reference in a new issue