-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Bill Howe edited this page Feb 1, 2022
·
2 revisions
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.
In the REPL
(require '[lemme-know-bot.core :as lemme])
In your application
(ns my-app.core
(:require [lemme-know-bot.core :as lemme]))
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 |