@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, int, long } from '../types.js';
@@ -15,13 +15,13 @@ export type TypeTones = TonesNotModified | Tones;
15
15
  export declare class TonesNotModified extends TLObject {
16
16
  constructor();
17
17
  /**
18
- * Generate the TLObject from buffer.
19
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
20
- */
18
+ * Generate the TLObject from buffer.
19
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
20
+ */
21
21
  static read(_data: BytesIO, ..._args: Array<any>): Promise<TonesNotModified>;
22
22
  /**
23
- * Generate buffer from TLObject.
24
- */
23
+ * Generate buffer from TLObject.
24
+ */
25
25
  write(): Buffer;
26
26
  }
27
27
  export declare class Tones extends TLObject {
@@ -34,13 +34,13 @@ export declare class Tones extends TLObject {
34
34
  users: Vector<raw.TypeUser>;
35
35
  });
36
36
  /**
37
- * Generate the TLObject from buffer.
38
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
39
- */
37
+ * Generate the TLObject from buffer.
38
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
39
+ */
40
40
  static read(_data: BytesIO, ..._args: Array<any>): Promise<Tones>;
41
41
  /**
42
- * Generate buffer from TLObject.
43
- */
42
+ * Generate buffer from TLObject.
43
+ */
44
44
  write(): Buffer;
45
45
  }
46
46
  export declare class CreateTone extends TLObject {
@@ -56,13 +56,13 @@ export declare class CreateTone extends TLObject {
56
56
  prompt: string;
57
57
  });
58
58
  /**
59
- * Generate the TLObject from buffer.
60
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
61
- */
59
+ * Generate the TLObject from buffer.
60
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
61
+ */
62
62
  static read(_data: BytesIO, ..._args: Array<any>): Promise<CreateTone>;
63
63
  /**
64
- * Generate buffer from TLObject.
65
- */
64
+ * Generate buffer from TLObject.
65
+ */
66
66
  write(): Buffer;
67
67
  }
68
68
  export declare class UpdateTone extends TLObject {
@@ -80,13 +80,13 @@ export declare class UpdateTone extends TLObject {
80
80
  prompt?: string;
81
81
  });
82
82
  /**
83
- * Generate the TLObject from buffer.
84
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
85
- */
83
+ * Generate the TLObject from buffer.
84
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
85
+ */
86
86
  static read(_data: BytesIO, ..._args: Array<any>): Promise<UpdateTone>;
87
87
  /**
88
- * Generate buffer from TLObject.
89
- */
88
+ * Generate buffer from TLObject.
89
+ */
90
90
  write(): Buffer;
91
91
  }
92
92
  export declare class SaveTone extends TLObject {
@@ -98,13 +98,13 @@ export declare class SaveTone extends TLObject {
98
98
  unsave: Bool;
99
99
  });
100
100
  /**
101
- * Generate the TLObject from buffer.
102
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
103
- */
101
+ * Generate the TLObject from buffer.
102
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
103
+ */
104
104
  static read(_data: BytesIO, ..._args: Array<any>): Promise<SaveTone>;
105
105
  /**
106
- * Generate buffer from TLObject.
107
- */
106
+ * Generate buffer from TLObject.
107
+ */
108
108
  write(): Buffer;
109
109
  }
110
110
  export declare class DeleteTone extends TLObject {
@@ -114,13 +114,13 @@ export declare class DeleteTone extends TLObject {
114
114
  tone: raw.TypeInputAiComposeTone;
115
115
  });
116
116
  /**
117
- * Generate the TLObject from buffer.
118
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
119
- */
117
+ * Generate the TLObject from buffer.
118
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
119
+ */
120
120
  static read(_data: BytesIO, ..._args: Array<any>): Promise<DeleteTone>;
121
121
  /**
122
- * Generate buffer from TLObject.
123
- */
122
+ * Generate buffer from TLObject.
123
+ */
124
124
  write(): Buffer;
125
125
  }
126
126
  export declare class GetTone extends TLObject {
@@ -130,13 +130,13 @@ export declare class GetTone extends TLObject {
130
130
  tone: raw.TypeInputAiComposeTone;
131
131
  });
132
132
  /**
133
- * Generate the TLObject from buffer.
134
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
135
- */
133
+ * Generate the TLObject from buffer.
134
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
135
+ */
136
136
  static read(_data: BytesIO, ..._args: Array<any>): Promise<GetTone>;
137
137
  /**
138
- * Generate buffer from TLObject.
139
- */
138
+ * Generate buffer from TLObject.
139
+ */
140
140
  write(): Buffer;
141
141
  }
142
142
  export declare class GetTones extends TLObject {
@@ -146,13 +146,13 @@ export declare class GetTones extends TLObject {
146
146
  hash: long;
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<GetTones>;
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 GetToneExample extends TLObject {
@@ -164,13 +164,13 @@ export declare class GetToneExample extends TLObject {
164
164
  num: int;
165
165
  });
166
166
  /**
167
- * Generate the TLObject from buffer.
168
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
169
- */
167
+ * Generate the TLObject from buffer.
168
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
169
+ */
170
170
  static read(_data: BytesIO, ..._args: Array<any>): Promise<GetToneExample>;
171
171
  /**
172
- * Generate buffer from TLObject.
173
- */
172
+ * Generate buffer from TLObject.
173
+ */
174
174
  write(): Buffer;
175
175
  }
176
176
  export declare class SetChatStyle extends TLObject {
@@ -182,12 +182,12 @@ export declare class SetChatStyle extends TLObject {
182
182
  style?: raw.TypeInputAiComposeStyle;
183
183
  });
184
184
  /**
185
- * Generate the TLObject from buffer.
186
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
187
- */
185
+ * Generate the TLObject from buffer.
186
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
187
+ */
188
188
  static read(_data: BytesIO, ..._args: Array<any>): Promise<SetChatStyle>;
189
189
  /**
190
- * Generate buffer from TLObject.
191
- */
190
+ * Generate buffer from TLObject.
191
+ */
192
192
  write(): Buffer;
193
193
  }