dierre
12/09/2017, 10:21 AMTelegramBots
(https://github.com/rubenlagus/TelegramBots). The goal is to have two running bots, the js and the kotlin one with one common business logic. I hope it's all clear up to this point. Now the question: for testing, on the node js I used jest + nock. Now I would see, as an advantage, the fact that I can use a java/kotlin mock library (I want to mock the telegram API) inside kotlin test. Of course the library that I will use to implement the bot is a javascript library. So, basically, can I implement my telegram bot in kotlin, using telegram bot js library, and testing it with, as an example, OkHttp MockWebServer?Carl Hickman
12/09/2017, 7:50 PM