Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

telegram-bot-api: Automatic enabling of cancellation of promises is deprecated #267

Closed
TimTechDev opened this issue Oct 17, 2021 · 1 comment · Fixed by #298
Closed

telegram-bot-api: Automatic enabling of cancellation of promises is deprecated #267

TimTechDev opened this issue Oct 17, 2021 · 1 comment · Fixed by #298
Labels
bug Something isn't working Hacktoberfest minor Quick to implement service Requires changes to a service
Milestone

Comments

@TimTechDev
Copy link
Contributor

While starting NodeCG, I get a deprecation warning.

Error Log

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

References

yagop/node-telegram-bot-api#319 (comment)

@TimTechDev TimTechDev added the bug Something isn't working label Oct 17, 2021
@hlxid hlxid added Hacktoberfest minor Quick to implement service Requires changes to a service labels Oct 17, 2021
@hlxid hlxid added this to the v0.2.0 milestone Oct 21, 2021
@cimerio7
Copy link

cimerio7 commented Nov 9, 2021

I am getting the same error

hlxid added a commit that referenced this issue Nov 9, 2021
Closes #267
Previously the telegram library automatically would enable bluebird promise cancellation. It is recommended to set the `NTBA_FIX_319` environment variable to disable automatic activation and only enable it if needed. We don't use promise cancellation arround here and anyone using our telegram service propably doesn't either. If this is the case they should enable it themselfs.
@hlxid hlxid closed this as completed in #298 Nov 9, 2021
hlxid added a commit that referenced this issue Nov 9, 2021
Closes #267
Previously the telegram library automatically would enable bluebird promise cancellation. It is recommended to set the `NTBA_FIX_319` environment variable to disable automatic activation and only enable it if needed. We don't use promise cancellation arround here and anyone using our telegram service propably doesn't either. If this is the case they should enable it themselfs.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working Hacktoberfest minor Quick to implement service Requires changes to a service
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants