@mtkruto/node 0.60.0 → 0.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/esm/2_tl.d.ts +4 -6
  2. package/esm/2_tl.d.ts.map +1 -1
  3. package/esm/2_tl.js +4 -6
  4. package/esm/client/0_storage_operations.d.ts.map +1 -1
  5. package/esm/client/0_storage_operations.js +9 -9
  6. package/esm/client/1_client_encrypted.d.ts.map +1 -1
  7. package/esm/client/1_client_encrypted.js +173 -126
  8. package/esm/client/1_client_plain.d.ts.map +1 -1
  9. package/esm/client/1_client_plain.js +12 -8
  10. package/esm/tl/0_api.d.ts +1 -2
  11. package/esm/tl/0_api.d.ts.map +1 -1
  12. package/esm/tl/0_api.js +7345 -6639
  13. package/esm/tl/0_tl_raw_reader.d.ts +2 -0
  14. package/esm/tl/0_tl_raw_reader.d.ts.map +1 -1
  15. package/esm/tl/0_tl_raw_reader.js +10 -0
  16. package/esm/tl/1_utilities.d.ts +10 -1
  17. package/esm/tl/1_utilities.d.ts.map +1 -1
  18. package/esm/tl/1_utilities.js +25 -1
  19. package/esm/tl/{5_message.d.ts → 2_message.d.ts} +5 -8
  20. package/esm/tl/2_message.d.ts.map +1 -0
  21. package/esm/tl/{5_message.js → 2_message.js} +16 -33
  22. package/esm/tl/{3_tl_reader.d.ts → 2_tl_reader.d.ts} +4 -3
  23. package/esm/tl/2_tl_reader.d.ts.map +1 -0
  24. package/esm/tl/2_tl_reader.js +146 -0
  25. package/esm/tl/2_tl_reader_test.d.ts.map +1 -0
  26. package/{script/tl/4_tl_writer.d.ts → esm/tl/2_tl_writer.d.ts} +4 -3
  27. package/esm/tl/2_tl_writer.d.ts.map +1 -0
  28. package/esm/tl/2_tl_writer.js +206 -0
  29. package/esm/tl/2_tl_writer_test.d.ts.map +1 -0
  30. package/{script/tl/3_utilities.d.ts → esm/tl/2_utilities.d.ts} +1 -1
  31. package/esm/tl/{3_utilities.d.ts.map → 2_utilities.d.ts.map} +1 -1
  32. package/esm/types/2_chosen_inline_result.d.ts.map +1 -1
  33. package/esm/types/2_chosen_inline_result.js +2 -2
  34. package/esm/types/5_callback_query.d.ts.map +1 -1
  35. package/esm/types/5_callback_query.js +3 -3
  36. package/esm/utilities/0_misc.d.ts +0 -1
  37. package/esm/utilities/0_misc.d.ts.map +1 -1
  38. package/esm/utilities/0_misc.js +0 -1
  39. package/package.json +1 -1
  40. package/script/2_tl.d.ts +4 -6
  41. package/script/2_tl.d.ts.map +1 -1
  42. package/script/2_tl.js +4 -6
  43. package/script/client/0_storage_operations.d.ts.map +1 -1
  44. package/script/client/0_storage_operations.js +8 -8
  45. package/script/client/1_client_encrypted.d.ts.map +1 -1
  46. package/script/client/1_client_encrypted.js +171 -124
  47. package/script/client/1_client_plain.d.ts.map +1 -1
  48. package/script/client/1_client_plain.js +11 -7
  49. package/script/tl/0_api.d.ts +1 -2
  50. package/script/tl/0_api.d.ts.map +1 -1
  51. package/script/tl/0_api.js +7346 -6640
  52. package/script/tl/0_tl_raw_reader.d.ts +2 -0
  53. package/script/tl/0_tl_raw_reader.d.ts.map +1 -1
  54. package/script/tl/0_tl_raw_reader.js +10 -0
  55. package/script/tl/1_utilities.d.ts +10 -1
  56. package/script/tl/1_utilities.d.ts.map +1 -1
  57. package/script/tl/1_utilities.js +29 -1
  58. package/script/tl/{5_message.d.ts → 2_message.d.ts} +5 -8
  59. package/script/tl/2_message.d.ts.map +1 -0
  60. package/script/tl/{5_message.js → 2_message.js} +17 -34
  61. package/script/tl/{3_tl_reader.d.ts → 2_tl_reader.d.ts} +4 -3
  62. package/script/tl/2_tl_reader.d.ts.map +1 -0
  63. package/script/tl/2_tl_reader.js +150 -0
  64. package/script/tl/2_tl_reader_test.d.ts.map +1 -0
  65. package/{esm/tl/4_tl_writer.d.ts → script/tl/2_tl_writer.d.ts} +4 -3
  66. package/script/tl/2_tl_writer.d.ts.map +1 -0
  67. package/script/tl/2_tl_writer.js +210 -0
  68. package/script/tl/2_tl_writer_test.d.ts.map +1 -0
  69. package/{esm/tl/3_utilities.d.ts → script/tl/2_utilities.d.ts} +1 -1
  70. package/script/tl/{3_utilities.d.ts.map → 2_utilities.d.ts.map} +1 -1
  71. package/script/types/2_chosen_inline_result.d.ts.map +1 -1
  72. package/script/types/2_chosen_inline_result.js +1 -1
  73. package/script/types/5_callback_query.d.ts.map +1 -1
  74. package/script/types/5_callback_query.js +2 -2
  75. package/script/utilities/0_misc.d.ts +0 -1
  76. package/script/utilities/0_misc.d.ts.map +1 -1
  77. package/script/utilities/0_misc.js +1 -2
  78. package/esm/tl/2_deserialize.d.ts +0 -23
  79. package/esm/tl/2_deserialize.d.ts.map +0 -1
  80. package/esm/tl/2_deserialize.js +0 -98
  81. package/esm/tl/2_serialize.d.ts +0 -22
  82. package/esm/tl/2_serialize.d.ts.map +0 -1
  83. package/esm/tl/2_serialize.js +0 -163
  84. package/esm/tl/2_serialize_test.d.ts.map +0 -1
  85. package/esm/tl/3_deserialize_test.d.ts.map +0 -1
  86. package/esm/tl/3_tl_reader.d.ts.map +0 -1
  87. package/esm/tl/3_tl_reader.js +0 -49
  88. package/esm/tl/4_rpc_result.d.ts +0 -27
  89. package/esm/tl/4_rpc_result.d.ts.map +0 -1
  90. package/esm/tl/4_rpc_result.js +0 -33
  91. package/esm/tl/4_tl_writer.d.ts.map +0 -1
  92. package/esm/tl/4_tl_writer.js +0 -45
  93. package/esm/tl/5_message.d.ts.map +0 -1
  94. package/script/tl/2_deserialize.d.ts +0 -23
  95. package/script/tl/2_deserialize.d.ts.map +0 -1
  96. package/script/tl/2_deserialize.js +0 -101
  97. package/script/tl/2_serialize.d.ts +0 -22
  98. package/script/tl/2_serialize.d.ts.map +0 -1
  99. package/script/tl/2_serialize.js +0 -166
  100. package/script/tl/2_serialize_test.d.ts.map +0 -1
  101. package/script/tl/3_deserialize_test.d.ts.map +0 -1
  102. package/script/tl/3_tl_reader.d.ts.map +0 -1
  103. package/script/tl/3_tl_reader.js +0 -53
  104. package/script/tl/4_rpc_result.d.ts +0 -27
  105. package/script/tl/4_rpc_result.d.ts.map +0 -1
  106. package/script/tl/4_rpc_result.js +0 -37
  107. package/script/tl/4_tl_writer.d.ts.map +0 -1
  108. package/script/tl/4_tl_writer.js +0 -49
  109. package/script/tl/5_message.d.ts.map +0 -1
  110. /package/esm/tl/{3_utilities.js → 2_utilities.js} +0 -0
  111. /package/script/tl/{3_utilities.js → 2_utilities.js} +0 -0
