Building a Telegram Bot in Haskell (Part 2)
summary
Builds a working Telegram todo bot in Haskell and shows concrete code: uses Stack GHCi ghcid, imports like Control.Monad.Trans and Data.Time, lifts IO with liftIO to get current time, parses commands with applicative parsers, and renders reply and inline keyboards to edit messages and attach per-item actions. Adds remove-by-title, reminders, and a scheduler via STM queues; scales to many chats with a conversation-bot combinator that maps chat IDs to models. Demo mostly works, with a couple of network hiccups.
AI-written summary · about
chapters (10)
- 0:00Start
- 8:05Get Current Time
- 12:36Mark Items as Done
- 24:40Stage 6
- 26:55Reply Keyboard
- 27:40Start Message Keyboard
- 34:11Update Polling
- 37:19Stage Eight
- 44:07Conversation Bot
- 49:56Telegram Bot Simple Library
related talks
48mChatbots in Scala: meet your new robot overlords
47mWhirlwind Tour of the Scala Functional Programming Ecosystem
53mWhirlwind tour of the Scala Functional Programming ecosystem
55mEnterprise Chatbots (using messaging and AI to build novel user interfaces for work)
59mMaking the most of artificial and human intelligence for data science
58mMonads in Chains
01h 20mA Practical Introduction to Haskell GADTs
51mBuilding Your Own Trading Bot in F#
