# gram-js/gramjs

NodeJS/Browser MTProto API Telegram client library,

Repository: https://github.com/gram-js/gramjs
Canonical: https://ross.abutalabs.com/products/gramjs
Language: TypeScript
License: MIT
License Family: permissive
Topics: hacktoberfest, telegram-client, telegram, nodejs, browser, javascript, mtproto, api-client
Archived: true
Last push: 2026-07-14T19:50:48+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 92, release rhythm 8, longevity 100
- inputs: {"age_days": 2579, "days_push": 50, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1767, forks 232 (observed 2026-08-28T04:05:33.567732+00:00)

## What it is
GramJS is a Telegram MTProto API client library written in TypeScript for Node.js and browsers, based on the Python Telethon project. It lets developers programmatically authorize Telegram accounts and send/receive messages and other Telegram API operations.

## Use cases
- send and receive telegram messages programmatically
- build a telegram bot or userbot in javascript
- automate telegram account actions from nodejs
- interact with the telegram mtproto api in the browser
- scrape telegram channel messages
- write a telegram client app in typescript

## When to choose
- you need a full MTProto Telegram client (not just the bot API) in JavaScript or TypeScript
- you want a Telethon-like API in the Node.js or browser ecosystem
- you need user-account authorization with sessions, not only bot tokens

## When to avoid
- you are starting a new project - the repo is archived and unmaintained; use the teleproto fork instead
- you only need simple bot API calls, where lighter bot frameworks suffice
- you need guaranteed long-term support or security updates

## Facets
- artifact type: library
- maturity: abandoned
- function: http-client, sdk, auth
- domain: messaging-platforms, developer-tools
- platform: browser
- tags: telegram, mtproto, telegram-client, api-client, archived, telethon-port, automation, nodejs, javascript, typescript

## Member repositories
- gram-js/gramjs (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:33.567732+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:26:24.717407+00:00, confidence not recorded.
  - readme: https://github.com/gram-js/gramjs (fetched 2026-08-28T04:05:33.567732+00:00, sha a64720e1d02d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
