Skip to content

yuvapoojary/telegram.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();

Links

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

About

A powerfull JavaScript library for interacting with telegram bot API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published