~/talk

Building a Telegram Bot in Haskell (Part 2)

Talkat LambdaConf 2018 · 2018-06-03..06-05· [machine-learning]
slides:none on file

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

  1. 0:00Start
  2. 8:05Get Current Time
  3. 12:36Mark Items as Done
  4. 24:40Stage 6
  5. 26:55Reply Keyboard
  6. 27:40Start Message Keyboard
  7. 34:11Update Polling
  8. 37:19Stage Eight
  9. 44:07Conversation Bot
  10. 49:56Telegram Bot Simple Library
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.