@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 { int } from '../types.js';
@@ -19,13 +19,13 @@ export declare class ApiResponse extends TLObject {
19
19
  response: raw.TypeDataJSON;
20
20
  });
21
21
  /**
22
- * Generate the TLObject from buffer.
23
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
24
- */
22
+ * Generate the TLObject from buffer.
23
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
24
+ */
25
25
  static read(_data: BytesIO, ..._args: Array<any>): Promise<ApiResponse>;
26
26
  /**
27
- * Generate buffer from TLObject.
28
- */
27
+ * Generate buffer from TLObject.
28
+ */
29
29
  write(): Buffer;
30
30
  }
31
31
  export declare class StreamingUrl extends TLObject {
@@ -36,13 +36,13 @@ export declare class StreamingUrl extends TLObject {
36
36
  expires: int;
37
37
  });
38
38
  /**
39
- * Generate the TLObject from buffer.
40
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
41
- */
39
+ * Generate the TLObject from buffer.
40
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
41
+ */
42
42
  static read(_data: BytesIO, ..._args: Array<any>): Promise<StreamingUrl>;
43
43
  /**
44
- * Generate buffer from TLObject.
45
- */
44
+ * Generate buffer from TLObject.
45
+ */
46
46
  write(): Buffer;
47
47
  }
48
48
  export declare class PerformApiRequest extends TLObject {
@@ -58,25 +58,25 @@ export declare class PerformApiRequest extends TLObject {
58
58
  payload?: string;
59
59
  });
60
60
  /**
61
- * Generate the TLObject from buffer.
62
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
63
- */
61
+ * Generate the TLObject from buffer.
62
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
63
+ */
64
64
  static read(_data: BytesIO, ..._args: Array<any>): Promise<PerformApiRequest>;
65
65
  /**
66
- * Generate buffer from TLObject.
67
- */
66
+ * Generate buffer from TLObject.
67
+ */
68
68
  write(): Buffer;
69
69
  }
70
70
  export declare class GetStreamingUrl extends TLObject {
71
71
  __response__: TypeStreamingUrl;
72
72
  constructor();
73
73
  /**
74
- * Generate the TLObject from buffer.
75
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
76
- */
74
+ * Generate the TLObject from buffer.
75
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
76
+ */
77
77
  static read(_data: BytesIO, ..._args: Array<any>): Promise<GetStreamingUrl>;
78
78
  /**
79
- * Generate buffer from TLObject.
80
- */
79
+ * Generate buffer from TLObject.
80
+ */
81
81
  write(): Buffer;
82
82
  }
@@ -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
  // This file is auto generate. All change made in this file will be lost!
11
11
  import { TLObject, Primitive } from '../../core/index.js';
12
12
  import { BytesIO } from '../../../deps.js';
