(in-package :cl-telegram-bot)
(setf *bot* (make-bot "KEY"))
(let ((channel (lparallel:make-channel)))
(lparallel:submit-task channel #'(lambda ()
(loop
(fetch-updates *bot*)
(sleep 0.1)))))
(defun send-trivia-question ()
(let* ((question (-> (dex:get "https://opentdb.com/api.php?amount=1&type=boolean" :want-stream t)
(json:decode-json)
(second)
(getf :results))
)
(keyboard (make-inline-keyboard '(((:text "True" :callback--data "True")
(:text "False" :callback--data "False"))))))
($ (send-message 133107019 (format nil "~A