{"_id":"@ardasevinc/fastify-telegraf","_rev":"8-ca7a9b3c0b63f7ec9a8464abfe57887b","name":"@ardasevinc/fastify-telegraf","dist-tags":{"latest":"1.3.7"},"versions":{"1.2.0":{"name":"@ardasevinc/fastify-telegraf","version":"1.2.0","keywords":["fastify","telegram","bot","fastify-plugin","telegraf"],"author":{"url":"https://github.com/ardasevinc","name":"Arda Sevinc","email":"arda@ardasevinc.com"},"license":"MIT","_id":"@ardasevinc/fastify-telegraf@1.2.0","maintainers":[{"name":"ardasevinc","email":"arda@ardasevinc.com"}],"homepage":"https://github.com/ardasevinc/fastify-telegraf#readme","bugs":{"url":"https://github.com/ardasevinc/fastify-telegraf/issues"},"dist":{"shasum":"0d60c7d15e2a56ee20b962c8735c84f796e090a1","tarball":"https://registry.npmjs.org/@ardasevinc/fastify-telegraf/-/fastify-telegraf-1.2.0.tgz","fileCount":4,"integrity":"sha512-EwujiUZV5FpOJlAj6W6nUmHQLG3sP1w1kMZ6jLjSznMV/Sw16ZsyIPz/NGhqSD7vzS7MRmZST9zgPBw/lfjRnQ==","signatures":[{"sig":"MEUCIH2xwZqtw+cQHZEtiCKt9SzcgtaOKD+34uIWf4zjcpeFAiEAuADSBIJKNkIsnZ3znx9K3XKTLgl3/2WvxF6k+hO7/co=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9807},"main":"index.js","access":"public","gitHead":"cf5e85ed41a8dcada8322b07e340bc0ff822fd68","scripts":{"lint":"standard","test":"tap --no-cov test/**/*.test.js","lint:fix":"standard --fix"},"_npmUser":{"name":"ardasevinc","email":"arda@ardasevinc.com"},"repository":{"url":"git+https://github.com/ardasevinc/fastify-telegraf.git","type":"git"},"_npmVersion":"10.5.0","description":"Fastify Telegraf, forked to update telegraf","directories":{},"_nodeVersion":"20.12.2","dependencies":{"undici":"^6.19.2","telegraf":"^4.16.3","fastify-plugin":"^4.5.1"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^20.0.3","fastify":"^4.28.1","standard":"^17.1.0"},"_npmOperationalInternal":{"tmp":"tmp/fastify-telegraf_1.2.0_1720085578705_0.6728014895962935","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"@ardasevinc/fastify-telegraf","version":"1.3.0","keywords":["fastify","telegram","bot","fastify-plugin","telegraf"],"author":{"url":"https://github.com/ardasevinc","name":"Arda Sevinc","email":"arda@ardasevinc.com"},"license":"MIT","_id":"@ardasevinc/fastify-telegraf@1.3.0","maintainers":[{"name":"ardasevinc","email":"arda@ardasevinc.com"}],"homepage":"https://github.com/ardasevinc/fastify-telegraf#readme","bugs":{"url":"https://github.com/ardasevinc/fastify-telegraf/issues"},"dist":{"shasum":"3039c068ca516113fbec080a1977bbf322f3b6fc","tarball":"https://registry.npmjs.org/@ardasevinc/fastify-telegraf/-/fastify-telegraf-1.3.0.tgz","fileCount":7,"integrity":"sha512-3Fc+Ln38Nsz3foMsHbO6bajzBG3YYyHe5XRVGErJ+eoSiXG1GX0phSGbvHeVcl6PqWWqzeBrjaurosLE4RLMoQ==","signatures":[{"sig":"MEYCIQDgDUFL6+F8HDGmP8jLA1GRZZcwzDV10kjvHQkKqTp9iAIhAMnN/IyNYgEHr7QkhiM700uozD7zZpPJ1p4tvL3EQQ2q","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11647},"type":"module","access":"public","engines":{"node":">=20","pnpm":">=9"},"exports":"./dist/index.js","gitHead":"519dd4734c38a6666812d656ac28b11ad18507af","scripts":{"lint":"standard","test":"tap --no-cov test/**/*.test.js","build":"pnpm run prebuild && tsc -p ./tsconfig.json; tsc-alias -p ./tsconfig.json","lint:fix":"standard --fix","prebuild":"rimraf ./dist"},"_npmUser":{"name":"ardasevinc","email":"arda@ardasevinc.com"},"prettier":"@ardasevinc/prettier-config","repository":{"url":"git+https://github.com/ardasevinc/fastify-telegraf.git","type":"git"},"_npmVersion":"10.5.0","description":"Pure ESM, modern fork of @eomm/fastify-telegram","directories":{},"_nodeVersion":"20.12.2","dependencies":{"undici":"^6.19.2","telegraf":"^4.16.3","fastify-plugin":"^4.5.1","@fastify/type-provider-typebox":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^20.0.3","rimraf":"^5.0.7","fastify":"^4.28.1","standard":"^17.1.0","tsc-alias":"^1.8.10","typescript":"^5.5.3","@types/node":"^20.14.9","@ardasevinc/prettier-config":"^0.1.4"},"_npmOperationalInternal":{"tmp":"tmp/fastify-telegraf_1.3.0_1720120618423_0.49869588047086943","host":"s3://npm-registry-packages"}},"1.3.1":{"name":"@ardasevinc/fastify-telegraf","version":"1.3.1","keywords":["fastify","telegram","bot","fastify-plugin","telegraf"],"author":{"url":"https://github.com/ardasevinc","name":"Arda Sevinc","email":"arda@ardasevinc.com"},"license":"MIT","_id":"@ardasevinc/fastify-telegraf@1.3.1","maintainers":[{"name":"ardasevinc","email":"arda@ardasevinc.com"}],"homepage":"https://github.com/ardasevinc/fastify-telegraf#readme","bugs":{"url":"https://github.com/ardasevinc/fastify-telegraf/issues"},"dist":{"shasum":"9cfccfa2dc85e0b72e01e7eae4fd698a0dc3384a","tarball":"https://registry.npmjs.org/@ardasevinc/fastify-telegraf/-/fastify-telegraf-1.3.1.tgz","fileCount":7,"integrity":"sha512-dBDDaegTygj9MxK7t4kXcNQHrR30YXu+lYWe1zFDGYUOLtAp+HnyqRoeryduxy7PUC5M5gL6PrgOCNBPKxNPkA==","signatures":[{"sig":"MEQCIF94GYk7DNGv0W1xDc80BwihedrT8TMtV4dcL4u4aVcgAiARZnkYG/zC+ocVjsSKhiX6OmZGku4zlotO1SoJ6Mf6xQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11647},"type":"module","access":"public","engines":{"node":">=20","pnpm":">=9"},"exports":"./dist/index.js","gitHead":"a6bf9145c23751f54f22ca12d03fd4dae6bdce2b","scripts":{"lint":"standard","test":"tap --no-cov test/**/*.test.js","build":"pnpm run prebuild && tsc -p ./tsconfig.json; tsc-alias -p ./tsconfig.json","lint:fix":"standard --fix","prebuild":"rimraf ./dist"},"_npmUser":{"name":"ardasevinc","email":"arda@ardasevinc.com"},"prettier":"@ardasevinc/prettier-config","repository":{"url":"git+https://github.com/ardasevinc/fastify-telegraf.git","type":"git"},"_npmVersion":"10.5.0","description":"Pure ESM, modern fork of @eomm/fastify-telegram","directories":{},"_nodeVersion":"20.12.2","dependencies":{"undici":"^6.19.2","telegraf":"^4.16.3","fastify-plugin":"^4.5.1","@fastify/type-provider-typebox":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^20.0.3","rimraf":"^5.0.7","fastify":"^4.28.1","standard":"^17.1.0","tsc-alias":"^1.8.10","typescript":"^5.5.3","@types/node":"^20.14.9","@ardasevinc/prettier-config":"^0.1.4"},"_npmOperationalInternal":{"tmp":"tmp/fastify-telegraf_1.3.1_1720120984776_0.8952822290692022","host":"s3://npm-registry-packages"}},"1.3.2":{"name":"@ardasevinc/fastify-telegraf","version":"1.3.2","keywords":["fastify","telegram","bot","fastify-plugin","telegraf"],"author":{"url":"https://github.com/ardasevinc","name":"Arda Sevinc","email":"arda@ardasevinc.com"},"license":"MIT","_id":"@ardasevinc/fastify-telegraf@1.3.2","maintainers":[{"name":"ardasevinc","email":"arda@ardasevinc.com"}],"homepage":"https://github.com/ardasevinc/fastify-telegraf#readme","bugs":{"url":"https://github.com/ardasevinc/fastify-telegraf/issues"},"dist":{"shasum":"b82b93ee1ce713d35629188567046c081dbf6fc2","tarball":"https://registry.npmjs.org/@ardasevinc/fastify-telegraf/-/fastify-telegraf-1.3.2.tgz","fileCount":7,"integrity":"sha512-tDnX2BLyRfFQUBz4WuJaIeXJp/koq08yjCDS6FVnIYkc0K6eR98DFHCQFC/J8VhHfU3bR5zmblSBZolcM8Zkng==","signatures":[{"sig":"MEUCIQDiDDp0z5meokcs4SZ+SypDwZQCYh8pGKrFXjniNwTrsgIgbTK7QlO+S/lI+wtUi1qID3ccGLgESptsCJ7/LUcp9SE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12049},"type":"module","access":"public","engines":{"node":">=20","pnpm":">=9"},"exports":"./dist/index.js","gitHead":"6877c1d8d6c88124c46d1bd1e9bfce31f75a55e7","scripts":{"lint":"standard","test":"tap --no-cov test/**/*.test.js","build":"pnpm run prebuild && tsc -p ./tsconfig.json; tsc-alias -p ./tsconfig.json","lint:fix":"standard --fix","prebuild":"rimraf ./dist"},"_npmUser":{"name":"ardasevinc","email":"arda@ardasevinc.com"},"prettier":"@ardasevinc/prettier-config","repository":{"url":"git+https://github.com/ardasevinc/fastify-telegraf.git","type":"git"},"_npmVersion":"10.5.0","description":"Pure ESM, modern fork of @eomm/fastify-telegram","directories":{},"_nodeVersion":"20.12.2","dependencies":{"undici":"^6.19.2","telegraf":"^4.16.3","fastify-plugin":"^4.5.1","@fastify/type-provider-typebox":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^20.0.3","rimraf":"^5.0.7","fastify":"^4.28.1","standard":"^17.1.0","tsc-alias":"^1.8.10","typescript":"^5.5.3","@types/node":"^20.14.9","@ardasevinc/prettier-config":"^0.1.4"},"_npmOperationalInternal":{"tmp":"tmp/fastify-telegraf_1.3.2_1720121217833_0.5516361202165108","host":"s3://npm-registry-packages"}},"1.3.3":{"name":"@ardasevinc/fastify-telegraf","version":"1.3.3","keywords":["fastify","telegram","bot","fastify-plugin","telegraf"],"author":{"url":"https://github.com/ardasevinc","name":"Arda Sevinc","email":"arda@ardasevinc.com"},"license":"MIT","_id":"@ardasevinc/fastify-telegraf@1.3.3","maintainers":[{"name":"ardasevinc","email":"arda@ardasevinc.com"}],"homepage":"https://github.com/ardasevinc/fastify-telegraf#readme","bugs":{"url":"https://github.com/ardasevinc/fastify-telegraf/issues"},"dist":{"shasum":"42995f1c0ba617af5643eb132e2d1ab0e35f26a6","tarball":"https://registry.npmjs.org/@ardasevinc/fastify-telegraf/-/fastify-telegraf-1.3.3.tgz","fileCount":7,"integrity":"sha512-7T1tjljlR4K4JA/xmQyLx/iw7boUqLinIiG8UWh3Lw1OKHICwWbmDVxQLEoTeIuM2U3HP8GF10dYvc1Qz/PkIA==","signatures":[{"sig":"MEYCIQDa/HezSahORwuJ6+Qh5/mhTKrlVDPcqX7KzMfJHohKJgIhAKwlXJc6wge5lmOaYsd8f3pe5Y9Fl8Vv9los05+sW/Js","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12122},"type":"module","access":"public","engines":{"node":">=20","pnpm":">=9"},"exports":"./dist/index.js","gitHead":"b74669240dead24eb80dbdd440b9eb63c5078784","scripts":{"lint":"standard","test":"tap --no-cov test/**/*.test.js","build":"pnpm run prebuild && tsc -p ./tsconfig.json; tsc-alias -p ./tsconfig.json","lint:fix":"standard --fix","prebuild":"rimraf ./dist"},"_npmUser":{"name":"ardasevinc","email":"arda@ardasevinc.com"},"prettier":"@ardasevinc/prettier-config","repository":{"url":"git+https://github.com/ardasevinc/fastify-telegraf.git","type":"git"},"_npmVersion":"10.5.0","description":"Pure ESM, modern fork of @eomm/fastify-telegram","directories":{},"_nodeVersion":"20.12.2","dependencies":{"undici":"^6.19.2","telegraf":"^4.16.3","fastify-plugin":"^4.5.1","@fastify/type-provider-typebox":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^20.0.3","rimraf":"^5.0.7","fastify":"^4.28.1","standard":"^17.1.0","tsc-alias":"^1.8.10","typescript":"^5.5.3","@types/node":"^20.14.9","@ardasevinc/prettier-config":"^0.1.4"},"_npmOperationalInternal":{"tmp":"tmp/fastify-telegraf_1.3.3_1720121717796_0.30206728473793354","host":"s3://npm-registry-packages"}},"1.3.4":{"name":"@ardasevinc/fastify-telegraf","version":"1.3.4","keywords":["fastify","telegram","bot","fastify-plugin","telegraf"],"author":{"url":"https://github.com/ardasevinc","name":"Arda Sevinc","email":"arda@ardasevinc.com"},"license":"MIT","_id":"@ardasevinc/fastify-telegraf@1.3.4","maintainers":[{"name":"ardasevinc","email":"arda@ardasevinc.com"}],"homepage":"https://github.com/ardasevinc/fastify-telegraf#readme","bugs":{"url":"https://github.com/ardasevinc/fastify-telegraf/issues"},"dist":{"shasum":"8ebd88c7306ef500fa36631ce09211fb43270bdd","tarball":"https://registry.npmjs.org/@ardasevinc/fastify-telegraf/-/fastify-telegraf-1.3.4.tgz","fileCount":7,"integrity":"sha512-6FggpjejYSJbcSWRA53Ai+xfRuYGLAs0vkJeYzRv5zvpFX0jipBZ0DoWC+oLgk7wjEFlH3nRIvZaDpIAB66agQ==","signatures":[{"sig":"MEUCIDgcX+AQJxjJ0/10l/MVWLaYLxskUVh7D51atr3kuh3NAiEA3tHntpPfoD/GXI7irT86cENvibF2bkRs/e77GYThwQg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12122},"type":"module","access":"public","engines":{"node":">=20","pnpm":">=9"},"exports":"./dist/index.js","gitHead":"59411e6c60402e4a5df1a9da3a92a6be7c229671","scripts":{"lint":"standard","test":"tap --no-cov test/**/*.test.js","build":"pnpm run prebuild && tsc -p ./tsconfig.json; tsc-alias -p ./tsconfig.json","lint:fix":"standard --fix","prebuild":"rimraf ./dist"},"_npmUser":{"name":"ardasevinc","email":"arda@ardasevinc.com"},"prettier":"@ardasevinc/prettier-config","repository":{"url":"git+https://github.com/ardasevinc/fastify-telegraf.git","type":"git"},"_npmVersion":"10.7.0","description":"Pure ESM, modern fork of @eomm/fastify-telegram","directories":{},"_nodeVersion":"20.15.1","dependencies":{"undici":"^6.19.2","telegraf":"^4.16.3","fastify-plugin":"^4.5.1","@fastify/type-provider-typebox":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^20.0.3","rimraf":"^5.0.7","fastify":"^4.28.1","standard":"^17.1.0","tsc-alias":"^1.8.10","typescript":"^5.5.3","@types/node":"^20.14.9","@ardasevinc/prettier-config":"^0.1.4"},"_npmOperationalInternal":{"tmp":"tmp/fastify-telegraf_1.3.4_1721319487116_0.9426367435895404","host":"s3://npm-registry-packages"}},"1.3.5":{"name":"@ardasevinc/fastify-telegraf","version":"1.3.5","keywords":["fastify","telegram","bot","fastify-plugin","telegraf"],"author":{"url":"https://github.com/ardasevinc","name":"Arda Sevinc","email":"arda@ardasevinc.com"},"license":"MIT","_id":"@ardasevinc/fastify-telegraf@1.3.5","maintainers":[{"name":"ardasevinc","email":"arda@ardasevinc.com"}],"homepage":"https://github.com/ardasevinc/fastify-telegraf#readme","bugs":{"url":"https://github.com/ardasevinc/fastify-telegraf/issues"},"dist":{"shasum":"129d9be9e342be71678f714f0100eda76dc3d8ab","tarball":"https://registry.npmjs.org/@ardasevinc/fastify-telegraf/-/fastify-telegraf-1.3.5.tgz","fileCount":7,"integrity":"sha512-4AipbWUPGYrblF+r1ihWJg3c6T6N0ppBWSZN2Z2jzsiUY5E67ShcSTal4vjRu0Yg5cp4qO6MTrFpi1XYGzkkNA==","signatures":[{"sig":"MEUCIQD0SxjfQn3trRXvjs48nWuhtYeOd7Zc0NacX0dRGsW0RQIgCh4we07egYjU1R3e8x4rnL6nr2DqAN07Jso0IRMdY6U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12122},"type":"module","access":"public","engines":{"node":">=20","pnpm":">=9"},"exports":"./dist/index.js","gitHead":"7b6500c019731636370062da8453752272ad0034","scripts":{"lint":"standard","test":"tap --no-cov test/**/*.test.js","build":"pnpm run prebuild && tsc -p ./tsconfig.json; tsc-alias -p ./tsconfig.json","lint:fix":"standard --fix","prebuild":"rimraf ./dist"},"_npmUser":{"name":"ardasevinc","email":"arda@ardasevinc.com"},"prettier":"@ardasevinc/prettier-config","repository":{"url":"git+https://github.com/ardasevinc/fastify-telegraf.git","type":"git"},"_npmVersion":"10.7.0","description":"Pure ESM, modern fork of @eomm/fastify-telegram","directories":{},"_nodeVersion":"20.15.1","dependencies":{"undici":"^6.19.2","telegraf":"^4.16.3","fastify-plugin":"^4.5.1","@fastify/type-provider-typebox":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^20.0.3","rimraf":"^5.0.7","fastify":"^4.28.1","standard":"^17.1.0","tsc-alias":"^1.8.10","typescript":"^5.5.3","@types/node":"^20.14.9","@ardasevinc/prettier-config":"^0.1.4"},"_npmOperationalInternal":{"tmp":"tmp/fastify-telegraf_1.3.5_1721328746452_0.039292854118798015","host":"s3://npm-registry-packages"}},"1.3.6":{"name":"@ardasevinc/fastify-telegraf","version":"1.3.6","keywords":["fastify","telegram","bot","fastify-plugin","telegraf"],"author":{"url":"https://github.com/ardasevinc","name":"Arda Sevinc","email":"arda@ardasevinc.com"},"license":"MIT","_id":"@ardasevinc/fastify-telegraf@1.3.6","maintainers":[{"name":"ardasevinc","email":"arda@ardasevinc.com"}],"homepage":"https://github.com/ardasevinc/fastify-telegraf#readme","bugs":{"url":"https://github.com/ardasevinc/fastify-telegraf/issues"},"dist":{"shasum":"c6f602abc8955f26f95185cfc56d64b26d0c53d5","tarball":"https://registry.npmjs.org/@ardasevinc/fastify-telegraf/-/fastify-telegraf-1.3.6.tgz","fileCount":7,"integrity":"sha512-t47rce3IIlh70sx4B0UfQy5BCRMIowftyRm/82O3IoiCnn86jZQVAqdfbDEXFvtZdkfrZKZ3+Qoua6hM5h9dqg==","signatures":[{"sig":"MEUCIHndUc1OlY39tXSj52cqu3GpMpMNYCTuKSxJ4NkhONNyAiEA/VH+qTZXToxa9HH6D1uwBk9SJfr3hQjn/a6AMvaIgbU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12780},"type":"module","access":"public","engines":{"node":">=20","pnpm":">=9"},"exports":"./dist/index.js","gitHead":"79a5a2988f56f714f4db16c2cef791e9fb7d0b54","scripts":{"lint":"standard","test":"tap --no-cov test/**/*.test.js","build":"pnpm run prebuild && tsc -p ./tsconfig.json; tsc-alias -p ./tsconfig.json","lint:fix":"standard --fix","prebuild":"rimraf ./dist"},"_npmUser":{"name":"ardasevinc","email":"arda@ardasevinc.com"},"prettier":"@ardasevinc/prettier-config","repository":{"url":"git+https://github.com/ardasevinc/fastify-telegraf.git","type":"git"},"_npmVersion":"10.7.0","description":"Pure ESM, modern fork of @eomm/fastify-telegram","directories":{},"_nodeVersion":"20.15.1","dependencies":{"undici":"^6.19.2","telegraf":"^4.16.3","fastify-plugin":"^4.5.1","@fastify/type-provider-typebox":"^4.0.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.5.0+sha512.140036830124618d624a2187b50d04289d5a087f326c9edfc0ccd733d76c4f52c3a313d4fc148794a2a9d81553016004e6742e8cf850670268a7387fc220c903","devDependencies":{"tap":"^20.0.3","rimraf":"^5.0.7","fastify":"^4.28.1","standard":"^17.1.0","tsc-alias":"^1.8.10","typescript":"^5.5.3","@types/node":"^20.14.9","@ardasevinc/prettier-config":"^0.1.4"},"_npmOperationalInternal":{"tmp":"tmp/fastify-telegraf_1.3.6_1721329172374_0.3169759198527078","host":"s3://npm-registry-packages"}},"1.3.7":{"name":"@ardasevinc/fastify-telegraf","access":"public","version":"1.3.7","description":"Pure ESM, modern fork of @eomm/fastify-telegram","exports":"./dist/index.js","type":"module","scripts":{"lint":"standard","lint:fix":"standard --fix","test":"tap --no-cov test/**/*.test.js","prebuild":"rimraf ./dist","build":"pnpm run prebuild && tsc -p ./tsconfig.json; tsc-alias -p ./tsconfig.json"},"engines":{"node":">=20","pnpm":">=9"},"keywords":["fastify","telegram","bot","fastify-plugin","telegraf"],"author":{"name":"Arda Sevinc","email":"arda@ardasevinc.com","url":"https://github.com/ardasevinc"},"license":"MIT","homepage":"https://github.com/ardasevinc/fastify-telegraf#readme","repository":{"type":"git","url":"git+https://github.com/ardasevinc/fastify-telegraf.git"},"bugs":{"url":"https://github.com/ardasevinc/fastify-telegraf/issues"},"dependencies":{"@fastify/type-provider-typebox":"^4.0.0","fastify-plugin":"^4.5.1","telegraf":"^4.16.3","undici":"^6.19.2"},"devDependencies":{"@ardasevinc/prettier-config":"^0.1.4","@types/node":"^20.14.9","fastify":"^4.28.1","rimraf":"^5.0.7","standard":"^17.1.0","tap":"^20.0.3","tsc-alias":"^1.8.10","typescript":"^5.5.3"},"prettier":"@ardasevinc/prettier-config","packageManager":"pnpm@9.5.0+sha512.140036830124618d624a2187b50d04289d5a087f326c9edfc0ccd733d76c4f52c3a313d4fc148794a2a9d81553016004e6742e8cf850670268a7387fc220c903","_id":"@ardasevinc/fastify-telegraf@1.3.7","gitHead":"c450ca5ef2d70401961acabf0af474fa044248c9","_nodeVersion":"20.15.1","_npmVersion":"10.7.0","dist":{"integrity":"sha512-QdbCxNguZt545jjzk4Gw/alLYgpI8IxzBsba00eop6SRLCCYXLBaEyjkDrkCgL8+JwxGCHvU5GvdGiT8x0vl6g==","shasum":"5044c72530892cd3ddb9b494824afc8971054464","tarball":"https://registry.npmjs.org/@ardasevinc/fastify-telegraf/-/fastify-telegraf-1.3.7.tgz","fileCount":7,"unpackedSize":12480,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzqrvBZ+zEbYXUwiGAZ/4UPpHp6gKXky0sM7UAuajetwIgZWtHROooRKlEoEdfwExSx6+tPerS8j9FGYjn75Z7JL4="}]},"_npmUser":{"name":"ardasevinc","email":"arda@ardasevinc.com"},"directories":{},"maintainers":[{"name":"ardasevinc","email":"arda@ardasevinc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-telegraf_1.3.7_1721740735614_0.08624300202442581"},"_hasShrinkwrap":false}},"time":{"created":"2024-07-04T09:32:58.610Z","modified":"2024-07-23T13:18:55.953Z","1.2.0":"2024-07-04T09:32:58.828Z","1.3.0":"2024-07-04T19:16:58.574Z","1.3.1":"2024-07-04T19:23:04.904Z","1.3.2":"2024-07-04T19:26:58.836Z","1.3.3":"2024-07-04T19:35:17.937Z","1.3.4":"2024-07-18T16:18:07.268Z","1.3.5":"2024-07-18T18:52:26.626Z","1.3.6":"2024-07-18T18:59:32.634Z","1.3.7":"2024-07-23T13:18:55.782Z"},"bugs":{"url":"https://github.com/ardasevinc/fastify-telegraf/issues"},"author":{"name":"Arda Sevinc","email":"arda@ardasevinc.com","url":"https://github.com/ardasevinc"},"license":"MIT","homepage":"https://github.com/ardasevinc/fastify-telegraf#readme","keywords":["fastify","telegram","bot","fastify-plugin","telegraf"],"repository":{"type":"git","url":"git+https://github.com/ardasevinc/fastify-telegraf.git"},"description":"Pure ESM, modern fork of @eomm/fastify-telegram","maintainers":[{"name":"ardasevinc","email":"arda@ardasevinc.com"}],"readme":"# fastify-telegram\n\n\nCreate and manage a Telegram bot easily.\n\nThis plugin is a wrapper around [Telegraf](https://telegraf.js.org/)\n\nWhy you should use this plugin compared to what you can find on Google?\n\n- All the blog posts and tutorials I found are outdated and use old versions of Telegraf\n- The mentioned tutorials start **2** HTTP servers, one for Fastify and one for Node.js HTTP server, because the Telegram wrapper starts its own HTTP server. This is just a waste of resources.\n\nThis plugin instead:\n\n- Integrates the Telegram bot into the Fastify HTTP server\n- You can use all the Fastify features, like hooks and decorators\n- It has good utilities to manage errors and the telegram features (such as [polling mode](https://core.telegram.org/bots/api#getupdates))\n\n\n## Install\n\n```\nnpm install @ardasevinc/fastify-telegraf\n```\n\n### Compatibility\n\n| Plugin version | Fastify version | Telegraf version |\n| ------------- |:---------------:| ---------------:|\n| `^1.0.0` | `^4.0.0` | `^4.0.0` |\n\n## Usage\n\nWhen you register the plugin, it will add a decorator to the Fastify instance.\n\nYou can use it to access the [Telegraf](https://telegraf.js.org/) instance and configure your bot:\n\n```js\nconst fastify = require('fastify')\nconst fastifyTelegram = require('@eomm/fastify-telegram')\n\nasync function run () {\n  const app = fastify({\n    pluginTimeout: 10_000 // suggestion: increase the timeout\n  })\n\n  await app.register(fastifyTelegram, {\n    botToken: '123-abc', // [required] it must be a valid bot token\n\n    // [required] in webhook mode: the base url of your webhook\n    // [optional] in long polling mode: undefined\n    baseUrl: 'https://example.come',\n\n    // [optional]: customize the decorator name\n    decoratorBotName: 'telegramBot',\n\n    // [optional] this string is used to validate the incoming request\n    // Ref: https://core.telegram.org/bots/api#setwebhook\n    webhookSecret: 'secret',\n\n    // [optional]: the polling mode requires an health check that slows down the startup\n    // you can customize the max milliseconds to wait for the health check to pass\n    waitForHealthPolling: 3_000, // default: app.initialConfig.pluginTimeout / 6\n\n    // [optional] this function is called when an error is not handled\n    // by default it logs the error using `fastify.log.error`\n    // Ref: https://telegrafjs.org/index.html#/?id=error-handling\n    onUnhandledError: (err, ctx) => {\n      console.log(`Ooops, encountered an error for ${ctx.updateType}`, err)\n    }\n  })\n\n  // `app.telegramBot` is a Telegraf instance\n  // Now you can start using it:\n  app.telegramBot.on('text', (ctx) => ctx.reply('Hello World'))\n\n  await app.listen({ port: 3001 })\n}\n\nrun()\n```\n\n### Webhook mode\n\nIn this mode, the Telegram bot will send the updates to your server, so the plugin must know the public base url of your server.\n\nThen, it will register a POST route at the url `/telegraf/<secretPath>` where `<secretPath>` is a random string generated by Telegraf.\n\nYou can read the Webhook secret path from the `app.telegramWebhook` decorator.\n\n### Long polling mode\n\nIn this mode, the plugin will start a long polling process that will fetch the updates from the Telegram server by calling the method [`getUpdates`](https://core.telegram.org/bots/api#getupdates).\n\nThe `timeout` is set to `50` seconds by default, and you can't change it: it's a [Telegraf limitation](https://github.com/telegraf/telegraf/blob/c38ecc32a839470efd8691cd121ab933117fba76/src/core/network/polling.ts#L31).\n\n## Options\n\nYou can pass the following options to the plugin:\n\n- `botToken`: [required] it must be a valid bot token\n- `baseUrl`: [required] in webhook mode: the base url of your webhook; in long polling mode: undefined\n- `decoratorBotName`: [optional] customize the decorator name\n- `webhookSecret`: [optional] this string is used to validate the incoming request\n- `onUnhandledError`: [optional] this function is called when an error is not handled by default it logs the error using `fastify.log.error`\n\n## Decorators\n\nThe plugin adds the following decorators to the Fastify instance:\n\n- `app.telegramBot`: the [Telegraf](https://telegraf.js.org/) instance\n- `app.telegramWebhook`: the webhook secret path (only in webhook mode)\n\n\n## License\n\nCopyright [Manuel Spigolon](https://github.com/Eomm), Licensed under [MIT](./LICENSE).\n","readmeFilename":"README.md"}