Liking cljdoc? Tell your friends :D

teleward.poll


almost-nowclj

(almost-now time offset)

True if the given Unix time is around the current Unix timestamp.

True if the given Unix `time` is around the current Unix timestamp.
sourceraw docstring

del-attrclj

(del-attr state chat-id user-id attr)
source

del-attrsclj

(del-attrs state chat-id user-id)
source

get-attrclj

(get-attr state chat-id user-id attr)
source

get-attrsclj

(get-attrs state chat-id user-id)
source

inc-attrclj

(inc-attr state chat-id user-id attr)
source

load-offsetclj

(load-offset offset-file)
source

looks-solution?clj

(looks-solution? text len-threshold)

True if a message might be (but not for sure) a solution for captcha (pretty short).

True if a message *might be* (but not for sure)
a solution for captcha (pretty short).
sourceraw docstring

process-pending-usersclj

(process-pending-users config state)

Cleanup: ban users who haven't solved the captcha in time. The date attr tracks the date the user did join. Delete the captcha message, ban the user, drop the attributes.

Cleanup: ban users who haven't solved the captcha in time.
The `date` attr tracks the date the user did join.
Delete the captcha message, ban the user, drop the attributes.
sourceraw docstring

process-updatesclj

(process-updates config state updates)
source

run-pollclj

(run-poll config)
source

save-offsetclj

(save-offset offset-file offset)
source

set-attrclj

(set-attr state chat-id user-id attr val)
source

set-attrsclj

(set-attrs state chat-id user-id mapping)
source

unix-nowclj

(unix-now)
source

with-safe-logcljmacro

(with-safe-log & body)

A macro to wrap Telegram calls (prevent the whole program from crushing).

A macro to wrap Telegram calls (prevent the whole program from crushing).
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close