I asked the same question and could not find the answer. Therefore, I created two libraries for testing telegram bots:
- telegram-test can be used if you made a bot using
node-telegram-bot-api . It catches bot requests and allows us to pretend that we have a valid response from the client. - telegram-test-api can be used with any bot and any technology stack. This is a web server that emulates the Telegram API. You can make client requests using any client, the protocol is very simple.
Both projects are in the deep alpha version, but I have not seen anything better. You can read an article about these projects here .
source share