Use the Telegram client to test bots (not bot api)

Now I create a Telegram Bot and test it manually using the Telegram Client. Is there a way to send client messages the same way I can build bots?

I know that I could build unit tests in code, this is not what I am looking for.

+5
source share
1 answer

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 .

+8
source

All Articles