Liking cljdoc? Tell your friends :D

morse.polling

Declares long-polling routines to communicate with Telegram Bot API

Declares long-polling routines to communicate with Telegram Bot API
raw docstring

create-consumerclj

(create-consumer updates handler)

Creates consumer from given handler function and channel with updates.

Start infinite loop inside go-routine that will pull messages from channel.

Will be stopped when channel is closed.

Creates consumer from given handler function
and channel with updates.

Start infinite loop inside go-routine
that will pull messages from channel.

Will be stopped when channel is closed.
raw docstring

create-producerclj

(create-producer running token opts)

Passed channel should be always empty. Close it to stop long-polling. Returns channel with updates from Telegram

Passed channel should be always empty.
Close it to stop long-polling.
Returns channel with updates from Telegram
raw docstring

new-offsetclj

(new-offset updates default)

Returns new offset for Telegram updates

Returns new offset for Telegram updates
raw docstring

startclj

(start token handler)
(start token handler opts)

Starts long-polling process. Handler is supposed to process immediately, as it will be called in a blocking manner.

Starts long-polling process.
Handler is supposed to process immediately, as it will
be called in a blocking manner.
raw docstring

stopclj

(stop running)

Stops everything

Stops everything
raw docstring

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

× close