grammyjs / grammY

The Telegram Bot Framework.
https://grammy.dev
MIT License
2.21k stars 110 forks source link

MaxListenersExceededWarning on Node.js v12 #631

Open iyudincev opened 3 weeks ago

iyudincev commented 3 weeks ago

A bot running on Node.js v12.22 prints the following warning in console after sending a few messages:

MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket]. Use emitter.setMaxListeners() to increase limit
KnorpelSenf commented 2 weeks ago

What's the code?

iyudincev commented 2 weeks ago

What's the code?

Any example will do; for instance, https://github.com/grammyjs/examples/blob/main/echo.ts