Declares long-polling routines to communicate with Telegram Bot API
Declares long-polling routines to communicate with Telegram Bot API
(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.
(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
(new-offset updates default)
Returns new offset for Telegram updates
Returns new offset for Telegram updates
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close