{"id":15285693,"url":"https://github.com/erfanium/fastify-telegraf","last_synced_at":"2025-04-13T02:39:23.767Z","repository":{"id":74173298,"uuid":"307434384","full_name":"erfanium/fastify-telegraf","owner":"erfanium","description":"Fastify plugin to handle Telegraf webhook","archived":false,"fork":false,"pushed_at":"2021-04-09T11:54:56.000Z","size":166,"stargazers_count":6,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T02:38:46.407Z","etag":null,"topics":["fastify","node","plugin","telegraf","telegram","webhook"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erfanium.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-26T16:23:36.000Z","updated_at":"2023-11-25T23:02:03.000Z","dependencies_parsed_at":"2023-05-03T14:29:38.755Z","dependency_job_id":null,"html_url":"https://github.com/erfanium/fastify-telegraf","commit_stats":{"total_commits":19,"total_committers":2,"mean_commits":9.5,"dds":0.3157894736842105,"last_synced_commit":"184f0f72705d91138e5a38b93416234c2e4a0b4f"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erfanium%2Ffastify-telegraf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erfanium%2Ffastify-telegraf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erfanium%2Ffastify-telegraf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erfanium%2Ffastify-telegraf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erfanium","download_url":"https://codeload.github.com/erfanium/fastify-telegraf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248657853,"owners_count":21140843,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastify","node","plugin","telegraf","telegram","webhook"],"created_at":"2024-09-30T15:07:11.294Z","updated_at":"2025-04-13T02:39:23.728Z","avatar_url":"https://github.com/erfanium.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fastify-telegraf\n\n[![NPM version](https://img.shields.io/npm/v/fastify-telegraf.svg?style=flat)](https://www.npmjs.com/package/fastify-telegraf)\n[![NPM downloads](https://img.shields.io/npm/dm/fastify-telegraf.svg?style=flat)](https://www.npmjs.com/package/fastify-telegraf)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![Known Vulnerabilities](https://snyk.io/test/github/erfanium/fastify-telegraf/badge.svg)](https://snyk.io/test/github/erfanium/fastify-telegraf)\n\n[Fastify](https://github.com/fastify/fastify) plugin to handle [Telegraf's](https://github.com/telegraf/telegraf) webhook with Typescript support, supports fastify 4.x.x\n\n## Install\n\n```sh\nnpm i fastify-telegraf\n\n// or\n\nyarn add fastify-telegraf\n```\n\n## Example\n\nGiven the following code:\n\n```js\nconst fastify = require('fastify')()\nconst { Telegraf } = require('telegraf')\nconst telegrafPlugin = require('fastify-telegraf')\n\nconst bot = new Telegraf(BOT_TOKEN)\n\nfastify.register(telegrafPlugin, { bot, path: '/my-secret-path' })\n\nfastify.listen(8000, (err) =\u003e {\n  if (err) throw err\n})\n```\n\n## Fastify 3.x.x compatibility\nUse fastify-telegraf@1.0.1\n\n## License\n\nLicensed under [MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferfanium%2Ffastify-telegraf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferfanium%2Ffastify-telegraf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferfanium%2Ffastify-telegraf/lists"}