See the Telegram Bot API, CL-Telegram-API
This Bot uses CLOS to build a processing pipeline.
frist of all check if your machine have SBCL, quicklisp (in your .sbclrc file too)
add cl-telegram-bot to your local-projects
$ cd ~/quicklisp/local-projects
$ git clone https://github.com/40ants/cl-telegram-bot.git
install the package "cl-telegram-bot/core"
$ sbcl
* (ql:quickload "cl-telegram-bot/core")
then
begin set the variable and export in your local .bashrc (or in your others shell bashs)
export API_TELEGRAM_BOTNET="youid:keyfrombotfather"
or just
$ echo 'export API_TELEGRAM_BOTNET="youid:keyfrombotfather"' >> /home/$USER/.bashrc
$ source ~/.bashrc
Now run inside Cameron folder
$ sh start.sh
Now, apreciate and Hack Your Own bot make in Common Lisp.