telebot icon indicating copy to clipboard operation
telebot copied to clipboard

Added an option to skip httpServer creation

Open larrybohn opened this issue 7 years ago • 1 comments

In some scenarios, the webhook can be just one route in a bigger web server, which sets up its own node httpServer. In this case, the current implementation of Telebot will attempt to create its httpServer on the same host and port which will result in a conflict. To avoid this, a new option is added which specifies that httpServer should not be created and that bot.start() should return a promise resolving to a listener function which then should be mounted manually onto the existing httpServer.

larrybohn avatar Apr 15 '18 17:04 larrybohn

I upvote this Pull request. I was about creating one.

mernxl avatar Mar 27 '19 17:03 mernxl