@@ -14,25 +14,25 @@ export class ApiResponse extends TLObject {
14
14
  response;
15
15
  constructor(params) {
16
16
  super();
17
- this.classType = "types";
18
- this.className = "toncenter.ApiResponse";
17
+ this.classType = 'types';
18
+ this.className = 'toncenter.ApiResponse';
19
19
  this.constructorId = 0xac8dfe19;
20
20
  this.subclassOfId = 0x58093fd1;
21
- this._slots = ["response"];
21
+ this._slots = ['response'];
22
22
  this.response = params.response;
23
23
  }
24
24
  /**
25
- * Generate the TLObject from buffer.
26
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
27
- */
25
+ * Generate the TLObject from buffer.
26
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
27
+ */
28
28
  static async read(_data, ..._args) {
29
29
  // no flags
30
30
  let response = await TLObject.read(_data);
31
- return new ApiResponse({ "response": response });
31
+ return new ApiResponse({ response: response });
32
32
  }
33
33
  /**
34
- * Generate buffer from TLObject.
35
- */
34
+ * Generate buffer from TLObject.
35
+ */
36
36
  write() {
37
37
  const b = new BytesIO();
38
38
  b.write(Primitive.Int.write(this.constructorId, false));
@@ -48,36 +48,36 @@ export class StreamingUrl extends TLObject {
48
48
  expires;
49
49
  constructor(params) {
50
50
  super();
51
- this.classType = "types";
52
- this.className = "toncenter.StreamingUrl";
51
+ this.classType = 'types';
52
+ this.className = 'toncenter.StreamingUrl';
53
53
  this.constructorId = 0x19887601;
54
54
  this.subclassOfId = 0x4c379ca2;
55
- this._slots = ["url", "expires"];
55
+ this._slots = ['url', 'expires'];
56
56
  this.url = params.url;
57
57
  this.expires = params.expires;
58
58
  }
59
59
  /**
60
- * Generate the TLObject from buffer.
61
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
62
- */
60
+ * Generate the TLObject from buffer.
61
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
62
+ */
63
63
  static async read(_data, ..._args) {
64
64
  // no flags
65
65
  let url = await Primitive.String.read(_data);
66
66
  let expires = await Primitive.Int.read(_data);
67
- return new StreamingUrl({ "url": url, "expires": expires });
67
+ return new StreamingUrl({ url: url, expires: expires });
68
68
  }
69
69
  /**
70
- * Generate buffer from TLObject.
71
- */
70
+ * Generate buffer from TLObject.
71
+ */
72
72
  write() {
73
73
  const b = new BytesIO();
74
74
  b.write(Primitive.Int.write(this.constructorId, false));
75
75
  // no flags
76
76
  if (this.url !== undefined) {
77
- b.write((Primitive.String.write(this.url)));
77
+ b.write(Primitive.String.write(this.url));
78
78
  }
79
79
  if (this.expires !== undefined) {
80
- b.write((Primitive.Int.write(this.expires)));
80
+ b.write(Primitive.Int.write(this.expires));
81
81
  }
82
82
  return b.buffer;
83
83
  }
@@ -90,49 +90,54 @@ export class PerformApiRequest extends TLObject {
90
90
  payload;
91
91
  constructor(params) {
92
92
  super();
93
- this.classType = "functions";
94
- this.className = "toncenter.PerformApiRequest";
93
+ this.classType = 'functions';
94
+ this.className = 'toncenter.PerformApiRequest';
95
95
  this.constructorId = 0x8d7bdd61;
96
96
  this.subclassOfId = 0x58093fd1;
97
- this._slots = ["post", "endpoint", "query", "payload"];
97
+ this._slots = ['post', 'endpoint', 'query', 'payload'];
98
98
  this.post = params.post;
99
99
  this.endpoint = params.endpoint;
100
100
  this.query = params.query;
101
101
  this.payload = params.payload;
102
102
  }
103
103
  /**
104
- * Generate the TLObject from buffer.
105
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
106
- */
104
+ * Generate the TLObject from buffer.
105
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
106
+ */
107
107
  static async read(_data, ..._args) {
108
108
  // @ts-ignore
109
109
  let flags = await Primitive.Int.read(_data);
110
- let post = (flags & (1 << 0)) ? true : false;
110
+ let post = flags & (1 << 0) ? true : false;
111
111
  let endpoint = await Primitive.String.read(_data);
112
- let query = (flags & (1 << 1)) ? await Primitive.String.read(_data) : undefined;
113
- let payload = (flags & (1 << 2)) ? await Primitive.String.read(_data) : undefined;
114
- return new PerformApiRequest({ "post": post, "endpoint": endpoint, "query": query, "payload": payload });
112
+ let query = flags & (1 << 1) ? await Primitive.String.read(_data) : undefined;
113
+ let payload = flags & (1 << 2) ? await Primitive.String.read(_data) : undefined;
114
+ return new PerformApiRequest({
115
+ post: post,
116
+ endpoint: endpoint,
117
+ query: query,
118
+ payload: payload,
119
+ });
115
120
  }
116
121
  /**
117
- * Generate buffer from TLObject.
118
- */
122
+ * Generate buffer from TLObject.
123
+ */
119
124
  write() {
120
125
  const b = new BytesIO();
121
126
  b.write(Primitive.Int.write(this.constructorId, false));
122
127
  // @ts-ignore
123
128
  let flags = 0;
124
- flags |= this.post ? (1 << 0) : 0;
125
- flags |= this.query !== undefined ? (1 << 1) : 0;
126
- flags |= this.payload !== undefined ? (1 << 2) : 0;
127
- b.write((Primitive.Int.write(flags)));
129
+ flags |= this.post ? 1 << 0 : 0;
130
+ flags |= this.query !== undefined ? 1 << 1 : 0;
131
+ flags |= this.payload !== undefined ? 1 << 2 : 0;
132
+ b.write(Primitive.Int.write(flags));
128
133
  if (this.endpoint !== undefined) {
129
- b.write((Primitive.String.write(this.endpoint)));
134
+ b.write(Primitive.String.write(this.endpoint));
130
135
  }
131
136
  if (this.query !== undefined) {
132
- b.write((Primitive.String.write(this.query)));
137
+ b.write(Primitive.String.write(this.query));
133
138
  }
134
139
  if (this.payload !== undefined) {
135
- b.write((Primitive.String.write(this.payload)));
140
+ b.write(Primitive.String.write(this.payload));
136
141
  }
137
142
  return b.buffer;
138
143
  }
@@ -141,23 +146,23 @@ export class GetStreamingUrl extends TLObject {
141
146
  __response__;
142
147
  constructor() {
143
148
  super();
144
- this.classType = "functions";
145
- this.className = "toncenter.GetStreamingUrl";
149
+ this.classType = 'functions';
150
+ this.className = 'toncenter.GetStreamingUrl';
146
151
  this.constructorId = 0xcdaf63c7;
147
152
  this.subclassOfId = 0x4c379ca2;
148
153
  this._slots = [];
149
154
  }
150
155
  /**
151
- * Generate the TLObject from buffer.
152
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
153
- */
156
+ * Generate the TLObject from buffer.
157
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
158
+ */
154
159
  static async read(_data, ..._args) {
155
160
  // no flags
156
161
  return new GetStreamingUrl();
157
162
  }
158
163
  /**
159
- * Generate buffer from TLObject.
160
- */
164
+ * Generate buffer from TLObject.
165
+ */
161
166
  write() {
162
167
  const b = new BytesIO();
163
168
  b.write(Primitive.Int.write(this.constructorId, false));
@@ -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 } from '../types.js';
@@ -28,13 +28,13 @@ export declare class State extends TLObject {
28
28
  unreadCount: int;
29
29
  });
30
30
  /**
31
- * Generate the TLObject from buffer.
32
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
33
- */
31
+ * Generate the TLObject from buffer.
32
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
33
+ */
34
34
  static read(_data: BytesIO, ..._args: Array<any>): Promise<State>;
35
35
  /**
36
- * Generate buffer from TLObject.
37
- */
36
+ * Generate buffer from TLObject.
37
+ */
38
38
  write(): Buffer;
39
39
  }
40
40
  export declare class DifferenceEmpty extends TLObject {
@@ -45,13 +45,13 @@ export declare class DifferenceEmpty extends TLObject {
45
45
  seq: int;
46
46
  });
47
47
  /**
48
- * Generate the TLObject from buffer.
49
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
50
- */
48
+ * Generate the TLObject from buffer.
49
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
50
+ */
51
51
  static read(_data: BytesIO, ..._args: Array<any>): Promise<DifferenceEmpty>;
52
52
  /**
53
- * Generate buffer from TLObject.
54
- */
53
+ * Generate buffer from TLObject.
54
+ */
55
55
  write(): Buffer;
56
56
  }
57
57
  export declare class Difference extends TLObject {
@@ -72,13 +72,13 @@ export declare class Difference extends TLObject {
72
72
  state: TypeState;
73
73
  });
74
74
  /**
75
- * Generate the TLObject from buffer.
76
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
77
- */
75
+ * Generate the TLObject from buffer.
76
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
77
+ */
78
78
  static read(_data: BytesIO, ..._args: Array<any>): Promise<Difference>;
79
79
  /**
80
- * Generate buffer from TLObject.
81
- */
80
+ * Generate buffer from TLObject.
81
+ */
82
82
  write(): Buffer;
83
83
  }
84
84
  export declare class DifferenceSlice extends TLObject {
@@ -99,13 +99,13 @@ export declare class DifferenceSlice extends TLObject {
99
99
  intermediateState: TypeState;
100
100
  });
101
101
  /**
102
- * Generate the TLObject from buffer.
103
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
104
- */
102
+ * Generate the TLObject from buffer.
103
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
104
+ */
105
105
  static read(_data: BytesIO, ..._args: Array<any>): Promise<DifferenceSlice>;
106
106
  /**
107
- * Generate buffer from TLObject.
108
- */
107
+ * Generate buffer from TLObject.
108
+ */
109
109
  write(): Buffer;
110
110
  }
