Creates a Fastify compatible route handler for receiving Telegram webhook updates.
The Application instance.
Webhook configuration options.
Fastify route handler function.
fastify.post("/webhook", createFastifyWebhook(app, { secret_token: "secret123" })); Copy
fastify.post("/webhook", createFastifyWebhook(app, { secret_token: "secret123" }));
Creates a Fastify compatible route handler for receiving Telegram webhook updates.