Liking cljdoc? Tell your friends :D

com.omarpolo.robotto.core


base-configclj

The default configuration.

The default configuration.
raw docstring

build-ctxclj

(build-ctx {:keys [base-url token] :as ctx})

Builds the context.

Builds the context.
raw docstring

get-chatclj

(get-chat ctx id)

Returns a channel that yields the chat info.

Returns a channel that yields the chat info.
raw docstring

get-meclj

(get-me ctx)

Return a channel that yields the info about the bot.

Return a channel that yields the info about the bot.
raw docstring

get-updatesclj

(get-updates {:keys [update-offset timeout] :as ctx})

new-ctxclj

(new-ctx)

Build a new context.

Build a new context.
raw docstring

on-commandclj

(on-command ctx command cb)

on-errorclj

(on-error ctx err)

on-new-chat-membersclj

(on-new-chat-members ctx cb)

on-textclj

(on-text ctx cb)

reply-messageclj

(reply-message ctx message text)
(reply-message ctx {{cid :id} :chat mid :message_id} text reply)

Utility function on top of send-message. if reply is true, (by default is false) then the message will be a reply to the given message, otherwise it'll simply be sent to the same chat.

Utility function on top of send-message.  if `reply` is `true`, (by
default is `false`) then the message will be a reply to the given
message, otherwise it'll simply be sent to the same chat.
raw docstring

send-messageclj

(send-message ctx cid text)
(send-message ctx cid text opts)

Send a text message to chat id cid.

Send a `text` message to chat id `cid`.
raw docstring

set-base-urlclj

(set-base-url ctx url)

set-timeoutclj

(set-timeout ctx timeout)

set-tokenclj

(set-token ctx token)

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

× close