# Install telegraf with npm

Modern Telegram Bot Framework. Version 4.16.3 via npm; verified 2024-02-29.

## Install

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

Additional install commands:

### Portable and language managers

- npm (100%):

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

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:telegraf
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/telegraf>
- **Version:** 4.16.3
- **Source summary:** Modern Telegram Bot Framework
- **Homepage:** <https://telegraf.js.org>
- **Repository:** <https://github.com/telegraf/telegraf>
- **Upstream docs:** <https://telegraf.js.org>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/telegraf/-/telegraf-4.16.3.tgz>
- **Issue tracker:** <https://github.com/telegraf/telegraf/issues>
- **Published:** 2024-02-29T07:49:30.428Z
- **Last updated:** 2024-02-29T07:49:30.428Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- telegraf (cli)

## Dependencies

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

## Build dependencies

- @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

## Install behavior

- Post-install hook: not defined
- Lifecycle scripts: prepare
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 4.16.3
- Package-manager updated: 2024-02-29
- Local data: ok
- Upstream repository: https://github.com/telegraf/telegraf
- warning: The package-manager record has not been updated in over a year.
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for telegraf. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **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

## Other Package-Manager Records

- 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


## Related links

- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched curated package taxonomy and local package facts.
- [appcenter-cli](https://www.automicvault.com/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/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/pkg/npm/proxy/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, debug, javascript, networking, node.
- [telegraf](https://www.automicvault.com/pkg/brew/telegraf/) - Same normalized package name exists in another local package ecosystem.

## Sources

- 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
