Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/grammy/platform.web.ts

The Telegram Bot Framework.
Very Popular
Go to Latest
File
import d from "https://cdn.skypack.dev/debug@4.3.4";export { d as debug };
// === Export system-specific operations// Turn an AsyncIterable<Uint8Array> into a streamexport const itrToStream = (itr: AsyncIterable<Uint8Array>) => { // do not assume ReadableStream.from to exist yet const it = itr[Symbol.asyncIterator](); return new ReadableStream({ async pull(controller) { const chunk = await it.next(); if (chunk.done) controller.close(); else controller.enqueue(chunk.value); }, });};
// === Base configuration for `fetch` callsexport const baseFetchConfig = (_apiRoot: string) => ({});
export const defaultAdapter = "cloudflare";