grammyjs / grammY

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

Allow using AbortController in globalThis if available #598

Open rojvv opened 1 month ago

rojvv commented 1 month ago

Newer versions of Node.js have AbortController in globalThis, but it cannot be used since type errors are occurred conflicting with the one from abort-controller. Maybe we should allow them too?

https://github.com/grammyjs/grammY/blob/334f6179804ecb804f9ce8e9ebb3e1d1c4d34a82/src/shim.node.ts#L1