Skip to content
Bill Howe edited this page Feb 1, 2022 · 2 revisions

Using the Code

Using the lemme-know-bot code in your own project.

To build the service JAR or use the Docker container instead, go to the next section.

See the lemme-know-bot Clojars page for details on adding this library to projects for Leiningen, Boot, and CLI/deps.edn.

Require the Library

In the REPL

(require '[lemme-know-bot.core :as lemme])

In your application

(ns my-app.core
  (:require [lemme-know-bot.core :as lemme]))

Configuration

Supported environment variables and whether they are required to be provided.

Variable Default Description Required?
BOT_TOKEN none Token for bot to authenticate to the Telegram servers. Yes
LKB_SEARCHES "/tmp/lemme-know-bot-searches.edn" File for saving search state to. No
LKB_SLEEP 10000 Sleep time in ms between long polls. No
LKB_TIMEOUT 10 Timeout in seconds to wait while long polling. No
Clone this wiki locally