telegram-tl-node icon indicating copy to clipboard operation
telegram-tl-node copied to clipboard

API layer 45

Open justmisam opened this issue 8 years ago • 14 comments

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?

justmisam avatar Feb 06 '16 11:02 justmisam

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?

GoldenLighter avatar May 21 '16 08:05 GoldenLighter

Also i have same questions like @misamplus said about "#" & "flags". What are these and how can we use them?

GoldenLighter avatar May 21 '16 08:05 GoldenLighter

@GoldenLighter When I wrote this comment, I saw Layer 45 in those lines, perhaps they updates them to upper layers.

justmisam avatar May 21 '16 12:05 justmisam

@GoldenLighter Anywhere no body help me! If you get a result, notice me please.

justmisam avatar May 21 '16 12:05 justmisam

I have this problem in using channels. nobody find a solution?

mjzarrin avatar Jun 10 '16 13:06 mjzarrin

No one?

panaali avatar Jun 30 '16 20:06 panaali

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.

tjhorner avatar Sep 21 '16 19:09 tjhorner

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?

mzilot avatar Nov 22 '16 11:11 mzilot

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.

GoldenLighter avatar Nov 22 '16 13:11 GoldenLighter

checkout this https://github.com/goodmind/telegram-tl-node

/cc @mohammadrezaprw @misamplus

goodmind avatar Dec 27 '16 16:12 goodmind

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 avatar Dec 29 '16 01:12 GoldenLighter

@GoldenLighter It's not web telegram it is telegram-tl-node but with support for layer 57

goodmind avatar Dec 29 '16 05:12 goodmind

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 avatar Dec 29 '16 06:12 GoldenLighter

@GoldenLighter What limitations?

goodmind avatar Dec 29 '16 12:12 goodmind