@tgsnake/skema 3.1.0-browser.0 → 3.1.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.
- package/dist/src/deps.d.ts +3 -4
- package/dist/src/deps.js +4 -4
- package/dist/src/raw/class/All.d.ts +1 -1
- package/dist/src/raw/class/All.js +2739 -2739
- package/dist/src/raw/class/Raw.d.ts +7516 -7516
- package/dist/src/raw/class/Raw.js +20426 -26448
- package/dist/src/raw/class/tl/account.d.ts +841 -841
- package/dist/src/raw/class/tl/account.js +1813 -1983
- package/dist/src/raw/class/tl/aicompose.d.ts +51 -51
- package/dist/src/raw/class/tl/aicompose.js +117 -128
- package/dist/src/raw/class/tl/auth.d.ts +296 -296
- package/dist/src/raw/class/tl/auth.js +714 -849
- package/dist/src/raw/class/tl/bots.d.ts +231 -231
- package/dist/src/raw/class/tl/bots.js +504 -524
- package/dist/src/raw/class/tl/channels.d.ts +331 -331
- package/dist/src/raw/class/tl/channels.js +732 -823
- package/dist/src/raw/class/tl/chatlists.d.ts +81 -81
- package/dist/src/raw/class/tl/chatlists.js +183 -196
- package/dist/src/raw/class/tl/communities.d.ts +56 -56
- package/dist/src/raw/class/tl/communities.js +138 -159
- package/dist/src/raw/class/tl/contacts.d.ts +216 -216
- package/dist/src/raw/class/tl/contacts.js +492 -537
- package/dist/src/raw/class/tl/ephemeral.d.ts +51 -51
- package/dist/src/raw/class/tl/ephemeral.js +152 -204
- package/dist/src/raw/class/tl/folders.d.ts +6 -6
- package/dist/src/raw/class/tl/folders.js +11 -11
- package/dist/src/raw/class/tl/fragment.d.ts +11 -11
- package/dist/src/raw/class/tl/fragment.js +25 -32
- package/dist/src/raw/class/tl/help.d.ts +286 -286
- package/dist/src/raw/class/tl/help.js +618 -686
- package/dist/src/raw/class/tl/langpack.d.ts +26 -26
- package/dist/src/raw/class/tl/langpack.js +57 -57
- package/dist/src/raw/class/tl/messages.d.ts +1851 -1851
- package/dist/src/raw/class/tl/messages.js +4854 -5924
- package/dist/src/raw/class/tl/payments.d.ts +641 -641
- package/dist/src/raw/class/tl/payments.js +1734 -2198
- package/dist/src/raw/class/tl/phone.d.ts +256 -256
- package/dist/src/raw/class/tl/phone.js +644 -779
- package/dist/src/raw/class/tl/photos.d.ts +41 -41
- package/dist/src/raw/class/tl/photos.js +116 -139
- package/dist/src/raw/class/tl/premium.d.ts +41 -41
- package/dist/src/raw/class/tl/premium.js +111 -133
- package/dist/src/raw/class/tl/smsjobs.d.ts +46 -46
- package/dist/src/raw/class/tl/smsjobs.js +97 -115
- package/dist/src/raw/class/tl/stats.d.ts +71 -71
- package/dist/src/raw/class/tl/stats.js +169 -268
- package/dist/src/raw/class/tl/stickers.d.ts +61 -61
- package/dist/src/raw/class/tl/stickers.js +144 -173
- package/dist/src/raw/class/tl/storage.d.ts +51 -51
- package/dist/src/raw/class/tl/storage.js +71 -71
- package/dist/src/raw/class/tl/stories.d.ts +221 -221
- package/dist/src/raw/class/tl/stories.js +622 -781
- package/dist/src/raw/class/tl/toncenter.d.ts +21 -21
- package/dist/src/raw/class/tl/toncenter.js +47 -52
- package/dist/src/raw/class/tl/updates.d.ts +56 -56
- package/dist/src/raw/class/tl/updates.js +175 -246
- package/dist/src/raw/class/tl/upload.d.ts +66 -66
- package/dist/src/raw/class/tl/upload.js +155 -178
- package/dist/src/raw/class/tl/users.d.ts +61 -61
- package/dist/src/raw/class/tl/users.js +124 -124
- package/dist/src/raw/class/tl/wallet.d.ts +206 -206
- package/dist/src/raw/class/tl/wallet.js +525 -591
- package/dist/src/raw/class/types.d.ts +1 -1
- package/dist/src/raw/class/types.js +1 -1
- package/package.json +4 -6
|
@@ -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';
|
|
@@ -18,11 +18,11 @@ export class State extends TLObject {
|
|
|
18
18
|
unreadCount;
|
|
19
19
|
constructor(params) {
|
|
20
20
|
super();
|
|
21
|
-
this.classType =
|
|
22
|
-
this.className =
|
|
21
|
+
this.classType = "types";
|
|
22
|
+
this.className = "updates.State";
|
|
23
23
|
this.constructorId = 0xa56c2a3e;
|
|
24
24
|
this.subclassOfId = 0x23df1a01;
|
|
25
|
-
this._slots = [
|
|
25
|
+
this._slots = ["pts", "qts", "date", "seq", "unreadCount"];
|
|
26
26
|
this.pts = params.pts;
|
|
27
27
|
this.qts = params.qts;
|
|
28
28
|
this.date = params.date;
|
|
@@ -30,9 +30,9 @@ export class State extends TLObject {
|
|
|
30
30
|
this.unreadCount = params.unreadCount;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
* Generate the TLObject from buffer.
|
|
34
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
35
|
+
*/
|
|
36
36
|
static async read(_data, ..._args) {
|
|
37
37
|
// no flags
|
|
38
38
|
let pts = await Primitive.Int.read(_data);
|
|
@@ -40,29 +40,29 @@ export class State extends TLObject {
|
|
|
40
40
|
let date = await Primitive.Int.read(_data);
|
|
41
41
|
let seq = await Primitive.Int.read(_data);
|
|
42
42
|
let unreadCount = await Primitive.Int.read(_data);
|
|
43
|
-
return new State({ pts: pts, qts: qts, date: date, seq: seq, unreadCount: unreadCount });
|
|
43
|
+
return new State({ "pts": pts, "qts": qts, "date": date, "seq": seq, "unreadCount": unreadCount });
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
* Generate buffer from TLObject.
|
|
47
|
+
*/
|
|
48
48
|
write() {
|
|
49
49
|
const b = new BytesIO();
|
|
50
50
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
51
51
|
// no flags
|
|
52
52
|
if (this.pts !== undefined) {
|
|
53
|
-
b.write(Primitive.Int.write(this.pts));
|
|
53
|
+
b.write((Primitive.Int.write(this.pts)));
|
|
54
54
|
}
|
|
55
55
|
if (this.qts !== undefined) {
|
|
56
|
-
b.write(Primitive.Int.write(this.qts));
|
|
56
|
+
b.write((Primitive.Int.write(this.qts)));
|
|
57
57
|
}
|
|
58
58
|
if (this.date !== undefined) {
|
|
59
|
-
b.write(Primitive.Int.write(this.date));
|
|
59
|
+
b.write((Primitive.Int.write(this.date)));
|
|
60
60
|
}
|
|
61
61
|
if (this.seq !== undefined) {
|
|
62
|
-
b.write(Primitive.Int.write(this.seq));
|
|
62
|
+
b.write((Primitive.Int.write(this.seq)));
|
|
63
63
|
}
|
|
64
64
|
if (this.unreadCount !== undefined) {
|
|
65
|
-
b.write(Primitive.Int.write(this.unreadCount));
|
|
65
|
+
b.write((Primitive.Int.write(this.unreadCount)));
|
|
66
66
|
}
|
|
67
67
|
return b.buffer;
|
|
68
68
|
}
|
|
@@ -72,36 +72,36 @@ export class DifferenceEmpty extends TLObject {
|
|
|
72
72
|
seq;
|
|
73
73
|
constructor(params) {
|
|
74
74
|
super();
|
|
75
|
-
this.classType =
|
|
76
|
-
this.className =
|
|
75
|
+
this.classType = "types";
|
|
76
|
+
this.className = "updates.DifferenceEmpty";
|
|
77
77
|
this.constructorId = 0x5d75a138;
|
|
78
78
|
this.subclassOfId = 0x20482874;
|
|
79
|
-
this._slots = [
|
|
79
|
+
this._slots = ["date", "seq"];
|
|
80
80
|
this.date = params.date;
|
|
81
81
|
this.seq = params.seq;
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
* Generate the TLObject from buffer.
|
|
85
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
86
|
+
*/
|
|
87
87
|
static async read(_data, ..._args) {
|
|
88
88
|
// no flags
|
|
89
89
|
let date = await Primitive.Int.read(_data);
|
|
90
90
|
let seq = await Primitive.Int.read(_data);
|
|
91
|
-
return new DifferenceEmpty({ date: date, seq: seq });
|
|
91
|
+
return new DifferenceEmpty({ "date": date, "seq": seq });
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
* Generate buffer from TLObject.
|
|
95
|
+
*/
|
|
96
96
|
write() {
|
|
97
97
|
const b = new BytesIO();
|
|
98
98
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
99
99
|
// no flags
|
|
100
100
|
if (this.date !== undefined) {
|
|
101
|
-
b.write(Primitive.Int.write(this.date));
|
|
101
|
+
b.write((Primitive.Int.write(this.date)));
|
|
102
102
|
}
|
|
103
103
|
if (this.seq !== undefined) {
|
|
104
|
-
b.write(Primitive.Int.write(this.seq));
|
|
104
|
+
b.write((Primitive.Int.write(this.seq)));
|
|
105
105
|
}
|
|
106
106
|
return b.buffer;
|
|
107
107
|
}
|
|
@@ -116,19 +116,11 @@ export class Difference extends TLObject {
|
|
|
116
116
|
state;
|
|
117
117
|
constructor(params) {
|
|
118
118
|
super();
|
|
119
|
-
this.classType =
|
|
120
|
-
this.className =
|
|
119
|
+
this.classType = "types";
|
|
120
|
+
this.className = "updates.Difference";
|
|
121
121
|
this.constructorId = 0xb78fca40;
|
|
122
122
|
this.subclassOfId = 0x20482874;
|
|
123
|
-
this._slots = [
|
|
124
|
-
'topics',
|
|
125
|
-
'newMessages',
|
|
126
|
-
'newEncryptedMessages',
|
|
127
|
-
'otherUpdates',
|
|
128
|
-
'chats',
|
|
129
|
-
'users',
|
|
130
|
-
'state',
|
|
131
|
-
];
|
|
123
|
+
this._slots = ["topics", "newMessages", "newEncryptedMessages", "otherUpdates", "chats", "users", "state"];
|
|
132
124
|
this.topics = params.topics;
|
|
133
125
|
this.newMessages = params.newMessages;
|
|
134
126
|
this.newEncryptedMessages = params.newEncryptedMessages;
|
|
@@ -138,56 +130,48 @@ export class Difference extends TLObject {
|
|
|
138
130
|
this.state = params.state;
|
|
139
131
|
}
|
|
140
132
|
/**
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
133
|
+
* Generate the TLObject from buffer.
|
|
134
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
135
|
+
*/
|
|
144
136
|
static async read(_data, ..._args) {
|
|
145
137
|
// @ts-ignore
|
|
146
138
|
let flags = await Primitive.Int.read(_data);
|
|
147
|
-
let topics = flags & (1 << 0) ? await TLObject.read(_data) : [];
|
|
139
|
+
let topics = (flags & (1 << 0)) ? await TLObject.read(_data) : [];
|
|
148
140
|
let newMessages = await TLObject.read(_data);
|
|
149
141
|
let newEncryptedMessages = await TLObject.read(_data);
|
|
150
142
|
let otherUpdates = await TLObject.read(_data);
|
|
151
143
|
let chats = await TLObject.read(_data);
|
|
152
144
|
let users = await TLObject.read(_data);
|
|
153
145
|
let state = await TLObject.read(_data);
|
|
154
|
-
return new Difference({
|
|
155
|
-
topics: topics,
|
|
156
|
-
newMessages: newMessages,
|
|
157
|
-
newEncryptedMessages: newEncryptedMessages,
|
|
158
|
-
otherUpdates: otherUpdates,
|
|
159
|
-
chats: chats,
|
|
160
|
-
users: users,
|
|
161
|
-
state: state,
|
|
162
|
-
});
|
|
146
|
+
return new Difference({ "topics": topics, "newMessages": newMessages, "newEncryptedMessages": newEncryptedMessages, "otherUpdates": otherUpdates, "chats": chats, "users": users, "state": state });
|
|
163
147
|
}
|
|
164
148
|
/**
|
|
165
|
-
|
|
166
|
-
|
|
149
|
+
* Generate buffer from TLObject.
|
|
150
|
+
*/
|
|
167
151
|
write() {
|
|
168
152
|
const b = new BytesIO();
|
|
169
153
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
170
154
|
// @ts-ignore
|
|
171
155
|
let flags = 0;
|
|
172
|
-
flags |= this.topics ? 1 << 0 : 0;
|
|
173
|
-
b.write(Primitive.Int.write(flags));
|
|
156
|
+
flags |= this.topics ? (1 << 0) : 0;
|
|
157
|
+
b.write((Primitive.Int.write(flags)));
|
|
174
158
|
if (this.topics) {
|
|
175
|
-
b.write(Primitive.Vector.write(this.topics));
|
|
159
|
+
b.write((Primitive.Vector.write(this.topics)));
|
|
176
160
|
}
|
|
177
161
|
if (this.newMessages) {
|
|
178
|
-
b.write(Primitive.Vector.write(this.newMessages));
|
|
162
|
+
b.write((Primitive.Vector.write(this.newMessages)));
|
|
179
163
|
}
|
|
180
164
|
if (this.newEncryptedMessages) {
|
|
181
|
-
b.write(Primitive.Vector.write(this.newEncryptedMessages));
|
|
165
|
+
b.write((Primitive.Vector.write(this.newEncryptedMessages)));
|
|
182
166
|
}
|
|
183
167
|
if (this.otherUpdates) {
|
|
184
|
-
b.write(Primitive.Vector.write(this.otherUpdates));
|
|
168
|
+
b.write((Primitive.Vector.write(this.otherUpdates)));
|
|
185
169
|
}
|
|
186
170
|
if (this.chats) {
|
|
187
|
-
b.write(Primitive.Vector.write(this.chats));
|
|
171
|
+
b.write((Primitive.Vector.write(this.chats)));
|
|
188
172
|
}
|
|
189
173
|
if (this.users) {
|
|
190
|
-
b.write(Primitive.Vector.write(this.users));
|
|
174
|
+
b.write((Primitive.Vector.write(this.users)));
|
|
191
175
|
}
|
|
192
176
|
if (this.state !== undefined) {
|
|
193
177
|
b.write(this.state.write());
|
|
@@ -205,19 +189,11 @@ export class DifferenceSlice extends TLObject {
|
|
|
205
189
|
intermediateState;
|
|
206
190
|
constructor(params) {
|
|
207
191
|
super();
|
|
208
|
-
this.classType =
|
|
209
|
-
this.className =
|
|
192
|
+
this.classType = "types";
|
|
193
|
+
this.className = "updates.DifferenceSlice";
|
|
210
194
|
this.constructorId = 0x7c52f53;
|
|
211
195
|
this.subclassOfId = 0x20482874;
|
|
212
|
-
this._slots = [
|
|
213
|
-
'topics',
|
|
214
|
-
'newMessages',
|
|
215
|
-
'newEncryptedMessages',
|
|
216
|
-
'otherUpdates',
|
|
217
|
-
'chats',
|
|
218
|
-
'users',
|
|
219
|
-
'intermediateState',
|
|
220
|
-
];
|
|
196
|
+
this._slots = ["topics", "newMessages", "newEncryptedMessages", "otherUpdates", "chats", "users", "intermediateState"];
|
|
221
197
|
this.topics = params.topics;
|
|
222
198
|
this.newMessages = params.newMessages;
|
|
223
199
|
this.newEncryptedMessages = params.newEncryptedMessages;
|
|
@@ -227,56 +203,48 @@ export class DifferenceSlice extends TLObject {
|
|
|
227
203
|
this.intermediateState = params.intermediateState;
|
|
228
204
|
}
|
|
229
205
|
/**
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
206
|
+
* Generate the TLObject from buffer.
|
|
207
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
208
|
+
*/
|
|
233
209
|
static async read(_data, ..._args) {
|
|
234
210
|
// @ts-ignore
|
|
235
211
|
let flags = await Primitive.Int.read(_data);
|
|
236
|
-
let topics = flags & (1 << 0) ? await TLObject.read(_data) : [];
|
|
212
|
+
let topics = (flags & (1 << 0)) ? await TLObject.read(_data) : [];
|
|
237
213
|
let newMessages = await TLObject.read(_data);
|
|
238
214
|
let newEncryptedMessages = await TLObject.read(_data);
|
|
239
215
|
let otherUpdates = await TLObject.read(_data);
|
|
240
216
|
let chats = await TLObject.read(_data);
|
|
241
217
|
let users = await TLObject.read(_data);
|
|
242
218
|
let intermediateState = await TLObject.read(_data);
|
|
243
|
-
return new DifferenceSlice({
|
|
244
|
-
topics: topics,
|
|
245
|
-
newMessages: newMessages,
|
|
246
|
-
newEncryptedMessages: newEncryptedMessages,
|
|
247
|
-
otherUpdates: otherUpdates,
|
|
248
|
-
chats: chats,
|
|
249
|
-
users: users,
|
|
250
|
-
intermediateState: intermediateState,
|
|
251
|
-
});
|
|
219
|
+
return new DifferenceSlice({ "topics": topics, "newMessages": newMessages, "newEncryptedMessages": newEncryptedMessages, "otherUpdates": otherUpdates, "chats": chats, "users": users, "intermediateState": intermediateState });
|
|
252
220
|
}
|
|
253
221
|
/**
|
|
254
|
-
|
|
255
|
-
|
|
222
|
+
* Generate buffer from TLObject.
|
|
223
|
+
*/
|
|
256
224
|
write() {
|
|
257
225
|
const b = new BytesIO();
|
|
258
226
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
259
227
|
// @ts-ignore
|
|
260
228
|
let flags = 0;
|
|
261
|
-
flags |= this.topics ? 1 << 0 : 0;
|
|
262
|
-
b.write(Primitive.Int.write(flags));
|
|
229
|
+
flags |= this.topics ? (1 << 0) : 0;
|
|
230
|
+
b.write((Primitive.Int.write(flags)));
|
|
263
231
|
if (this.topics) {
|
|
264
|
-
b.write(Primitive.Vector.write(this.topics));
|
|
232
|
+
b.write((Primitive.Vector.write(this.topics)));
|
|
265
233
|
}
|
|
266
234
|
if (this.newMessages) {
|
|
267
|
-
b.write(Primitive.Vector.write(this.newMessages));
|
|
235
|
+
b.write((Primitive.Vector.write(this.newMessages)));
|
|
268
236
|
}
|
|
269
237
|
if (this.newEncryptedMessages) {
|
|
270
|
-
b.write(Primitive.Vector.write(this.newEncryptedMessages));
|
|
238
|
+
b.write((Primitive.Vector.write(this.newEncryptedMessages)));
|
|
271
239
|
}
|
|
272
240
|
if (this.otherUpdates) {
|
|
273
|
-
b.write(Primitive.Vector.write(this.otherUpdates));
|
|
241
|
+
b.write((Primitive.Vector.write(this.otherUpdates)));
|
|
274
242
|
}
|
|
275
243
|
if (this.chats) {
|
|
276
|
-
b.write(Primitive.Vector.write(this.chats));
|
|
244
|
+
b.write((Primitive.Vector.write(this.chats)));
|
|
277
245
|
}
|
|
278
246
|
if (this.users) {
|
|
279
|
-
b.write(Primitive.Vector.write(this.users));
|
|
247
|
+
b.write((Primitive.Vector.write(this.users)));
|
|
280
248
|
}
|
|
281
249
|
if (this.intermediateState !== undefined) {
|
|
282
250
|
b.write(this.intermediateState.write());
|
|
@@ -288,31 +256,31 @@ export class DifferenceTooLong extends TLObject {
|
|
|
288
256
|
pts;
|
|
289
257
|
constructor(params) {
|
|
290
258
|
super();
|
|
291
|
-
this.classType =
|
|
292
|
-
this.className =
|
|
259
|
+
this.classType = "types";
|
|
260
|
+
this.className = "updates.DifferenceTooLong";
|
|
293
261
|
this.constructorId = 0x4afe8f6d;
|
|
294
262
|
this.subclassOfId = 0x20482874;
|
|
295
|
-
this._slots = [
|
|
263
|
+
this._slots = ["pts"];
|
|
296
264
|
this.pts = params.pts;
|
|
297
265
|
}
|
|
298
266
|
/**
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
267
|
+
* Generate the TLObject from buffer.
|
|
268
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
269
|
+
*/
|
|
302
270
|
static async read(_data, ..._args) {
|
|
303
271
|
// no flags
|
|
304
272
|
let pts = await Primitive.Int.read(_data);
|
|
305
|
-
return new DifferenceTooLong({ pts: pts });
|
|
273
|
+
return new DifferenceTooLong({ "pts": pts });
|
|
306
274
|
}
|
|
307
275
|
/**
|
|
308
|
-
|
|
309
|
-
|
|
276
|
+
* Generate buffer from TLObject.
|
|
277
|
+
*/
|
|
310
278
|
write() {
|
|
311
279
|
const b = new BytesIO();
|
|
312
280
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
313
281
|
// no flags
|
|
314
282
|
if (this.pts !== undefined) {
|
|
315
|
-
b.write(Primitive.Int.write(this.pts));
|
|
283
|
+
b.write((Primitive.Int.write(this.pts)));
|
|
316
284
|
}
|
|
317
285
|
return b.buffer;
|
|
318
286
|
}
|
|
@@ -323,43 +291,43 @@ export class ChannelDifferenceEmpty extends TLObject {
|
|
|
323
291
|
timeout;
|
|
324
292
|
constructor(params) {
|
|
325
293
|
super();
|
|
326
|
-
this.classType =
|
|
327
|
-
this.className =
|
|
294
|
+
this.classType = "types";
|
|
295
|
+
this.className = "updates.ChannelDifferenceEmpty";
|
|
328
296
|
this.constructorId = 0x3e11affb;
|
|
329
297
|
this.subclassOfId = 0x29896f5d;
|
|
330
|
-
this._slots = [
|
|
298
|
+
this._slots = ["final", "pts", "timeout"];
|
|
331
299
|
this.final = params.final;
|
|
332
300
|
this.pts = params.pts;
|
|
333
301
|
this.timeout = params.timeout;
|
|
334
302
|
}
|
|
335
303
|
/**
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
304
|
+
* Generate the TLObject from buffer.
|
|
305
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
306
|
+
*/
|
|
339
307
|
static async read(_data, ..._args) {
|
|
340
308
|
// @ts-ignore
|
|
341
309
|
let flags = await Primitive.Int.read(_data);
|
|
342
|
-
let final = flags & (1 << 0) ? true : false;
|
|
310
|
+
let final = (flags & (1 << 0)) ? true : false;
|
|
343
311
|
let pts = await Primitive.Int.read(_data);
|
|
344
|
-
let timeout = flags & (1 << 1) ? await Primitive.Int.read(_data) : undefined;
|
|
345
|
-
return new ChannelDifferenceEmpty({ final: final, pts: pts, timeout: timeout });
|
|
312
|
+
let timeout = (flags & (1 << 1)) ? await Primitive.Int.read(_data) : undefined;
|
|
313
|
+
return new ChannelDifferenceEmpty({ "final": final, "pts": pts, "timeout": timeout });
|
|
346
314
|
}
|
|
347
315
|
/**
|
|
348
|
-
|
|
349
|
-
|
|
316
|
+
* Generate buffer from TLObject.
|
|
317
|
+
*/
|
|
350
318
|
write() {
|
|
351
319
|
const b = new BytesIO();
|
|
352
320
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
353
321
|
// @ts-ignore
|
|
354
322
|
let flags = 0;
|
|
355
|
-
flags |= this.final ? 1 << 0 : 0;
|
|
356
|
-
flags |= this.timeout !== undefined ? 1 << 1 : 0;
|
|
357
|
-
b.write(Primitive.Int.write(flags));
|
|
323
|
+
flags |= this.final ? (1 << 0) : 0;
|
|
324
|
+
flags |= this.timeout !== undefined ? (1 << 1) : 0;
|
|
325
|
+
b.write((Primitive.Int.write(flags)));
|
|
358
326
|
if (this.pts !== undefined) {
|
|
359
|
-
b.write(Primitive.Int.write(this.pts));
|
|
327
|
+
b.write((Primitive.Int.write(this.pts)));
|
|
360
328
|
}
|
|
361
329
|
if (this.timeout !== undefined) {
|
|
362
|
-
b.write(Primitive.Int.write(this.timeout));
|
|
330
|
+
b.write((Primitive.Int.write(this.timeout)));
|
|
363
331
|
}
|
|
364
332
|
return b.buffer;
|
|
365
333
|
}
|
|
@@ -374,11 +342,11 @@ export class ChannelDifferenceTooLong extends TLObject {
|
|
|
374
342
|
users;
|
|
375
343
|
constructor(params) {
|
|
376
344
|
super();
|
|
377
|
-
this.classType =
|
|
378
|
-
this.className =
|
|
345
|
+
this.classType = "types";
|
|
346
|
+
this.className = "updates.ChannelDifferenceTooLong";
|
|
379
347
|
this.constructorId = 0x15b37781;
|
|
380
348
|
this.subclassOfId = 0x29896f5d;
|
|
381
|
-
this._slots = [
|
|
349
|
+
this._slots = ["final", "timeout", "topics", "dialog", "messages", "chats", "users"];
|
|
382
350
|
this.final = params.final;
|
|
383
351
|
this.timeout = params.timeout;
|
|
384
352
|
this.topics = params.topics;
|
|
@@ -388,58 +356,50 @@ export class ChannelDifferenceTooLong extends TLObject {
|
|
|
388
356
|
this.users = params.users;
|
|
389
357
|
}
|
|
390
358
|
/**
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
359
|
+
* Generate the TLObject from buffer.
|
|
360
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
361
|
+
*/
|
|
394
362
|
static async read(_data, ..._args) {
|
|
395
363
|
// @ts-ignore
|
|
396
364
|
let flags = await Primitive.Int.read(_data);
|
|
397
|
-
let final = flags & (1 << 0) ? true : false;
|
|
398
|
-
let timeout = flags & (1 << 1) ? await Primitive.Int.read(_data) : undefined;
|
|
399
|
-
let topics = flags & (1 << 2) ? await TLObject.read(_data) : [];
|
|
365
|
+
let final = (flags & (1 << 0)) ? true : false;
|
|
366
|
+
let timeout = (flags & (1 << 1)) ? await Primitive.Int.read(_data) : undefined;
|
|
367
|
+
let topics = (flags & (1 << 2)) ? await TLObject.read(_data) : [];
|
|
400
368
|
let dialog = await TLObject.read(_data);
|
|
401
369
|
let messages = await TLObject.read(_data);
|
|
402
370
|
let chats = await TLObject.read(_data);
|
|
403
371
|
let users = await TLObject.read(_data);
|
|
404
|
-
return new ChannelDifferenceTooLong({
|
|
405
|
-
final: final,
|
|
406
|
-
timeout: timeout,
|
|
407
|
-
topics: topics,
|
|
408
|
-
dialog: dialog,
|
|
409
|
-
messages: messages,
|
|
410
|
-
chats: chats,
|
|
411
|
-
users: users,
|
|
412
|
-
});
|
|
372
|
+
return new ChannelDifferenceTooLong({ "final": final, "timeout": timeout, "topics": topics, "dialog": dialog, "messages": messages, "chats": chats, "users": users });
|
|
413
373
|
}
|
|
414
374
|
/**
|
|
415
|
-
|
|
416
|
-
|
|
375
|
+
* Generate buffer from TLObject.
|
|
376
|
+
*/
|
|
417
377
|
write() {
|
|
418
378
|
const b = new BytesIO();
|
|
419
379
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
420
380
|
// @ts-ignore
|
|
421
381
|
let flags = 0;
|
|
422
|
-
flags |= this.final ? 1 << 0 : 0;
|
|
423
|
-
flags |= this.timeout !== undefined ? 1 << 1 : 0;
|
|
424
|
-
flags |= this.topics ? 1 << 2 : 0;
|
|
425
|
-
b.write(Primitive.Int.write(flags));
|
|
382
|
+
flags |= this.final ? (1 << 0) : 0;
|
|
383
|
+
flags |= this.timeout !== undefined ? (1 << 1) : 0;
|
|
384
|
+
flags |= this.topics ? (1 << 2) : 0;
|
|
385
|
+
b.write((Primitive.Int.write(flags)));
|
|
426
386
|
if (this.timeout !== undefined) {
|
|
427
|
-
b.write(Primitive.Int.write(this.timeout));
|
|
387
|
+
b.write((Primitive.Int.write(this.timeout)));
|
|
428
388
|
}
|
|
429
389
|
if (this.topics) {
|
|
430
|
-
b.write(Primitive.Vector.write(this.topics));
|
|
390
|
+
b.write((Primitive.Vector.write(this.topics)));
|
|
431
391
|
}
|
|
432
392
|
if (this.dialog !== undefined) {
|
|
433
393
|
b.write(this.dialog.write());
|
|
434
394
|
}
|
|
435
395
|
if (this.messages) {
|
|
436
|
-
b.write(Primitive.Vector.write(this.messages));
|
|
396
|
+
b.write((Primitive.Vector.write(this.messages)));
|
|
437
397
|
}
|
|
438
398
|
if (this.chats) {
|
|
439
|
-
b.write(Primitive.Vector.write(this.chats));
|
|
399
|
+
b.write((Primitive.Vector.write(this.chats)));
|
|
440
400
|
}
|
|
441
401
|
if (this.users) {
|
|
442
|
-
b.write(Primitive.Vector.write(this.users));
|
|
402
|
+
b.write((Primitive.Vector.write(this.users)));
|
|
443
403
|
}
|
|
444
404
|
return b.buffer;
|
|
445
405
|
}
|
|
@@ -455,20 +415,11 @@ export class ChannelDifference extends TLObject {
|
|
|
455
415
|
users;
|
|
456
416
|
constructor(params) {
|
|
457
417
|
super();
|
|
458
|
-
this.classType =
|
|
459
|
-
this.className =
|
|
418
|
+
this.classType = "types";
|
|
419
|
+
this.className = "updates.ChannelDifference";
|
|
460
420
|
this.constructorId = 0xd29de13d;
|
|
461
421
|
this.subclassOfId = 0x29896f5d;
|
|
462
|
-
this._slots = [
|
|
463
|
-
'final',
|
|
464
|
-
'pts',
|
|
465
|
-
'timeout',
|
|
466
|
-
'topics',
|
|
467
|
-
'newMessages',
|
|
468
|
-
'otherUpdates',
|
|
469
|
-
'chats',
|
|
470
|
-
'users',
|
|
471
|
-
];
|
|
422
|
+
this._slots = ["final", "pts", "timeout", "topics", "newMessages", "otherUpdates", "chats", "users"];
|
|
472
423
|
this.final = params.final;
|
|
473
424
|
this.pts = params.pts;
|
|
474
425
|
this.timeout = params.timeout;
|
|
@@ -479,63 +430,54 @@ export class ChannelDifference extends TLObject {
|
|
|
479
430
|
this.users = params.users;
|
|
480
431
|
}
|
|
481
432
|
/**
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
433
|
+
* Generate the TLObject from buffer.
|
|
434
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
435
|
+
*/
|
|
485
436
|
static async read(_data, ..._args) {
|
|
486
437
|
// @ts-ignore
|
|
487
438
|
let flags = await Primitive.Int.read(_data);
|
|
488
|
-
let final = flags & (1 << 0) ? true : false;
|
|
439
|
+
let final = (flags & (1 << 0)) ? true : false;
|
|
489
440
|
let pts = await Primitive.Int.read(_data);
|
|
490
|
-
let timeout = flags & (1 << 1) ? await Primitive.Int.read(_data) : undefined;
|
|
491
|
-
let topics = flags & (1 << 2) ? await TLObject.read(_data) : [];
|
|
441
|
+
let timeout = (flags & (1 << 1)) ? await Primitive.Int.read(_data) : undefined;
|
|
442
|
+
let topics = (flags & (1 << 2)) ? await TLObject.read(_data) : [];
|
|
492
443
|
let newMessages = await TLObject.read(_data);
|
|
493
444
|
let otherUpdates = await TLObject.read(_data);
|
|
494
445
|
let chats = await TLObject.read(_data);
|
|
495
446
|
let users = await TLObject.read(_data);
|
|
496
|
-
return new ChannelDifference({
|
|
497
|
-
final: final,
|
|
498
|
-
pts: pts,
|
|
499
|
-
timeout: timeout,
|
|
500
|
-
topics: topics,
|
|
501
|
-
newMessages: newMessages,
|
|
502
|
-
otherUpdates: otherUpdates,
|
|
503
|
-
chats: chats,
|
|
504
|
-
users: users,
|
|
505
|
-
});
|
|
447
|
+
return new ChannelDifference({ "final": final, "pts": pts, "timeout": timeout, "topics": topics, "newMessages": newMessages, "otherUpdates": otherUpdates, "chats": chats, "users": users });
|
|
506
448
|
}
|
|
507
449
|
/**
|
|
508
|
-
|
|
509
|
-
|
|
450
|
+
* Generate buffer from TLObject.
|
|
451
|
+
*/
|
|
510
452
|
write() {
|
|
511
453
|
const b = new BytesIO();
|
|
512
454
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
513
455
|
// @ts-ignore
|
|
514
456
|
let flags = 0;
|
|
515
|
-
flags |= this.final ? 1 << 0 : 0;
|
|
516
|
-
flags |= this.timeout !== undefined ? 1 << 1 : 0;
|
|
517
|
-
flags |= this.topics ? 1 << 2 : 0;
|
|
518
|
-
b.write(Primitive.Int.write(flags));
|
|
457
|
+
flags |= this.final ? (1 << 0) : 0;
|
|
458
|
+
flags |= this.timeout !== undefined ? (1 << 1) : 0;
|
|
459
|
+
flags |= this.topics ? (1 << 2) : 0;
|
|
460
|
+
b.write((Primitive.Int.write(flags)));
|
|
519
461
|
if (this.pts !== undefined) {
|
|
520
|
-
b.write(Primitive.Int.write(this.pts));
|
|
462
|
+
b.write((Primitive.Int.write(this.pts)));
|
|
521
463
|
}
|
|
522
464
|
if (this.timeout !== undefined) {
|
|
523
|
-
b.write(Primitive.Int.write(this.timeout));
|
|
465
|
+
b.write((Primitive.Int.write(this.timeout)));
|
|
524
466
|
}
|
|
525
467
|
if (this.topics) {
|
|
526
|
-
b.write(Primitive.Vector.write(this.topics));
|
|
468
|
+
b.write((Primitive.Vector.write(this.topics)));
|
|
527
469
|
}
|
|
528
470
|
if (this.newMessages) {
|
|
529
|
-
b.write(Primitive.Vector.write(this.newMessages));
|
|
471
|
+
b.write((Primitive.Vector.write(this.newMessages)));
|
|
530
472
|
}
|
|
531
473
|
if (this.otherUpdates) {
|
|
532
|
-
b.write(Primitive.Vector.write(this.otherUpdates));
|
|
474
|
+
b.write((Primitive.Vector.write(this.otherUpdates)));
|
|
533
475
|
}
|
|
534
476
|
if (this.chats) {
|
|
535
|
-
b.write(Primitive.Vector.write(this.chats));
|
|
477
|
+
b.write((Primitive.Vector.write(this.chats)));
|
|
536
478
|
}
|
|
537
479
|
if (this.users) {
|
|
538
|
-
b.write(Primitive.Vector.write(this.users));
|
|
480
|
+
b.write((Primitive.Vector.write(this.users)));
|
|
539
481
|
}
|
|
540
482
|
return b.buffer;
|
|
541
483
|
}
|
|
@@ -544,23 +486,23 @@ export class GetState extends TLObject {
|
|
|
544
486
|
__response__;
|
|
545
487
|
constructor() {
|
|
546
488
|
super();
|
|
547
|
-
this.classType =
|
|
548
|
-
this.className =
|
|
489
|
+
this.classType = "functions";
|
|
490
|
+
this.className = "updates.GetState";
|
|
549
491
|
this.constructorId = 0xedd4882a;
|
|
550
492
|
this.subclassOfId = 0x23df1a01;
|
|
551
493
|
this._slots = [];
|
|
552
494
|
}
|
|
553
495
|
/**
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
496
|
+
* Generate the TLObject from buffer.
|
|
497
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
498
|
+
*/
|
|
557
499
|
static async read(_data, ..._args) {
|
|
558
500
|
// no flags
|
|
559
501
|
return new GetState();
|
|
560
502
|
}
|
|
561
503
|
/**
|
|
562
|
-
|
|
563
|
-
|
|
504
|
+
* Generate buffer from TLObject.
|
|
505
|
+
*/
|
|
564
506
|
write() {
|
|
565
507
|
const b = new BytesIO();
|
|
566
508
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
@@ -578,11 +520,11 @@ export class GetDifference extends TLObject {
|
|
|
578
520
|
qtsLimit;
|
|
579
521
|
constructor(params) {
|
|
580
522
|
super();
|
|
581
|
-
this.classType =
|
|
582
|
-
this.className =
|
|
523
|
+
this.classType = "functions";
|
|
524
|
+
this.className = "updates.GetDifference";
|
|
583
525
|
this.constructorId = 0x19c2f763;
|
|
584
526
|
this.subclassOfId = 0x20482874;
|
|
585
|
-
this._slots = [
|
|
527
|
+
this._slots = ["pts", "ptsLimit", "ptsTotalLimit", "date", "qts", "qtsLimit"];
|
|
586
528
|
this.pts = params.pts;
|
|
587
529
|
this.ptsLimit = params.ptsLimit;
|
|
588
530
|
this.ptsTotalLimit = params.ptsTotalLimit;
|
|
@@ -591,56 +533,49 @@ export class GetDifference extends TLObject {
|
|
|
591
533
|
this.qtsLimit = params.qtsLimit;
|
|
592
534
|
}
|
|
593
535
|
/**
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
536
|
+
* Generate the TLObject from buffer.
|
|
537
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
538
|
+
*/
|
|
597
539
|
static async read(_data, ..._args) {
|
|
598
540
|
// @ts-ignore
|
|
599
541
|
let flags = await Primitive.Int.read(_data);
|
|
600
542
|
let pts = await Primitive.Int.read(_data);
|
|
601
|
-
let ptsLimit = flags & (1 << 1) ? await Primitive.Int.read(_data) : undefined;
|
|
602
|
-
let ptsTotalLimit = flags & (1 << 0) ? await Primitive.Int.read(_data) : undefined;
|
|
543
|
+
let ptsLimit = (flags & (1 << 1)) ? await Primitive.Int.read(_data) : undefined;
|
|
544
|
+
let ptsTotalLimit = (flags & (1 << 0)) ? await Primitive.Int.read(_data) : undefined;
|
|
603
545
|
let date = await Primitive.Int.read(_data);
|
|
604
546
|
let qts = await Primitive.Int.read(_data);
|
|
605
|
-
let qtsLimit = flags & (1 << 2) ? await Primitive.Int.read(_data) : undefined;
|
|
606
|
-
return new GetDifference({
|
|
607
|
-
pts: pts,
|
|
608
|
-
ptsLimit: ptsLimit,
|
|
609
|
-
ptsTotalLimit: ptsTotalLimit,
|
|
610
|
-
date: date,
|
|
611
|
-
qts: qts,
|
|
612
|
-
qtsLimit: qtsLimit,
|
|
613
|
-
});
|
|
547
|
+
let qtsLimit = (flags & (1 << 2)) ? await Primitive.Int.read(_data) : undefined;
|
|
548
|
+
return new GetDifference({ "pts": pts, "ptsLimit": ptsLimit, "ptsTotalLimit": ptsTotalLimit, "date": date, "qts": qts, "qtsLimit": qtsLimit });
|
|
614
549
|
}
|
|
615
550
|
/**
|
|
616
|
-
|
|
617
|
-
|
|
551
|
+
* Generate buffer from TLObject.
|
|
552
|
+
*/
|
|
618
553
|
write() {
|
|
619
554
|
const b = new BytesIO();
|
|
620
555
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
621
556
|
// @ts-ignore
|
|
622
557
|
let flags = 0;
|
|
623
|
-
flags |= this.ptsLimit !== undefined ? 1 << 1 : 0;
|
|
624
|
-
flags |= this.ptsTotalLimit !== undefined ? 1 << 0 : 0;
|
|
625
|
-
flags |= this.qtsLimit !== undefined ? 1 << 2 : 0;
|
|
626
|
-
b.write(Primitive.Int.write(flags));
|
|
558
|
+
flags |= this.ptsLimit !== undefined ? (1 << 1) : 0;
|
|
559
|
+
flags |= this.ptsTotalLimit !== undefined ? (1 << 0) : 0;
|
|
560
|
+
flags |= this.qtsLimit !== undefined ? (1 << 2) : 0;
|
|
561
|
+
b.write((Primitive.Int.write(flags)));
|
|
627
562
|
if (this.pts !== undefined) {
|
|
628
|
-
b.write(Primitive.Int.write(this.pts));
|
|
563
|
+
b.write((Primitive.Int.write(this.pts)));
|
|
629
564
|
}
|
|
630
565
|
if (this.ptsLimit !== undefined) {
|
|
631
|
-
b.write(Primitive.Int.write(this.ptsLimit));
|
|
566
|
+
b.write((Primitive.Int.write(this.ptsLimit)));
|
|
632
567
|
}
|
|
633
568
|
if (this.ptsTotalLimit !== undefined) {
|
|
634
|
-
b.write(Primitive.Int.write(this.ptsTotalLimit));
|
|
569
|
+
b.write((Primitive.Int.write(this.ptsTotalLimit)));
|
|
635
570
|
}
|
|
636
571
|
if (this.date !== undefined) {
|
|
637
|
-
b.write(Primitive.Int.write(this.date));
|
|
572
|
+
b.write((Primitive.Int.write(this.date)));
|
|
638
573
|
}
|
|
639
574
|
if (this.qts !== undefined) {
|
|
640
|
-
b.write(Primitive.Int.write(this.qts));
|
|
575
|
+
b.write((Primitive.Int.write(this.qts)));
|
|
641
576
|
}
|
|
642
577
|
if (this.qtsLimit !== undefined) {
|
|
643
|
-
b.write(Primitive.Int.write(this.qtsLimit));
|
|
578
|
+
b.write((Primitive.Int.write(this.qtsLimit)));
|
|
644
579
|
}
|
|
645
580
|
return b.buffer;
|
|
646
581
|
}
|
|
@@ -654,11 +589,11 @@ export class GetChannelDifference extends TLObject {
|
|
|
654
589
|
limit;
|
|
655
590
|
constructor(params) {
|
|
656
591
|
super();
|
|
657
|
-
this.classType =
|
|
658
|
-
this.className =
|
|
592
|
+
this.classType = "functions";
|
|
593
|
+
this.className = "updates.GetChannelDifference";
|
|
659
594
|
this.constructorId = 0x3173d78;
|
|
660
595
|
this.subclassOfId = 0x29896f5d;
|
|
661
|
-
this._slots = [
|
|
596
|
+
this._slots = ["force", "channel", "filter", "pts", "limit"];
|
|
662
597
|
this.force = params.force;
|
|
663
598
|
this.channel = params.channel;
|
|
664
599
|
this.filter = params.filter;
|
|
@@ -666,35 +601,29 @@ export class GetChannelDifference extends TLObject {
|
|
|
666
601
|
this.limit = params.limit;
|
|
667
602
|
}
|
|
668
603
|
/**
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
604
|
+
* Generate the TLObject from buffer.
|
|
605
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
606
|
+
*/
|
|
672
607
|
static async read(_data, ..._args) {
|
|
673
608
|
// @ts-ignore
|
|
674
609
|
let flags = await Primitive.Int.read(_data);
|
|
675
|
-
let force = flags & (1 << 0) ? true : false;
|
|
610
|
+
let force = (flags & (1 << 0)) ? true : false;
|
|
676
611
|
let channel = await TLObject.read(_data);
|
|
677
612
|
let filter = await TLObject.read(_data);
|
|
678
613
|
let pts = await Primitive.Int.read(_data);
|
|
679
614
|
let limit = await Primitive.Int.read(_data);
|
|
680
|
-
return new GetChannelDifference({
|
|
681
|
-
force: force,
|
|
682
|
-
channel: channel,
|
|
683
|
-
filter: filter,
|
|
684
|
-
pts: pts,
|
|
685
|
-
limit: limit,
|
|
686
|
-
});
|
|
615
|
+
return new GetChannelDifference({ "force": force, "channel": channel, "filter": filter, "pts": pts, "limit": limit });
|
|
687
616
|
}
|
|
688
617
|
/**
|
|
689
|
-
|
|
690
|
-
|
|
618
|
+
* Generate buffer from TLObject.
|
|
619
|
+
*/
|
|
691
620
|
write() {
|
|
692
621
|
const b = new BytesIO();
|
|
693
622
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
694
623
|
// @ts-ignore
|
|
695
624
|
let flags = 0;
|
|
696
|
-
flags |= this.force ? 1 << 0 : 0;
|
|
697
|
-
b.write(Primitive.Int.write(flags));
|
|
625
|
+
flags |= this.force ? (1 << 0) : 0;
|
|
626
|
+
b.write((Primitive.Int.write(flags)));
|
|
698
627
|
if (this.channel !== undefined) {
|
|
699
628
|
b.write(this.channel.write());
|
|
700
629
|
}
|
|
@@ -702,10 +631,10 @@ export class GetChannelDifference extends TLObject {
|
|
|
702
631
|
b.write(this.filter.write());
|
|
703
632
|
}
|
|
704
633
|
if (this.pts !== undefined) {
|
|
705
|
-
b.write(Primitive.Int.write(this.pts));
|
|
634
|
+
b.write((Primitive.Int.write(this.pts)));
|
|
706
635
|
}
|
|
707
636
|
if (this.limit !== undefined) {
|
|
708
|
-
b.write(Primitive.Int.write(this.limit));
|
|
637
|
+
b.write((Primitive.Int.write(this.limit)));
|
|
709
638
|
}
|
|
710
639
|
return b.buffer;
|
|
711
640
|
}
|