111
111
  export declare class DifferenceTooLong extends TLObject {
@@ -114,13 +114,13 @@ export declare class DifferenceTooLong extends TLObject {
114
114
  pts: int;
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<DifferenceTooLong>;
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 ChannelDifferenceEmpty extends TLObject {
@@ -133,13 +133,13 @@ export declare class ChannelDifferenceEmpty extends TLObject {
133
133
  timeout?: int;
134
134
  });
135
135
  /**
136
- * Generate the TLObject from buffer.
137
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
138
- */
136
+ * Generate the TLObject from buffer.
137
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
138
+ */
139
139
  static read(_data: BytesIO, ..._args: Array<any>): Promise<ChannelDifferenceEmpty>;
140
140
  /**
141
- * Generate buffer from TLObject.
142
- */
141
+ * Generate buffer from TLObject.
142
+ */
143
143
  write(): Buffer;
144
144
  }
145
145
  export declare class ChannelDifferenceTooLong extends TLObject {
@@ -160,13 +160,13 @@ export declare class ChannelDifferenceTooLong extends TLObject {
160
160
  users: Vector<raw.TypeUser>;
161
161
  });
162
162
  /**
163
- * Generate the TLObject from buffer.
164
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
165
- */
163
+ * Generate the TLObject from buffer.
164
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
165
+ */
166
166
  static read(_data: BytesIO, ..._args: Array<any>): Promise<ChannelDifferenceTooLong>;
167
167
  /**
168
- * Generate buffer from TLObject.
169
- */
168
+ * Generate buffer from TLObject.
169
+ */
170
170
  write(): Buffer;
171
171
  }
172
172
  export declare class ChannelDifference extends TLObject {
@@ -189,26 +189,26 @@ export declare class ChannelDifference extends TLObject {
189
189
  users: Vector<raw.TypeUser>;
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<ChannelDifference>;
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 GetState extends TLObject {
202
202
  __response__: TypeState;
203
203
  constructor();
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<GetState>;
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 GetDifference extends TLObject {
@@ -228,13 +228,13 @@ export declare class GetDifference extends TLObject {
228
228
  qtsLimit?: int;
229
229
  });
230
230
  /**
231
- * Generate the TLObject from buffer.
232
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
233
- */
231
+ * Generate the TLObject from buffer.
232
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
233
+ */
234
234
  static read(_data: BytesIO, ..._args: Array<any>): Promise<GetDifference>;
235
235
  /**
236
- * Generate buffer from TLObject.
237
- */
236
+ * Generate buffer from TLObject.
237
+ */
238
238
  write(): Buffer;
239
239
  }
240
240
  export declare class GetChannelDifference extends TLObject {
@@ -252,12 +252,12 @@ export declare class GetChannelDifference extends TLObject {
252
252
  limit: int;
253
253
  });
254
254
  /**
255
- * Generate the TLObject from buffer.
256
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
257
- */
255
+ * Generate the TLObject from buffer.
256
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
257
+ */
258
258
  static read(_data: BytesIO, ..._args: Array<any>): Promise<GetChannelDifference>;
259
259
  /**
260
- * Generate buffer from TLObject.
261
- */
260
+ * Generate buffer from TLObject.
261
+ */
262
262
  write(): Buffer;
263
263
  }