@@ -33,4 +33,4 @@ export declare function chatIdToPeer(chatId: number): Api.Peer;
33
33
  export declare function chatIdToPeerId(chatId: number): bigint;
34
34
  export declare function getChatIdPeerType(chatId: number): "user" | "chat" | "channel";
35
35
  export declare function inputPeerToPeer(inputPeer: Api.InputPeer): Api.Peer;
36
- //# sourceMappingURL=3_utilities.d.ts.map
36
+ //# sourceMappingURL=2_utilities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"3_utilities.d.ts","sourceRoot":"","sources":["../../src/tl/3_utilities.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,GAAG,MAAM,YAAY,CAAC;AAGlC,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE1D;AAGD,MAAM,MAAM,SAAS,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,gBAAgB,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,aAAa,CAAC;AAErG,MAAM,MAAM,uBAAuB,GAAG,GAAG,CAAC,aAAa,GAAG,GAAG,CAAC,aAAa,GAAG,GAAG,CAAC,gBAAgB,GAAG,GAAG,CAAC,wBAAwB,GAAG,GAAG,CAAC,2BAA2B,CAAC;AAEpK,MAAM,MAAM,mBAAmB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC;AAErG,wBAAgB,YAAY,CAAC,IAAI,EAAE,SAAS,GAAG,uBAAuB,GAAG,GAAG,CAAC,IAAI,GAAG,mBAAmB,GAAG,MAAM,CAU/G;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,GAAG,CAAC,IAAI,CAQrD;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAWrD;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAQ7E;AAED,wBAAgB,eAAe,CAAC,SAAS,EAAE,GAAG,CAAC,SAAS,GAAG,GAAG,CAAC,IAAI,CAUlE"}
1
+ {"version":3,"file":"2_utilities.d.ts","sourceRoot":"","sources":["../../src/tl/2_utilities.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,GAAG,MAAM,YAAY,CAAC;AAGlC,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE1D;AAGD,MAAM,MAAM,SAAS,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,gBAAgB,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,aAAa,CAAC;AAErG,MAAM,MAAM,uBAAuB,GAAG,GAAG,CAAC,aAAa,GAAG,GAAG,CAAC,aAAa,GAAG,GAAG,CAAC,gBAAgB,GAAG,GAAG,CAAC,wBAAwB,GAAG,GAAG,CAAC,2BAA2B,CAAC;AAEpK,MAAM,MAAM,mBAAmB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC;AAErG,wBAAgB,YAAY,CAAC,IAAI,EAAE,SAAS,GAAG,uBAAuB,GAAG,GAAG,CAAC,IAAI,GAAG,mBAAmB,GAAG,MAAM,CAU/G;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,GAAG,CAAC,IAAI,CAQrD;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAWrD;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAQ7E;AAED,wBAAgB,eAAe,CAAC,SAAS,EAAE,GAAG,CAAC,SAAS,GAAG,GAAG,CAAC,IAAI,CAUlE"}
@@ -1 +1 @@
1
- {"version":3,"file":"2_chosen_inline_result.d.ts","sourceRoot":"","sources":["../../src/types/2_chosen_inline_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAiB,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAqB,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAiB,IAAI,EAAE,MAAM,aAAa,CAAC;AAElD,8BAA8B;AAC9B,MAAM,WAAW,kBAAkB;IACjC,2DAA2D;IAC3D,QAAQ,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,IAAI,EAAE,IAAI,CAAC;IACX,qDAAqD;IACrD,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,6CAA6C;IAC7C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAsB,2BAA2B,CAAC,IAAI,EAAE,GAAG,CAAC,mBAAmB,EAAE,SAAS,EAAE,YAAY,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAYrI"}
1
+ {"version":3,"file":"2_chosen_inline_result.d.ts","sourceRoot":"","sources":["../../src/types/2_chosen_inline_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAgB,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAqB,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAiB,IAAI,EAAE,MAAM,aAAa,CAAC;AAElD,8BAA8B;AAC9B,MAAM,WAAW,kBAAkB;IACjC,2DAA2D;IAC3D,QAAQ,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,IAAI,EAAE,IAAI,CAAC;IACX,qDAAqD;IACrD,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,6CAA6C;IAC7C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAsB,2BAA2B,CAAC,IAAI,EAAE,GAAG,CAAC,mBAAmB,EAAE,SAAS,EAAE,YAAY,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAYrI"}
@@ -34,7 +34,7 @@ async function constructChosenInlineResult(ubis, getEntity) {
34
34
  resultId: ubis.id,
35
35
  from: (0, _1_user_js_1.constructUser)(entity),
36
36
  location: (0, _2_tl_js_1.is)("geoPoint", ubis.geo) ? (0, _0_location_js_1.constructLocation)(ubis.geo) : undefined,
37
- inlineMessageId: ubis.msg_id === undefined ? undefined : (0, _1_utilities_js_1.base64EncodeUrlSafe)((0, _2_tl_js_1.serialize)(ubis.msg_id)),
37
+ inlineMessageId: ubis.msg_id === undefined ? undefined : (0, _1_utilities_js_1.base64EncodeUrlSafe)(new _2_tl_js_1.TLWriter().serialize(ubis.msg_id).buffer),
38
38
  query: ubis.query,
39
39
  });
40
40
  }
@@ -1 +1 @@
1
- {"version":3,"file":"5_callback_query.d.ts","sourceRoot":"","sources":["../../src/types/5_callback_query.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,OAAO,EAAE,GAAG,EAAyC,MAAM,YAAY,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAiB,IAAI,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAExD,iCAAiC;AACjC,MAAM,WAAW,aAAa;IAC5B,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,4CAA4C;IAC5C,IAAI,EAAE,IAAI,CAAC;IACX,uGAAuG;IACvG,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oKAAoK;IACpK,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gHAAgH;IAChH,YAAY,EAAE,MAAM,CAAC;IACrB,oFAAoF;IACpF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAGD,wBAAgB,0BAA0B,CAAC,eAAe,EAAE,MAAM,GAAG,GAAG,CAAC,uBAAuB,CAa/F;AAED,wBAAsB,sBAAsB,CAAC,aAAa,EAAE,GAAG,CAAC,sBAAsB,GAAG,GAAG,CAAC,4BAA4B,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAmBrM"}
1
+ {"version":3,"file":"5_callback_query.d.ts","sourceRoot":"","sources":["../../src/types/5_callback_query.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,OAAO,EAAE,GAAG,EAAwC,MAAM,YAAY,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAiB,IAAI,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAExD,iCAAiC;AACjC,MAAM,WAAW,aAAa;IAC5B,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,4CAA4C;IAC5C,IAAI,EAAE,IAAI,CAAC;IACX,uGAAuG;IACvG,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oKAAoK;IACpK,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gHAAgH;IAChH,YAAY,EAAE,MAAM,CAAC;IACrB,oFAAoF;IACpF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAGD,wBAAgB,0BAA0B,CAAC,eAAe,EAAE,MAAM,GAAG,GAAG,CAAC,uBAAuB,CAa/F;AAED,wBAAsB,sBAAsB,CAAC,aAAa,EAAE,GAAG,CAAC,sBAAsB,GAAG,GAAG,CAAC,4BAA4B,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAmBrM"}
@@ -31,7 +31,7 @@ function deserializeInlineMessageId(inlineMessageId) {
31
31
  try {
32
32
  const buffer = (0, _1_utilities_js_1.base64DecodeUrlSafe)(inlineMessageId);
33
33
  const reader = new _2_tl_js_1.TLReader(buffer);
34
- const object = reader.readObject();
34
+ const object = reader.deserialize("InputBotInlineMessageID");
35
35
  if ((0, _2_tl_js_1.is)("inputBotInlineMessageID64", object) || (0, _2_tl_js_1.is)("inputBotInlineMessageID", object)) {
36
36
  return object;
37
37
  }
@@ -59,6 +59,6 @@ async function constructCallbackQuery(callbackQuery, getEntity, getMessage) {
59
59
  return (0, _1_utilities_js_1.cleanObject)({ id, from: user, message, chatInstance, data, gameShortName });
60
60
  }
61
61
  else {
62
- return (0, _1_utilities_js_1.cleanObject)({ id, from: user, inlineMessageId: (0, _1_utilities_js_1.base64EncodeUrlSafe)((0, _2_tl_js_1.serialize)(callbackQuery.msg_id)), chatInstance, data, gameShortName });
62
+ return (0, _1_utilities_js_1.cleanObject)({ id, from: user, inlineMessageId: (0, _1_utilities_js_1.base64EncodeUrlSafe)(new _2_tl_js_1.TLWriter().serialize(callbackQuery.msg_id).buffer), chatInstance, data, gameShortName });
63
63
  }
64
64
  }
@@ -3,7 +3,6 @@ export declare function mustPrompt(message: string): string;
3
3
  export declare function mustPromptNumber(message: string): number;
4
4
  export declare function mustPromptOneOf<T extends readonly string[]>(message: string, choices: T): T[number];
5
5
  export declare const ZERO_CHANNEL_ID = -1000000000000;
6
- export declare const VECTOR_CONSTRUCTOR = 481674261;
7
6
  export declare function toUnixTimestamp(date: Date): number;
8
7
  export declare function fromUnixTimestamp(date: number): Date;
9
8
  export declare function iterateReadableStream(stream: ReadableStream): AsyncGenerator<any, void, unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"0_misc.d.ts","sourceRoot":"","sources":["../../src/utilities/0_misc.ts"],"names":[],"mappings":"AAwBA,wBAAgB,IAAI,CAAC,YAAY,EAAE,OAAO,QAIzC;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,UAOzC;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,UAO/C;AAED,wBAAgB,eAAe,CAAC,CAAC,SAAS,SAAS,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAMnG;AAED,eAAO,MAAM,eAAe,iBAAiB,CAAC;AAE9C,eAAO,MAAM,kBAAkB,YAAa,CAAC;AAE7C,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,UAEzC;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,QAE7C;AAED,wBAAuB,qBAAqB,CAAC,MAAM,EAAE,cAAc,sCAWlE"}
1
+ {"version":3,"file":"0_misc.d.ts","sourceRoot":"","sources":["../../src/utilities/0_misc.ts"],"names":[],"mappings":"AAwBA,wBAAgB,IAAI,CAAC,YAAY,EAAE,OAAO,QAIzC;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,UAOzC;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,UAO/C;AAED,wBAAgB,eAAe,CAAC,CAAC,SAAS,SAAS,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAMnG;AAED,eAAO,MAAM,eAAe,iBAAiB,CAAC;AAE9C,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,UAEzC;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,QAE7C;AAED,wBAAuB,qBAAqB,CAAC,MAAM,EAAE,cAAc,sCAWlE"}
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.VECTOR_CONSTRUCTOR = exports.ZERO_CHANNEL_ID = void 0;
26
+ exports.ZERO_CHANNEL_ID = void 0;
27
27
  exports.drop = drop;
28
28
  exports.mustPrompt = mustPrompt;
29
29
  exports.mustPromptNumber = mustPromptNumber;
@@ -82,7 +82,6 @@ function mustPromptOneOf(message, choices) {
82
82
  return result;
83
83
  }
84
84
  exports.ZERO_CHANNEL_ID = -1000000000000;
85
- exports.VECTOR_CONSTRUCTOR = 0x1CB5C415;
86
85
  function toUnixTimestamp(date) {
87
86
  return Math.floor(date.getTime() / _0_deps_js_1.SECOND);
88
87
  }
@@ -1,23 +0,0 @@
1
- /**
2
- * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
- *
5
- * This file is part of MTKruto.
6
- *
7
- * This program is free software: you can redistribute it and/or modify
8
- * it under the terms of the GNU Lesser General Public License as published by
9
- * the Free Software Foundation, either version 3 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU Lesser General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public License
18
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
- */
20
- import { TLRawReader } from "./0_tl_raw_reader.js";
21
- import { AnyType } from "./0_api.js";
22
- export declare function deserialize(reader: TLRawReader, paramDesc: [string, unknown, string][], name: string): AnyType;
23
- //# sourceMappingURL=2_deserialize.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"2_deserialize.d.ts","sourceRoot":"","sources":["../../src/tl/2_deserialize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAE,OAAO,EAA+B,MAAM,YAAY,CAAC;AAkDlE,wBAAgB,WAAW,CACzB,MAAM,EAAE,WAAW,EACnB,SAAS,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,EACtC,IAAI,EAAE,MAAM,GACX,OAAO,CAqCT"}
@@ -1,98 +0,0 @@
1
- /**
2
- * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
- *
5
- * This file is part of MTKruto.
6
- *
7
- * This program is free software: you can redistribute it and/or modify
8
- * it under the terms of the GNU Lesser General Public License as published by
9
- * the Free Software Foundation, either version 3 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU Lesser General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public License
18
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
- */
20
- // deno-lint-ignore-file no-explicit-any
21
- import { assertEquals } from "../0_deps.js";
22
- import { analyzeOptionalParam, getOptionalParamInnerType, isOptionalParam } from "./1_utilities.js";
23
- import { flags, getType, getTypeName } from "./0_api.js";
24
- function deserializeSingleParam(reader, type, ntype) {
25
- if (isOptionalParam(ntype)) {
26
- ntype = getOptionalParamInnerType(ntype);
27
- }
28
- if (type == Uint8Array) {
29
- return reader.readBytes();
30
- }
31
- else {
32
- switch (type) {
33
- case "bigint":
34
- if (ntype == "int128") {
35
- return reader.readInt128();
36
- }
37
- else if (ntype === "int256") {
38
- return reader.readInt256();
39
- }
40
- else {
41
- return reader.readInt64();
42
- }
43
- case "boolean":
44
- return reader.readInt32(false) == 0x997275B5;
45
- case "number":
46
- if (ntype == "double") {
47
- return reader.readDouble();
48
- }
49
- else {
50
- return reader.readInt32();
51
- }
52
- case "string":
53
- return reader.readString();
54
- case "true":
55
- return true;
56
- default: {
57
- const cid = reader.readInt32(false);
58
- const name = getTypeName(cid);
59
- if (!name) {
60
- throw new Error(`Constructor with ID 0x${cid.toString(16).toUpperCase()} not found`);
61
- }
62
- return deserialize(reader, getType(name)[1], name);
63
- }
64
- }
65
- }
66
- }
67
- export function deserialize(reader, paramDesc, name) {
68
- const type_ = { _: name };
69
- const flagFields = {};
70
- for (const [name, type, ntype] of paramDesc) {
71
- if (isOptionalParam(ntype)) {
72
- const { flagField, bitIndex } = analyzeOptionalParam(ntype);
73
- const bits = flagFields[flagField];
74
- if ((bits & (1 << bitIndex)) == 0) {
75
- continue;
76
- }
77
- }
78
- if (type == flags && ntype == "#") {
79
- flagFields[name] = reader.readInt32();
80
- continue;
81
- }
82
- if (type instanceof Array) {
83
- assertEquals(reader.readInt32(false), 0x1CB5C415);
84
- const count = reader.readInt32();
85
- const items = new Array();
86
- for (let i = 0; i < count; i++) {
87
- items.push(deserializeSingleParam(reader, type[0], ntype));
88
- }
89
- type_[name] = items;
90
- continue;
91
- }
92
- const value = deserializeSingleParam(reader, type, ntype);
93
- if (typeof value !== "boolean" || value) {
94
- type_[name] = value;
95
- }
96
- }
97
- return type_;
98
- }
@@ -1,22 +0,0 @@
1
- /**
2
- * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
- *
5
- * This file is part of MTKruto.
6
- *
7
- * This program is free software: you can redistribute it and/or modify
8
- * it under the terms of the GNU Lesser General Public License as published by
9
- * the Free Software Foundation, either version 3 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU Lesser General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public License
18
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
- */
20
- import { AnyObject } from "./0_api.js";
21
- export declare function serialize(type_: AnyObject): Uint8Array;
22
- //# sourceMappingURL=2_serialize.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"2_serialize.d.ts","sourceRoot":"","sources":["../../src/tl/2_serialize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,SAAS,EAAkB,MAAM,YAAY,CAAC;AA8FvD,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,GAAG,UAAU,CA0DtD"}
@@ -1,163 +0,0 @@
1
- /**
2
- * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
- *
5
- * This file is part of MTKruto.
6
- *
7
- * This program is free software: you can redistribute it and/or modify
8
- * it under the terms of the GNU Lesser General Public License as published by
9
- * the Free Software Foundation, either version 3 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU Lesser General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public License
18
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
- */
20
- // deno-lint-ignore-file no-explicit-any
21
- import { flags, getType } from "./0_api.js";
22
- import { TLRawWriter } from "./0_tl_raw_writer.js";
23
- import { analyzeOptionalParam, assertIsValidType, getOptionalParamInnerType, isOptionalParam } from "./1_utilities.js";
24
- function serializeSingleParam(writer, value, type, ntype, debugInfo) {
25
- if (isOptionalParam(ntype)) {
26
- ntype = getOptionalParamInnerType(ntype);
27
- }
28
- const valueRepr = value == null ? null : (typeof value === "object" && "_" in value) ? value._ : value.constructor.name;
29
- if (type == Uint8Array) {
30
- if ((value instanceof Uint8Array)) {
31
- writer.writeBytes(value);
32
- return writer.buffer;
33
- }
34
- else {
35
- throw new TypeError(`Expected Uint8Array but received ${valueRepr} ${debugInfo}`);
36
- }
37
- }
38
- switch (type) {
39
- case "bigint":
40
- if (typeof value === "bigint") {
41
- if (ntype == "int128") {
42
- writer.writeInt128(value);
43
- }
44
- else if (ntype === "int256") {
45
- writer.writeInt256(value);
46
- }
47
- else {
48
- writer.writeInt64(value);
49
- }
50
- }
51
- else {
52
- throw new TypeError(`Expected bigint but received ${valueRepr} ${debugInfo}`);
53
- }
54
- break;
55
- case "boolean":
56
- if (typeof value === "boolean") {
57
- if (value) {
58
- writer.writeInt32(0x997275B5);
59
- }
60
- else {
61
- writer.writeInt32(0xBC799737);
62
- }
63
- }
64
- else {
65
- throw new TypeError(`Expected boolean but received ${valueRepr} ${debugInfo}`);
66
- }
67
- break;
68
- case "number":
69
- //
70
- if (value == null) {
71
- value = 0;
72
- }
73
- //
74
- if (typeof value === "number") {
75
- if (ntype == "double") {
76
- writer.writeDouble(value);
77
- }
78
- else {
79
- writer.writeInt32(value);
80
- }
81
- }
82
- else {
83
- throw new TypeError(`Expected number but received ${valueRepr} ${debugInfo}`);
84
- }
85
- break;
86
- case "string":
87
- if (typeof value === "string") {
88
- writer.writeString(value);
89
- }
90
- else if (value instanceof Uint8Array) {
91
- writer.writeBytes(value);
92
- }
93
- else {
94
- writer.writeString("");
95
- }
96
- // else {
97
- // throw new TypeError(`Expected string or Uint8Array but received ${valueRepr}`);
98
- // }
99
- break;
100
- case "true":
101
- if (value !== true) {
102
- throw new TypeError(`Expected true but received ${valueRepr} ${debugInfo}`);
103
- }
104
- break;
105
- default:
106
- // null = !X (generic)
107
- if (type != null && typeof type !== "string") {
108
- throw new TypeError(`Unexpected type: ${type} ${debugInfo}`);
109
- }
110
- writer.write(serialize(value));
111
- }
112
- return writer.buffer;
113
- }
114
- export function serialize(type_) {
115
- assertIsValidType(type_);
116
- const maybeParameters = getType(type_._);
117
- if (!maybeParameters) {
118
- throw new Error(`Unknown type: ${type_._}`);
119
- }
120
- const type__ = type_;
121
- const writer = new TLRawWriter();
122
- const [id, parameters_] = maybeParameters;
123
- writer.writeInt32(id, false);
124
- for (const [i, [name, type, ntype]] of parameters_.entries()) {
125
- if (isOptionalParam(ntype) && type__[name] === undefined) {
126
- continue;
127
- }
128
- const debugInfo = `[0x${id.toString(16).toUpperCase()}::${i}]`;
129
- if (type == flags) {
130
- let flags = 0;
131
- const flagField_ = name;
132
- for (const [name, _, ntype] of parameters_) {
133
- if (isOptionalParam(ntype)) {
134
- const { flagField, bitIndex } = analyzeOptionalParam(ntype);
135
- if (flagField == flagField_) {
136
- if (type__[name] !== undefined) {
137
- flags |= 1 << bitIndex;
138
- }
139
- }
140
- }
141
- }
142
- writer.writeInt32(flags);
143
- continue;
144
- }
145
- if (type__[name] === undefined && !isOptionalParam(ntype)) {
146
- throw new Error(`Missing required parameter: ${name}`);
147
- }
148
- if (type instanceof Array) {
149
- const itemsType = type[0];
150
- if (!Array.isArray(type__[name])) {
151
- throw new TypeError("Expected array");
152
- }
153
- writer.writeInt32(0x1CB5C415); // vector constructor
154
- writer.writeInt32(type__[name].length);
155
- for (const item of type__[name]) {
156
- serializeSingleParam(writer, item, itemsType, ntype, debugInfo);
157
- }
158
- continue;
159
- }
160
- serializeSingleParam(writer, type__[name], type, ntype, debugInfo);
161
- }
162
- return writer.buffer;
163
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"2_serialize_test.d.ts","sourceRoot":"","sources":["../../src/tl/2_serialize_test.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"3_deserialize_test.d.ts","sourceRoot":"","sources":["../../src/tl/3_deserialize_test.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"3_tl_reader.d.ts","sourceRoot":"","sources":["../../src/tl/3_tl_reader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAW,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAwB,MAAM,YAAY,CAAC;AAG7D,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;AAEjE,qBAAa,QAAS,SAAQ,WAAW;IACvC,UAAU,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,UAAU;CAsBpC"}
@@ -1,49 +0,0 @@
1
- /**
2
- * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
- *
5
- * This file is part of MTKruto.
6
- *
7
- * This program is free software: you can redistribute it and/or modify
8
- * it under the terms of the GNU Lesser General Public License as published by
9
- * the Free Software Foundation, either version 3 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU Lesser General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public License
18
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
- */
20
- // deno-lint-ignore-file no-explicit-any
21
- import { TLError, TLRawReader } from "./0_tl_raw_reader.js";
22
- import { getType, getTypeName } from "./0_api.js";
23
- import { deserialize } from "./2_deserialize.js";
24
- export class TLReader extends TLRawReader {
25
- readObject(id) {
26
- if (!id) {
27
- id = this.readInt32(false);
28
- }
29
- if (id == 0x1CB5C415) {
30
- const count = this.readInt32();
31
- const items = new Array();
32
- for (let i = 0; i < count; i++) {
33
- items.push(this.readObject());
34
- }
35
- return items;
36
- }
37
- else if (id == 0x997275b5) {
38
- return true;
39
- }
40
- else if (id == 0xbc799737) {
41
- return false;
42
- }
43
- const constructor = getTypeName(id);
44
- if (constructor) {
45
- return deserialize(this, getType(constructor)[1], constructor);
46
- }
47
- throw new TLError(`Unknown constructor ${id.toString(16)}`);
48
- }
49
- }
@@ -1,27 +0,0 @@
1
- /**
2
- * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
- *
5
- * This file is part of MTKruto.
6
- *
7
- * This program is free software: you can redistribute it and/or modify
8
- * it under the terms of the GNU Lesser General Public License as published by
9
- * the Free Software Foundation, either version 3 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU Lesser General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public License
18
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
- */
20
- export declare const RPC_RESULT_ID = 4082920705;
21
- export interface rpc_result {
22
- _: "rpc_result";
23
- req_msg_id: bigint;
24
- result: any;
25
- }
26
- export declare function deserializeRpcResult(buffer: Uint8Array): Promise<rpc_result>;
27
- //# sourceMappingURL=4_rpc_result.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"4_rpc_result.d.ts","sourceRoot":"","sources":["../../src/tl/4_rpc_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AASH,eAAO,MAAM,aAAa,aAAa,CAAC;AAExC,MAAM,WAAW,UAAU;IACzB,CAAC,EAAE,YAAY,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IAEnB,MAAM,EAAE,GAAG,CAAC;CACb;AAED,wBAAsB,oBAAoB,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAQlF"}
@@ -1,33 +0,0 @@
1
- /**
2
- * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
- *
5
- * This file is part of MTKruto.
6
- *
7
- * This program is free software: you can redistribute it and/or modify
8
- * it under the terms of the GNU Lesser General Public License as published by
9
- * the Free Software Foundation, either version 3 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU Lesser General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public License
18
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
- */
20
- import { gunzip } from "../1_utilities.js";
21
- import { is } from "./1_utilities.js";
22
- import { TLReader } from "./3_tl_reader.js";
23
- // rpc_result#f35c6d01 req_msg_id:long result:Object = RpcResult;
24
- export const RPC_RESULT_ID = 0xF35C6D01;
25
- export async function deserializeRpcResult(buffer) {
26
- const reader = new TLReader(buffer);
27
- const messageId = reader.readInt64();
28
- let result = reader.readObject();
29
- if (is("gzip_packed", result)) {
30
- result = new TLReader(await gunzip(result.packed_data)).readObject();
31
- }
32
- return { _: "rpc_result", req_msg_id: messageId, result };
33
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"4_tl_writer.d.ts","sourceRoot":"","sources":["../../src/tl/4_tl_writer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,qBAAa,QAAS,SAAQ,WAAW;IACvC,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,IAAI;CAkB7C"}
@@ -1,45 +0,0 @@
1
- /**
2
- * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
- *
5
- * This file is part of MTKruto.
6
- *
7
- * This program is free software: you can redistribute it and/or modify
8
- * it under the terms of the GNU Lesser General Public License as published by
9
- * the Free Software Foundation, either version 3 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU Lesser General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public License
18
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
- */
20
- import { VECTOR_CONSTRUCTOR } from "../1_utilities.js";
21
- import { TLRawWriter } from "./0_tl_raw_writer.js";
22
- import { serialize } from "./2_serialize.js";
23
- export class TLWriter extends TLRawWriter {
24
- writeObject(object) {
25
- if (Array.isArray(object)) {
26
- this.writeInt32(VECTOR_CONSTRUCTOR, false);
27
- this.writeInt32(object.length);
28
- for (const item of object) {
29
- this.writeObject(item);
30
- }
31
- }
32
- else if (typeof object === "boolean") {
33
- if (object) {
34
- this.writeInt32(0x997275B5, false);
35
- }
36
- else {
37
- this.writeInt32(0xBC799737, false);
38
- }
39
- }
40
- else {
41
- this.write(serialize(object));
42
- }
43
- return this;
44
- }
45
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"5_message.d.ts","sourceRoot":"","sources":["../../src/tl/5_message.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,SAAS,EAAW,MAAM,YAAY,CAAC;AAEhD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAwB,UAAU,EAAiB,MAAM,mBAAmB,CAAC;AAKpF,eAAO,MAAM,YAAY,eAA6B,CAAC;AAIvD,MAAM,WAAW,OAAO;IACtB,CAAC,EAAE,SAAS,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,GAAG,aAAa,GAAG,UAAU,CAAC;CAC9C;AAED,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,CAoB5E;AAED,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,CAoB3E;AAID,MAAM,WAAW,aAAa;IAC5B,CAAC,EAAE,eAAe,CAAC;IACnB,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB;AAED,eAAO,MAAM,gBAAgB,aAAa,CAAC;AAE3C,wBAAsB,qBAAqB,CAAC,YAAY,EAAE,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC,CAQ5F;AAED,wBAAsB,uBAAuB,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC,CAQxF"}
@@ -1,23 +0,0 @@
1
- /**
2
- * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
- *
5
- * This file is part of MTKruto.
6
- *
7
- * This program is free software: you can redistribute it and/or modify
8
- * it under the terms of the GNU Lesser General Public License as published by
9
- * the Free Software Foundation, either version 3 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU Lesser General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public License
18
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
- */
20
- import { TLRawReader } from "./0_tl_raw_reader.js";
21
- import { AnyType } from "./0_api.js";
22
- export declare function deserialize(reader: TLRawReader, paramDesc: [string, unknown, string][], name: string): AnyType;
23
- //# sourceMappingURL=2_deserialize.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"2_deserialize.d.ts","sourceRoot":"","sources":["../../src/tl/2_deserialize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAE,OAAO,EAA+B,MAAM,YAAY,CAAC;AAkDlE,wBAAgB,WAAW,CACzB,MAAM,EAAE,WAAW,EACnB,SAAS,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,EACtC,IAAI,EAAE,MAAM,GACX,OAAO,CAqCT"}