# 使用 npm 安装 telegraf

查看 telegraf 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install npm:telegraf
```

其他安装命令:

### 便携式和语言管理器

- npm (100%):

```sh
npm install -g telegraf
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:telegraf
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/telegraf>
- **版本:** 4.16.3
- **来源摘要:** Modern Telegram Bot Framework
- **主页:** <https://telegraf.js.org>
- **仓库:** <https://github.com/telegraf/telegraf>
- **上游文档:** <https://telegraf.js.org>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/telegraf/-/telegraf-4.16.3.tgz>
- **问题跟踪器:** <https://github.com/telegraf/telegraf/issues>
- **发布时间:** 2024-02-29T07:49:30.428Z
- **最后更新:** 2024-02-29T07:49:30.428Z
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- telegraf (cli)

## 依赖

- @telegraf/types
- abort-controller
- debug
- mri
- node-fetch
- p-timeout
- safe-compare
- sandwich-stream

## 构建依赖

- @types/debug
- @types/node
- @types/node-fetch
- @types/safe-compare
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- ava
- eslint
- eslint-config-prettier
- eslint-plugin-ava
- eslint-plugin-import
- eslint-plugin-node
- eslint-plugin-prettier
- eslint-plugin-promise
- fast-check
- prettier
- tsx
- typedoc
- typescript

## 安装行为

- post-install 钩子: 未定义
- npm 生命周期脚本: prepare
- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 4.16.3
- 管理器更新时间: 2024-02-29
- 本地数据: OK
- 上游仓库: https://github.com/telegraf/telegraf
- 警告: The package-manager record has not been updated in over a year.
- 信息: No cached GitHub release or tag data was available.

## 安全说明

没有找到 telegraf 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Canary: 4.16.0-rc.2, Latest: 4.16.3, Legacy: 3.40.0
- **Version Count:** 241
- **Maintainers:** dotcypress, mkrhere, wojpawlik
- **Author:** The Telegraf Contributors
- **Publisher:** mkrhere
- **Engines:** Node: ^12.20.0 || >=14.13.1
- **Integrity:** sha512-yjEu2NwkHlXu0OARWoNhJlIjX09dRktiMQFsM678BAH/PEPVwctzL67+tvXqLCRQQvm3SDtki2saGO9hLlz68w==
- **Shasum:** f03fa30482b540a7f9895af8f13ec8f432840a66
- **Unpacked Size:** 689,218
- **File Count:** 0
- **Created At:** 2016-04-15T22:56:47.573Z
- **Latest Published At:** 2024-02-29T07:49:30.428Z
- **Modified At:** 2026-03-06T07:15:48.288Z

## 其他软件包管理器记录

- Nix - telegraf: normalized package name match | nixpkgs package indexes: pkgs/by-name/te/telegraf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - telegraf - 1.37.0-r5: normalized package name match | Alpine Linux edge package indexes: telegraf from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A plugin-driven server agent for collecting & reporting metrics, part of the InfluxDB project | https://www.influxdata.com/time-series-platform/telegraf/
- apk - telegraf-doc - 1.37.0-r5: normalized package name match | Alpine Linux edge package indexes: telegraf-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A plugin-driven server agent for collecting & reporting metrics, part of the InfluxDB project (documentation) | https://www.influxdata.com/time-series-platform/telegraf/
- apk - telegraf-openrc - 1.37.0-r5: normalized package name match | Alpine Linux edge package indexes: telegraf-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A plugin-driven server agent for collecting & reporting metrics, part of the InfluxDB project (OpenRC init scripts) | https://www.influxdata.com/time-series-platform/telegraf/
- zypper - telegraf - 1.39.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: telegraf from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | The plugin-driven server agent for collecting & reporting metrics | https://github.com/influxdata/telegraf
- MacPorts - telegraf: normalized package name match | MacPorts ports tree: sysutils/telegraf/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - telegraf: normalized package name match | Chocolatey community package catalog: telegraf from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','superputty'
- Scoop - main/telegraf: normalized package name match | Scoop official bucket manifest trees: bucket/telegraf.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - InfluxData.Telegraf: normalized package name match | Windows Package Manager source index: InfluxData.Telegraf from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched curated package taxonomy and local package facts.
- [appcenter-cli](https://www.automicvault.com/zh-hans/pkg/npm/appcenter-cli/) - Both packages touch the same language runtime or ecosystem. Shared terms: abort, abort-controller, cli, controller, debug.
- [peer](https://www.automicvault.com/zh-hans/pkg/npm/peer/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, fetch, networking, node, node-fetch.
- [proxy](https://www.automicvault.com/zh-hans/pkg/npm/proxy/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, debug, javascript, networking, node.
- [telegraf](https://www.automicvault.com/zh-hans/pkg/brew/telegraf/) - Same normalized package name exists in another local package ecosystem.

## 来源

- Nucleus package database
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
