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

bug: passing blob to new InputFile() lead to this error on **Vercel Edge Runtime**: #491

Closed
KnorpelSenf opened this issue Oct 7, 2023 · 0 comments · Fixed by #492
Closed

Comments

@KnorpelSenf
Copy link
Member

          Since this change, passing blob to `new InputFile()` lead to this error on **Vercel Edge Runtime**:

TypeError: ReadableStream.from is not a function

Example code:

const response = await fetch(url, {headers, method, body});

const file = new InputFile(await response.blob(), filename);

await ctx.replyWithDocument(file);

Снимок экрана 2023-10-07 в 19 12 07

Originally posted by @PonomareVlad in #484 (comment)

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

Successfully merging a pull request may close this issue.

1 participant