node-telegram-bot-api deprecated Automatic enabling of cancellation of promises is deprecated.

잘실행되던 node가 갑자기 실행해보니 아래와 같이 에러가 발생

 

node-telegram-bot-api deprecated Automatic enabling of cancellation of promises is deprecated. In the future, you will have to enable it yourself. See https://github.com/yagop/node-telegram-bot-api/issues/319. node:internal/modules/cjs/loader:1099:14

 

제일 쉬운 해결방법은 제일 상단에 아래와 같이 선언

process.env.NTBA_FIX_319 = 1

 

자세한 내용은 아래 글 참조

https://stackoverflow.com/questions/65289566/node-telegram-bot-api-deprecated-automatic-enabling-of-cancellation-of-promises

 

node-telegram-bot-api deprecated Automatic enabling of cancellation of promises is deprecated

I'm trying to create a Telegram bot but when I run the code I get these errors: "node-telegram-bot-api deprecated Automatic enabling of cancellation of promises is deprecated In the future, yo...

stackoverflow.com