Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported algorithm sha3-256 #1987

Open
7heMech opened this issue May 5, 2024 · 0 comments
Open

Unsupported algorithm sha3-256 #1987

7heMech opened this issue May 5, 2024 · 0 comments

Comments

@7heMech
Copy link

7heMech commented May 5, 2024

I saw another issue was made on this a while ago, but it's already closed.
I use bun runtime and when I try to use telegraf with just bot.launch() it doesn't happen, but the issue occurs when I use it with a webhook:

createServer(
  await bot.createWebhook({ domain: "example.com" })
).listen(3000);

I get this error

168 |     }
      at secretPathComponent (/home/runner/3256c0c4-2976-4267-afcf-79a450257baf/node_modules/telegraf/lib/telegraf.js:170:16)
undefined
170 |         return crypto
      at createHash (node:crypto:1287:81
 (/home/runner/3256c0c4-2976-4267-afcf-79a450257baf/node_modules/telegraf/lib/telegraf.js:132:90)
                     ^
:9:
      at getDomainOpts (/home/runner/3256c0c4-2976-4267-afcf-79a450257baf/node_modules/telegraf/lib/telegraf.js:132:85)
169 |     secretPathComponent() {
      at /home/runner/3256c0c4-2976-4267-afcf-79a450257baf/node_modules/telegraf/lib/telegraf.js:142:33


failed to exec [sh -c bun index.js]: exit status 1
TypeError: Unsupported algorithm sha3-256
      at CryptoHasher (native:1:1)
      at createHash (node:1:1287)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant