Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

tdgram.js

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tdgram.js

High-level Telegram client for Node.js/TypeScript built on TDLib

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
1
-87.5%
Maintainers
1
Weekly downloads
 
Created
Source

tdgram.js

High-level Telegram client for Node.js/TypeScript built on TDLib.

Status: Early development. Not ready for production use.

Why tdgram.js?

  • Official foundation — Built on TDLib, not a custom MTProto implementation
  • TypeScript-first — Full type safety out of the box
  • High-level API — Inspired by the best patterns from GramJS and Telethon

Planned API

import { TelegramClient } from 'tdgram.js'

const client = new TelegramClient({ apiId, apiHash })
await client.start()

client.on('message', async (msg) => {
  if (msg.text === 'ping') {
    await msg.reply('pong')
  }
})

const chats = await client.getChats({ limit: 20 })
await client.sendMessage(chatId, 'Hello!')

Install

npm install tdgram.js

License

MIT

Keywords

telegram

FAQs

Package last updated on 09 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts