@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 { Bool, Vector, bytes, int, long } from '../types.js';
@@ -16,13 +16,13 @@ export type TypeWelcomeMessages = WelcomeMessagesNotModified | WelcomeMessages;
16
16
  export declare class WelcomeMessagesNotModified extends TLObject {
17
17
  constructor();
18
18
  /**
19
- * Generate the TLObject from buffer.
20
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
21
- */
19
+ * Generate the TLObject from buffer.
20
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
21
+ */
22
22
  static read(_data: BytesIO, ..._args: Array<any>): Promise<WelcomeMessagesNotModified>;
23
23
  /**
24
- * Generate buffer from TLObject.
25
- */
24
+ * Generate buffer from TLObject.
25
+ */
26
26
  write(): Buffer;
27
27
  }
28
28
  export declare class WelcomeMessages extends TLObject {
@@ -33,13 +33,13 @@ export declare class WelcomeMessages extends TLObject {
33
33
  messages: Vector<raw.TypeEphemeralMessage>;
34
34
  });
35
35
  /**
36
- * Generate the TLObject from buffer.
37
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
38
- */
36
+ * Generate the TLObject from buffer.
37
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
38
+ */
39
39
  static read(_data: BytesIO, ..._args: Array<any>): Promise<WelcomeMessages>;
40
40
  /**
41
- * Generate buffer from TLObject.
42
- */
41
+ * Generate buffer from TLObject.
42
+ */
43
43
  write(): Buffer;
44
44
  }
45
45
  export declare class SendMessage extends TLObject {
@@ -75,13 +75,13 @@ export declare class SendMessage extends TLObject {
75
75
  replyTo?: raw.TypeInputReplyTo;
76
76
  });
77
77
  /**
78
- * Generate the TLObject from buffer.
79
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
80
- */
78
+ * Generate the TLObject from buffer.
79
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
80
+ */
81
81
  static read(_data: BytesIO, ..._args: Array<any>): Promise<SendMessage>;
82
82
  /**
83
- * Generate buffer from TLObject.
84
- */
83
+ * Generate buffer from TLObject.
84
+ */
85
85
  write(): Buffer;
86
86
  }
87
87
  export declare class DeleteMessage extends TLObject {
@@ -95,13 +95,13 @@ export declare class DeleteMessage extends TLObject {
95
95
  id: int;
96
96
  });
97
97
  /**
98
- * Generate the TLObject from buffer.
99
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
100
- */
98
+ * Generate the TLObject from buffer.
99
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
100
+ */
101
101
  static read(_data: BytesIO, ..._args: Array<any>): Promise<DeleteMessage>;
102
102
  /**
103
- * Generate buffer from TLObject.
104
- */
103
+ * Generate buffer from TLObject.
104
+ */
105
105
  write(): Buffer;
106
106
  }
107
107
  export declare class ReportMessage extends TLObject {
@@ -117,13 +117,13 @@ export declare class ReportMessage extends TLObject {
117
117
  message: string;
118
118
  });
119
119
  /**
120
- * Generate the TLObject from buffer.
121
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
122
- */
120
+ * Generate the TLObject from buffer.
121
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
122
+ */
123
123
  static read(_data: BytesIO, ..._args: Array<any>): Promise<ReportMessage>;
124
124
  /**
125
- * Generate buffer from TLObject.
126
- */
125
+ * Generate buffer from TLObject.
126
+ */
127
127
  write(): Buffer;
128
128
  }
129
129
  export declare class GetCallbackAnswer extends TLObject {
@@ -137,13 +137,13 @@ export declare class GetCallbackAnswer extends TLObject {
137
137
  data?: bytes;
138
138
  });
139
139
  /**
140
- * Generate the TLObject from buffer.
141
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
142
- */
140
+ * Generate the TLObject from buffer.
141
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
142
+ */
143
143
  static read(_data: BytesIO, ..._args: Array<any>): Promise<GetCallbackAnswer>;
144
144
  /**
145
- * Generate buffer from TLObject.
146
- */
145
+ * Generate buffer from TLObject.
146
+ */
147
147
  write(): Buffer;
148
148
  }
149
149
  export declare class EditMessage extends TLObject {
@@ -171,13 +171,13 @@ export declare class EditMessage extends TLObject {
171
171
  richMessage?: raw.TypeInputRichMessage;
172
172
  });
173
173
  /**
174
- * Generate the TLObject from buffer.
175
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
176
- */
174
+ * Generate the TLObject from buffer.
175
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
176
+ */
177
177
  static read(_data: BytesIO, ..._args: Array<any>): Promise<EditMessage>;
178
178
  /**
179
- * Generate buffer from TLObject.
180
- */
179
+ * Generate buffer from TLObject.
180
+ */
181
181
  write(): Buffer;
182
182
  }
183
183
  export declare class DeleteWelcomeMessage extends TLObject {
@@ -189,13 +189,13 @@ export declare class DeleteWelcomeMessage extends TLObject {
189
189
  id: int;
190
190
  });
191
191
  /**
192
- * Generate the TLObject from buffer.
193
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
194
- */
192
+ * Generate the TLObject from buffer.
193
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
194
+ */
195
195
  static read(_data: BytesIO, ..._args: Array<any>): Promise<DeleteWelcomeMessage>;
196
196
  /**
197
- * Generate buffer from TLObject.
198
- */
197
+ * Generate buffer from TLObject.
198
+ */
199
199
  write(): Buffer;
200
200
  }
201
201
  export declare class DeleteAllWelcomeMessages extends TLObject {
@@ -205,13 +205,13 @@ export declare class DeleteAllWelcomeMessages extends TLObject {
205
205
  peer: raw.TypeInputPeer;
206
206
  });
207
207
  /**
208
- * Generate the TLObject from buffer.
209
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
210
- */
208
+ * Generate the TLObject from buffer.
209
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
210
+ */
211
211
  static read(_data: BytesIO, ..._args: Array<any>): Promise<DeleteAllWelcomeMessages>;
212
212
  /**
213
- * Generate buffer from TLObject.
214
- */
213
+ * Generate buffer from TLObject.
214
+ */
215
215
  write(): Buffer;
216
216
  }
217
217
  export declare class GetWelcomeMessages extends TLObject {
@@ -223,12 +223,12 @@ export declare class GetWelcomeMessages extends TLObject {
223
223
  hash: long;
224
224
  });
225
225
  /**
226
- * Generate the TLObject from buffer.
227
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
228
- */
226
+ * Generate the TLObject from buffer.
227
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
228
+ */
229
229
  static read(_data: BytesIO, ..._args: Array<any>): Promise<GetWelcomeMessages>;
230
230
  /**
231
- * Generate buffer from TLObject.
232
- */
231
+ * Generate buffer from TLObject.
232
+ */
233
233
  write(): Buffer;
234
234
  }