telegram-tl-node
telegram-tl-node copied to clipboard
API layer 45
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?
I am a bit confused about Layer 45 or 51 or 52.
Please take a look at this link :
scheme.tl
In this link at the end of page you will see LAYER 52
But in this link :
config.js
line 104 you will see LAYER 51
And you are talking about LAYER 45!!!!!!!!!!!!!!!!!!!!!!
What is going on and which layer should we use?
Also i have same questions like @misamplus said about "#" & "flags". What are these and how can we use them?
@GoldenLighter When I wrote this comment, I saw Layer 45 in those lines, perhaps they updates them to upper layers.
@GoldenLighter Anywhere no body help me! If you get a result, notice me please.
I have this problem in using channels. nobody find a solution?
No one?
I could possibly help with this. Every function will now take a flags
argument, this is an int set with bitwise operators. So, for example, say if we have this method. Notice how the type is true
for the parameters silent
, background
and clear_draft
. So, if we did a bitwise set operator for flag 5, it would set silent
to true. This is simply a much more efficient way of transferring simple true/false values in a single int32. I can give more examples later, if you'd like.
I got this error when change api schema to version 54.
constructor-builder.js:137 var typeName = type[1]; ^ TypeError: Cannot read property '1' of null
Why this module is not updated?
I bought Full telegram api from here, C# FULL TELEGRAM API It works like a charm, no error at all. Certainly sure your coding have problems & telegram latest layer is ok.
checkout this https://github.com/goodmind/telegram-tl-node
/cc @mohammadrezaprw @misamplus
Hi there,
That project is using web telegram codes in js & It's desktop part is using NW.js.
(Desktop vs. js -> -:))
So i don't think, that is what we need.
As you know web telegram has some limitations to work with.
@GoldenLighter It's not web telegram it is telegram-tl-node but with support for layer 57
You are right :
Telegram TypeLanguage (TL) unofficial library in pure javascript on the Node.js platform
So it's using javascript funtions.
These functions have some limitations....
Check this out :
C# FULL TELEGRAM API
No limitations at all -:)
@GoldenLighter What limitations?