@tgsnake/skema 3.1.0 → 3.2.1-browser.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 (74) hide show
  1. package/README.md +1 -1
  2. package/dist/src/deps.d.ts +4 -3
  3. package/dist/src/deps.js +4 -4
  4. package/dist/src/errors/RpcError.js +3 -1
  5. package/dist/src/helpers.js +19 -34
  6. package/dist/src/raw/class/All.d.ts +49 -5
  7. package/dist/src/raw/class/All.js +2783 -2739
  8. package/dist/src/raw/class/Raw.d.ts +7856 -7518
  9. package/dist/src/raw/class/Raw.js +27367 -20433
  10. package/dist/src/raw/class/tl/account.d.ts +841 -841
  11. package/dist/src/raw/class/tl/account.js +1983 -1813
  12. package/dist/src/raw/class/tl/aicompose.d.ts +51 -51
  13. package/dist/src/raw/class/tl/aicompose.js +128 -117
  14. package/dist/src/raw/class/tl/auth.d.ts +296 -296
  15. package/dist/src/raw/class/tl/auth.js +849 -714
  16. package/dist/src/raw/class/tl/bots.d.ts +353 -232
  17. package/dist/src/raw/class/tl/bots.js +871 -504
  18. package/dist/src/raw/class/tl/channels.d.ts +351 -331
  19. package/dist/src/raw/class/tl/channels.js +873 -735
  20. package/dist/src/raw/class/tl/chatlists.d.ts +81 -81
  21. package/dist/src/raw/class/tl/chatlists.js +196 -183
  22. package/dist/src/raw/class/tl/communities.d.ts +56 -56
  23. package/dist/src/raw/class/tl/communities.js +159 -138
  24. package/dist/src/raw/class/tl/contacts.d.ts +216 -216
  25. package/dist/src/raw/class/tl/contacts.js +537 -492
  26. package/dist/src/raw/class/tl/ephemeral.d.ts +51 -51
  27. package/dist/src/raw/class/tl/ephemeral.js +204 -152
  28. package/dist/src/raw/class/tl/feed.d.ts +278 -0
  29. package/dist/src/raw/class/tl/feed.js +671 -0
  30. package/dist/src/raw/class/tl/folders.d.ts +6 -6
  31. package/dist/src/raw/class/tl/folders.js +11 -11
  32. package/dist/src/raw/class/tl/fragment.d.ts +11 -11
  33. package/dist/src/raw/class/tl/fragment.js +32 -25
  34. package/dist/src/raw/class/tl/help.d.ts +286 -286
  35. package/dist/src/raw/class/tl/help.js +686 -618
  36. package/dist/src/raw/class/tl/langpack.d.ts +26 -26
  37. package/dist/src/raw/class/tl/langpack.js +57 -57
  38. package/dist/src/raw/class/tl/messages.d.ts +1901 -1851
  39. package/dist/src/raw/class/tl/messages.js +6043 -4855
  40. package/dist/src/raw/class/tl/payments.d.ts +677 -641
  41. package/dist/src/raw/class/tl/payments.js +2312 -1734
  42. package/dist/src/raw/class/tl/phone.d.ts +256 -256
  43. package/dist/src/raw/class/tl/phone.js +779 -644
  44. package/dist/src/raw/class/tl/photos.d.ts +41 -41
  45. package/dist/src/raw/class/tl/photos.js +139 -116
  46. package/dist/src/raw/class/tl/premium.d.ts +41 -41
  47. package/dist/src/raw/class/tl/premium.js +133 -111
  48. package/dist/src/raw/class/tl/smsjobs.d.ts +46 -46
  49. package/dist/src/raw/class/tl/smsjobs.js +115 -97
  50. package/dist/src/raw/class/tl/stats.d.ts +71 -71
  51. package/dist/src/raw/class/tl/stats.js +268 -169
  52. package/dist/src/raw/class/tl/stickers.d.ts +61 -61
  53. package/dist/src/raw/class/tl/stickers.js +173 -144
  54. package/dist/src/raw/class/tl/storage.d.ts +51 -51
  55. package/dist/src/raw/class/tl/storage.js +71 -71
  56. package/dist/src/raw/class/tl/stories.d.ts +221 -221
  57. package/dist/src/raw/class/tl/stories.js +781 -622
  58. package/dist/src/raw/class/tl/toncenter.d.ts +21 -21
  59. package/dist/src/raw/class/tl/toncenter.js +52 -47
  60. package/dist/src/raw/class/tl/updates.d.ts +56 -56
  61. package/dist/src/raw/class/tl/updates.js +246 -175
  62. package/dist/src/raw/class/tl/upload.d.ts +66 -66
  63. package/dist/src/raw/class/tl/upload.js +178 -155
  64. package/dist/src/raw/class/tl/users.d.ts +61 -61
  65. package/dist/src/raw/class/tl/users.js +124 -124
  66. package/dist/src/raw/class/tl/wallet.d.ts +257 -206
  67. package/dist/src/raw/class/tl/wallet.js +701 -525
  68. package/dist/src/raw/class/types.d.ts +3 -2
  69. package/dist/src/raw/class/types.js +1 -1
  70. package/dist/src/raw/core/GzipPacked.d.ts +4 -0
  71. package/dist/src/raw/core/GzipPacked.js +9 -1
  72. package/dist/src/raw/core/primitive/Bytes.js +26 -4
  73. package/dist/src/raw/core/primitive/Vector.js +11 -3
  74. package/package.json +7 -5
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * tgsnake is a free software: you can redistribute it and/or modify
8
8
  * it under the terms of the MIT License as published.
