Skip to content

clojure-quant/telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

telegram GitHub Actions status |clojure-quant/telegramClojars Project

This library is very optinionated and allows to easily add a telegram bot to an application. It has two features

  • "Human RPC" interface: user can execute a command (with args parameter)
  • "Publish/Subscribe: user can subscribe to a topic and bot can publish topics

demo

First you need to create a bot token: in telegram app talk to: BotFather and create a new telegram bot.

In demo/src/config-template.edn enter your telegram bot token and name. Then rename the file to demo/src/config.edn (so remove -template)

then run:

cd demo clj -X:demo

You will see a list of commands in a chat with the bot, and can interact with it. Every 5 minutes a topic with random data is published which will be showing in the chat (after subscribing)

To set the icon of the bot talk to the BotFather and upload an image.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published