(bot-info config)
Returns basic information about the bot
Returns basic information about the bot
(get-chat-id msg)
Returns chat id sent to the bot from request object
Returns chat id sent to the bot from request object
(get-command msg)
Returns command sent to the bot from request object
Returns command sent to the bot from request object
(get-message req)
Returns message sent to the bot from request object
Returns message sent to the bot from request object
(get-no-command handlers)
Returns custom error handler if exists
Returns custom error handler if exists
(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
(make-payload params-map)
Creates json payload for clj-http
Creates json payload for clj-http
(make-url token method)
Creates full Telegram api url
Creates full Telegram api url
(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
(start-bot handlers config)
Starts a Ring web app on a given port
Starts a Ring web app on a given port
(text-message text token chat-id)
Sends message from the bot to the chat
Sends message from the bot to the chat
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close