enricostara / telegram-tl-node Goto Github PK
View Code? Open in Web Editor NEWTelegram TypeLanguage library (javascript, node.js)
License: MIT License
Telegram TypeLanguage library (javascript, node.js)
License: MIT License
Hi!
I got Telegram API layer 45 (to support channel) from 101th line of "https://github.com/zhukov/webogram/blob/master/app/js/lib/config.js" and changed "telegram-mt-node" layer from 23 to 45 in 153th line of "encrypted-rpc-channel.js".
Then in "constructor-builtder.js" of "telegram-tl-node", I need to support new types such as "#", "flags?" and etc; Can you help me?
The jsbn link in the readme has a wrong URL (currently redirecting to get-log page)
in file /lib/type-object.js
TypeObject.prototype._readBytes
When byteLength = 0 function work incorrectly
In lib/type-object.js
, line 256:
this.constructor.logger.info('end > this._buffer.length', end, this._buffer.length);
causes a crash:
[ERROR] Fri, 06 Jan 2017 17:23:00 GMT net.RpcChannel Unable to deserialize response 6cfeffff from mtproto.service.invokeWithLayer due to TypeError: Cannot read property 'info' of undefined
at EncryptedMessage.TypeObject._readBytes (/home/leo/src/matrix/matrix-appservice-tg/node_modules/telegram.link/node_modules/telegram-tl-node/lib/type-object.js:256:32)
I have mitigated this by changing the code to
this.constructor.logger &&
this.constructor.logger.info('end > this._buffer.length', end, this._buffer.length);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.