Fastify plugin to handle Telegraf webhook
npm install fastify-telegraf



Fastify plugin to handle Telegraf's webhook with Typescript support
``sh
npm i fastify-telegraf
// or
yarn add fastify-telegraf
`
Given the following code:
`js
const fastify = require('fastify')()
const { Telegraf } = require('telegraf')
const telegrafPlugin = require('fastify-telegraf')
const bot = new Telegraf(BOT_TOKEN)
fastify.register(telegrafPlugin, { bot, path: '/my-secret-path' })
fastify.listen(8000, (err) => {
if (err) throw err
})
``
Licensed under MIT