Skip to content

V18.0.1

Latest

Choose a tag to compare

@windkh windkh released this 13 Jul 17:54

V18.0.1

Patch release fixing a cosmetic warning introduced by the V18 upgrade.

Fixed

  • MaxListenersExceededWarning on the bot after upgrading to V18 (#471). node-telegram-bot-api v1.x leaves the EventEmitter default maxListeners of 10 on the bot instance (v0.66 had raised it), so a flow with 11+ telegram receiver / command / event nodes on the same bot tripped:

    Possible EventEmitter memory leak detected. 11 message listeners added to [TelegramBotEx].

    The listeners are legitimate (one per node) and are removed on node close — not a leak. TelegramBotEx now sets maxListeners to unlimited. Cosmetic warning only; no behavioural change — if you saw the warning on 18.0.0, it was safe to ignore, and it's gone now.

Upgrade

cd ~/.node-red
npm install node-red-contrib-telegrambot@latest
node-red-restart

Thanks to @Bobo-amg for the report.