diff --git a/tl-parser.c b/tl-parser.c index c98b009..a7ccf6b 100644 --- a/tl-parser.c +++ b/tl-parser.c @@ -2741,7 +2741,7 @@ void wstr (const char *s) { assert (0); } wdata (s, x); - x ++; + x ++; // The header, containing the length, which is 1 byte int t = 0; if (x & 3) { wdata (&t, 4 - (x & 3)); diff --git a/tl-tl.h b/tl-tl.h index 9b6e8be..8bc0a70 100644 --- a/tl-tl.h +++ b/tl-tl.h @@ -25,6 +25,9 @@ #ifndef __TL_TL_H__ #define __TL_TL_H__ +// Current tl-tl schema is V2 +// See https://core.telegram.org/mtproto/TL-tl + #define TLS_SCHEMA_V2 0x3a2f9be2 #define TLS_TYPE 0x12eb4386 #define TLS_COMBINATOR 0x5c0a1ed5