Otann / morse

📡 Clojure interface for Telegram Bot API
Eclipse Public License 1.0
257 stars 48 forks source link

Q-Code #29

Closed Sandarr95 closed 4 years ago

Sandarr95 commented 6 years ago

I left it really simple for now, just 2 functions in qcodes.clj. One will auto reply any text returned by the handler. The other is middleware, causing the handler to work the same for polling and webhooks (and can also be made secure).

Let me know what you think.

Also had the idea to make a single function to start the bot, so if you provide a webhook it will use a server, but not sure how to make people choose what server they want to use.

gilmarsoares-luizalabs commented 5 years ago

@Sandarr95 Are you can create a unittest?

Sandarr95 commented 4 years ago

Cleaned this up in https://github.com/Otann/morse/pull/56