New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@yuva1422/telegram.js

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yuva1422/telegram.js

A powerful Node.js module that allows you to easily interact with the Telegram Bot API

1.0.5
latest
Source
npm
Version published
Maintainers
1
Created
Source


Table of contents

About

telegram.js is a powerful module that allows you to easily interact with the Telegram Bot API

  • Object-oriented
  • Performant
  • 99% coverage of telegram Bot API

Installation

npm install @yuva1422/telegram.js

Example Usage

const Telegram = require('@yuva1422/telegram.js');
const client = new Telegram.Client();

client.on('ready', () => {
  console.log(`Logged in as ${client.user.username}`);
});

client.on('message', (msg) => {
  if (msg.content === 'hii') {
    msg.reply('hello');
  };
});

client.commands.on('ping', (bot, msg, args) => {
  msg.chat.send('pong!');
});

client.login('token');


client.startPolling();

Contributing

Before creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the documentation.

Help

If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to join our official Telegram.js Server

Keywords

telegram

FAQs

Package last updated on 18 Jan 2022

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