0.4.3 • Published 3 years ago

teledotjs v0.4.3

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
3 years ago

Tele.js

Telegram MTProto API Client Wrapper Framework in Javascript

Installation

npm i teledotjs

Example

see on examples folder

import { Client } from 'teledotjs';
import * as dotenv from 'dotenv';
import { inspect } from 'util';
dotenv.config();

const api_hash = <string>process.env.API_HASH;
const api_id = <string>process.env.API_ID;
const bot = new Client(api_hash, api_id);

bot.catch((err) => {
  console.log('a error exist');
  console.log(err);
});

bot.on('update', (upd) => {
  console.log(inspect(upd, false, null, true));
});

bot.on('login', (user) => {
  console.log('started as ', user.user.first_name);
});
bot.start();

Note !

This project under developing maybe some function not working

0.3.0

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.2.2

3 years ago

0.4.3

3 years ago

0.4.2

3 years ago

0.1.0

3 years ago

0.0.0

3 years ago