9
- */
9
+ */
10
10
  import { TLObject } from '../../core/index.js';
11
11
  import { Buffer, BytesIO } from '../../../deps.js';
12
12
  import type { Vector, int, long } from '../types.js';
@@ -65,13 +65,13 @@ export declare class BroadcastStats extends TLObject {
65
65
  recentPostsInteractions: Vector<raw.TypePostInteractionCounters>;
66
66
  });
67
67
  /**
68
- * Generate the TLObject from buffer.
69
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
70
- */
68
+ * Generate the TLObject from buffer.
69
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
70
+ */
71
71
  static read(_data: BytesIO, ..._args: Array<any>): Promise<BroadcastStats>;
72
72
  /**
73
- * Generate buffer from TLObject.
74
- */
73
+ * Generate buffer from TLObject.
74
+ */
75
75
  write(): Buffer;
76
76
  }
77
77
  export declare class MegagroupStats extends TLObject {
@@ -112,13 +112,13 @@ export declare class MegagroupStats extends TLObject {
112
112
  users: Vector<raw.TypeUser>;
113
113
  });
114
114
  /**
115
- * Generate the TLObject from buffer.
116
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
117
- */
115
+ * Generate the TLObject from buffer.
116
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
117
+ */
118
118
  static read(_data: BytesIO, ..._args: Array<any>): Promise<MegagroupStats>;
119
119
  /**
120
- * Generate buffer from TLObject.
121
- */
120
+ * Generate buffer from TLObject.
121
+ */
122
122
  write(): Buffer;
123
123
  }
124
124
  export declare class MessageStats extends TLObject {
@@ -129,13 +129,13 @@ export declare class MessageStats extends TLObject {
129
129
  reactionsByEmotionGraph: raw.TypeStatsGraph;
130
130
  });
131
131
  /**
132
- * Generate the TLObject from buffer.
133
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
134
- */
132
+ * Generate the TLObject from buffer.
133
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
134
+ */
135
135
  static read(_data: BytesIO, ..._args: Array<any>): Promise<MessageStats>;
136
136
  /**
137
- * Generate buffer from TLObject.
138
- */
137
+ * Generate buffer from TLObject.
138
+ */
139
139
  write(): Buffer;
140
140
  }
141
141
  export declare class StoryStats extends TLObject {
@@ -146,13 +146,13 @@ export declare class StoryStats extends TLObject {
146
146
  reactionsByEmotionGraph: raw.TypeStatsGraph;
147
147
  });
148
148
  /**
149
- * Generate the TLObject from buffer.
150
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
151
- */
149
+ * Generate the TLObject from buffer.
150
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
151
+ */
152
152
  static read(_data: BytesIO, ..._args: Array<any>): Promise<StoryStats>;
153
153
  /**
154
- * Generate buffer from TLObject.
155
- */
154
+ * Generate buffer from TLObject.
155
+ */
156
156
  write(): Buffer;
157
157
  }
158
158
  export declare class PublicForwards extends TLObject {
@@ -169,13 +169,13 @@ export declare class PublicForwards extends TLObject {
169
169
  users: Vector<raw.TypeUser>;
170
170
  });
171
171
  /**
172
- * Generate the TLObject from buffer.
173
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
174
- */
172
+ * Generate the TLObject from buffer.
173
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
174
+ */
175
175
  static read(_data: BytesIO, ..._args: Array<any>): Promise<PublicForwards>;
176
176
  /**
177
- * Generate buffer from TLObject.
178
- */
177
+ * Generate buffer from TLObject.
178
+ */
179
179
  write(): Buffer;
180
180
  }
181
181
  export declare class PollStats extends TLObject {
@@ -184,13 +184,13 @@ export declare class PollStats extends TLObject {
184
184
  votesGraph: raw.TypeStatsGraph;
185
185
  });
186
186
  /**
187
- * Generate the TLObject from buffer.
188
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
189
- */
187
+ * Generate the TLObject from buffer.
188
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
189
+ */
190
190
  static read(_data: BytesIO, ..._args: Array<any>): Promise<PollStats>;
191
191
  /**
192
- * Generate buffer from TLObject.
193
- */
192
+ * Generate buffer from TLObject.
193
+ */
194
194
  write(): Buffer;
195
195
  }
196
196
  export declare class GetBroadcastStats extends TLObject {
@@ -202,13 +202,13 @@ export declare class GetBroadcastStats extends TLObject {
202
202
  channel: raw.TypeInputChannel;
203
203
  });
