Spaces:
Configuration error
Configuration error
Download worker/src/telegram.ts from UUUZCX/video-optimizer-bot: direct link, hf CLI and curl.
- Browser
- Download file 349 Bytes
-
https://huggingface.co/spaces/UUUZCX/video-optimizer-bot/resolve/main/worker/src/telegram.ts
- Command line
-
hf download hf://spaces/UUUZCX/video-optimizer-bot/worker/src/telegram.ts
-
curl -L -o telegram.ts https://huggingface.co/spaces/UUUZCX/video-optimizer-bot/resolve/main/worker/src/telegram.ts
349 Bytes
| export function json(data: unknown, status = 200): Response { | |
| return new Response(JSON.stringify(data), { | |
| status, | |
| headers: { | |
| "content-type": "application/json; charset=utf-8", | |
| "cache-control": "no-store" | |
| } | |
| }); | |
| } | |
| export function isTelegramWebhookPath(url: URL): boolean { | |
| return url.pathname === "/telegram/webhook"; | |
| } | |