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.
https://github.com/grammyjs/examples/blob/main/local-bot-api/webhook.ts <- grammy express webhook example
GitHub
examples/local-bot-api/webhook.ts at main · grammyjs/examples
Examples to kickstart your journey with grammY. Contribute to grammyjs/examples development by creating an account on GitHub.
1 Reply
Look specifically at the third code block here, it shows how to set up routes, including specifying the path (eg., /webhook) and the method (get/post): https://docs.convex.dev/functions/http-actions