204
204
  /**
205
- * Generate the TLObject from buffer.
206
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
207
- */
205
+ * Generate the TLObject from buffer.
206
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
207
+ */
208
208
  static read(_data: BytesIO, ..._args: Array<any>): Promise<GetBroadcastStats>;
209
209
  /**
210
- * Generate buffer from TLObject.
211
- */
210
+ * Generate buffer from TLObject.
211
+ */
212
212
  write(): Buffer;
213
213
  }
214
214
  export declare class LoadAsyncGraph extends TLObject {
@@ -220,13 +220,13 @@ export declare class LoadAsyncGraph extends TLObject {
220
220
  x?: long;
221
221
  });
222
222
  /**
223
- * Generate the TLObject from buffer.
224
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
225
- */
223
+ * Generate the TLObject from buffer.
224
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
225
+ */
226
226
  static read(_data: BytesIO, ..._args: Array<any>): Promise<LoadAsyncGraph>;
227
227
  /**
228
- * Generate buffer from TLObject.
229
- */
228
+ * Generate buffer from TLObject.
229
+ */
230
230
  write(): Buffer;
231
231
  }
232
232
  export declare class GetMegagroupStats extends TLObject {
@@ -238,13 +238,13 @@ export declare class GetMegagroupStats extends TLObject {
238
238
  channel: raw.TypeInputChannel;
239
239
  });
240
240
  /**
241
- * Generate the TLObject from buffer.
242
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
243
- */
241
+ * Generate the TLObject from buffer.
242
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
243
+ */
244
244
  static read(_data: BytesIO, ..._args: Array<any>): Promise<GetMegagroupStats>;
245
245
  /**
246
- * Generate buffer from TLObject.
247
- */
246
+ * Generate buffer from TLObject.
247
+ */
248
248
  write(): Buffer;
249
249
  }
250
250
  export declare class GetMessagePublicForwards extends TLObject {
@@ -260,13 +260,13 @@ export declare class GetMessagePublicForwards extends TLObject {
260
260
  limit: int;
261
261
  });
262
262
  /**
263
- * Generate the TLObject from buffer.
264
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
265
- */
263
+ * Generate the TLObject from buffer.
264
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
265
+ */
266
266
  static read(_data: BytesIO, ..._args: Array<any>): Promise<GetMessagePublicForwards>;
267
267
  /**
268
- * Generate buffer from TLObject.
269
- */
268
+ * Generate buffer from TLObject.
269
+ */
270
270
  write(): Buffer;
271
271
  }
272
272
  export declare class GetMessageStats extends TLObject {
@@ -280,13 +280,13 @@ export declare class GetMessageStats extends TLObject {
280
280
  msgId: int;
281
281
  });
282
282
  /**
283
- * Generate the TLObject from buffer.
284
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
285
- */
283
+ * Generate the TLObject from buffer.
284
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
285
+ */
286
286
  static read(_data: BytesIO, ..._args: Array<any>): Promise<GetMessageStats>;
287
287
  /**
288
- * Generate buffer from TLObject.
289
- */
288
+ * Generate buffer from TLObject.
289
+ */
290
290
  write(): Buffer;
291
291
  }
292
292
  export declare class GetStoryStats extends TLObject {
@@ -300,13 +300,13 @@ export declare class GetStoryStats extends TLObject {
300
300
  id: int;
301
301
  });
302
302
  /**
303
- * Generate the TLObject from buffer.
304
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
305
- */
303
+ * Generate the TLObject from buffer.
304
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
305
+ */
306
306
  static read(_data: BytesIO, ..._args: Array<any>): Promise<GetStoryStats>;
307
307
  /**
308
- * Generate buffer from TLObject.
309
- */
308
+ * Generate buffer from TLObject.
309
+ */
310
310
  write(): Buffer;
311
311
  }
312
312
  export declare class GetStoryPublicForwards extends TLObject {
@@ -322,13 +322,13 @@ export declare class GetStoryPublicForwards extends TLObject {
322
322
  limit: int;
323
323
  });
324
324
  /**
325
- * Generate the TLObject from buffer.
326
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
327
- */
325
+ * Generate the TLObject from buffer.
326
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
327
+ */
328
328
  static read(_data: BytesIO, ..._args: Array<any>): Promise<GetStoryPublicForwards>;
329
329
  /**
330
- * Generate buffer from TLObject.
331
- */
330
+ * Generate buffer from TLObject.
331
+ */
332
332
  write(): Buffer;
333
333
  }
334
334
  export declare class GetPollStats extends TLObject {
@@ -342,12 +342,12 @@ export declare class GetPollStats extends TLObject {
342
342
  msgId: int;
343
343
  });
344
344
  /**
345
- * Generate the TLObject from buffer.
346
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
347
- */
345
+ * Generate the TLObject from buffer.
346
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
347
+ */
348
348
  static read(_data: BytesIO, ..._args: Array<any>): Promise<GetPollStats>;
349
349
  /**
350
- * Generate buffer from TLObject.
351
- */
350
+ * Generate buffer from TLObject.
351
+ */
352
352
  write(): Buffer;
353
353
  }