Closed pipex closed 5 years ago
I just realized it is possible to launch a Telegraf bot using startPolling() (as you do in telegraf-test.js).
Nevertheless it can be convenient to use the launch() method which also automatically retrieves the bot name (using getMe) from the server.
Great, thanks! Published as 2.3.0.
This is necessary for compatibility with the telegraf-js bot framework.
Telegraf bots on launch, when configured for polling, will first delete any Webhooks that are remotely setup, which prevents their use with telegram-test-api.
A dummy deleteWebhook API method implementation is provided in this PR