Skip to content

TelegramV/ProtoV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProtoV

Telegram Application with JavaScript.

Install

NPM:

npm install protov

Yarn:

yarn add protov

Basic Example

const ProtoV = require("protov");
const schema = require("protov-tl-schema");

const app = new ProtoV({
    layer: 113,
    schema: schema,
    main_dc_id: 2,
    api_id: 123456,
    api_hash: "",
    app_version: "0.1.0"
});

app.start().then(() => {
    console.log("started");
    
    app.invoke("help.getNearestDc")
       .then(NearestDc => console.log(NearestDc))
       .catch(e => console.error(e));
});

About

JavaScript MTProto implementation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published