cl-telebot

2021-10-21

Common Lisp Telegram Bot API

Upstream URL

github.com/gzip4/cl-telebot

Author

gzip4 <gzip4ever@gmail.com>

License

MIT
README
Provided Systems

Common Lisp Telegram Bot API

Quicklisp dist

See the Telegram Bot API.

Code samples:

;; Simple echo bot
(telebot:long-polling (make-instance 'telebot:echo-bot :token "<token>"))

;; Custom bot
(defclass my-bot (telebot:bot) ())
(defmethod telebot:on-update ((bot my-bot) update)
   (let ((text (telebot:message-text (telebot:update-message update))))
      ;; do something useful
      )
   
   (telebot:reply "some text")      ; reply current message, if any
   (telebot:send-message "<chat-id>" "some text")
   nil)
(telebot:long-polling (make-instance 'my-bot :token "<token>"))

Dependencies (3)

  • alexandria
  • dexador
  • jonathan

Dependents (0)

    • GitHub
    • Quicklisp