You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

telegram-bot-api-nodejs

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

telegram-bot-api-nodejs

Telegram Bot API client for nodejs

1.0.74
npmnpm
Version published
Weekly downloads
83
-25.23%
Maintainers
1
Weekly downloads
 
Created
Source

telegram-bot-api-nodejs

Install

npm install telegram-bot-api-nodejs

Usage

Send message

import { sendMessage } from "telegram-bot-api-nodejs"

const token = "12345:abcd..."
const message = await sendMessage(token, {
  chat_id: 12345,
  text: "Hello",
})

Parse webhook updates

import { parseUpdate } from "telegram-bot-api-nodejs"


const update = await parseUpdate(ctx.request.body)

if (update.message) {
  // ...
}

FAQs

Package last updated on 12 May 2025

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