denoland / denoland/deploy_feedback

Telegram bot deployment with Deno fails to get code / Despliegue de bot para telegram con Deno no logra obtener el codigo

Open
#352 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
79
Forks
5
PR merge metrics
No merged PRs in 30d

Description

import { serve } from "https://deno.land/std@0.181.0/http/server.ts";
import { Bot, webhookCallback } from "https://deno.land/x/grammy@v1.15.3/mod.ts";
// Puedes modificar esto a la forma correcta de importar tu objeto `Bot`.
import bot from "./fenite.pl";

const handleUpdate = webhookCallback(bot, "std/http");

serve(async (req) => {
if (req.method === "POST") {
const url = new URL(req.url);
if (url.pathname.slice(1) === bot.token) {
try {
return await handleUpdate(req);
} catch (err) {
console.error(err);
}
}
}
return new Response();
});
![Capturados](https://user-images.githubusercontent.com/52764359/228535640-0a55e935-0b1b-42b2-b663-ec83f7fa80de.PNG)
![Capturauno](https://user-images.githubusercontent.com/52764359/228535642-c93eb7a2-e4fc-4a8d-be2c-c1a2f88a134a.PNG)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.