StopLossS
Convex Community8mo ago
1 reply
StopLoss

examples/local-bot-api/webhook.ts at mai...

Hi guys, I'm new to convex, I'm trying to migrate something I have in express to httpActions, but I don't understand how I should do it. This helper from grammyjs -> webhookCallback It exposes what is needed to run a telegram bot in webhook mode. Using the /webhook path, and "controlling" that path post method to run the telegram bot.

const server = express()
// 3. Register a handler for the bot
server.post('/webhook', webhookCallback(bot, 'express'))


https://github.com/grammyjs/examples/blob/main/local-bot-api/webhook.ts <- grammy express webhook example
GitHub
Examples to kickstart your journey with grammY. Contribute to grammyjs/examples development by creating an account on GitHub.
examples/local-bot-api/webhook.ts at main · grammyjs/examples
Was this page helpful?