fixed make-request

This commit is contained in:
unwind-protect 2016-08-17 19:57:24 +02:00
parent 3418a333f9
commit 4a4b96ee4c

View file

@ -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."