Liking cljdoc? Tell your friends :D

clobot.core


bot-infoclj

(bot-info config)

Returns basic information about the bot

Returns basic information about the bot
sourceraw docstring

get-chat-idclj

(get-chat-id msg)

Returns chat id sent to the bot from request object

Returns chat id sent to the bot from request object
sourceraw docstring

get-commandclj

(get-command msg)

Returns command sent to the bot from request object

Returns command sent to the bot from request object
sourceraw docstring

get-messageclj

(get-message req)

Returns message sent to the bot from request object

Returns message sent to the bot from request object
sourceraw docstring

get-no-commandclj

(get-no-command handlers)

Returns custom error handler if exists

Returns custom error handler if exists
sourceraw docstring

make-end-pointclj

(make-end-point handlers config)

Creates endpoint to get and process updates from Telegram's servers

Creates endpoint to get and process updates from Telegram's servers
sourceraw docstring

make-payloadclj

(make-payload params-map)

Creates json payload for clj-http

Creates json payload for clj-http
sourceraw docstring

make-urlclj

(make-url token method)

Creates full Telegram api url

Creates full Telegram api url
sourceraw docstring

no-command-defaultclj

(no-command-default command token chat-id)

Sends error message to the chat if appropriate handler is not found

Sends error message to the chat if appropriate handler is not found
sourceraw docstring

start-botclj

(start-bot handlers config)

Starts a Ring web app on a given port

Starts a Ring web app on a given port
sourceraw docstring

telegram-api-hostclj

source

telegram-api-methodsclj

source

text-messageclj

(text-message text token chat-id)

Sends message from the bot to the chat

Sends message from the bot to the chat
sourceraw docstring

update-handlerclj

(update-handler handlers config)

Creates a function to resolve the updates got with web-hook and applies appropriate handler functions

Creates a function to resolve the updates got with web-hook
and applies appropriate handler functions
sourceraw docstring

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

× close