@tgsnake/skema 3.2.1-browser.0 → 3.2.1
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 +2783 -2783
- package/dist/src/raw/class/Raw.d.ts +7601 -7601
- package/dist/src/raw/class/Raw.js +20676 -26781
- 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 +256 -256
- package/dist/src/raw/class/tl/bots.js +607 -661
- package/dist/src/raw/class/tl/channels.d.ts +336 -336
- package/dist/src/raw/class/tl/channels.js +745 -836
- 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/feed.d.ts +71 -71
- package/dist/src/raw/class/tl/feed.js +179 -214
- 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 +1866 -1866
- package/dist/src/raw/class/tl/messages.js +4886 -5965
- package/dist/src/raw/class/tl/payments.d.ts +646 -646
- package/dist/src/raw/class/tl/payments.js +1766 -2254
- 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 +221 -221
- package/dist/src/raw/class/tl/wallet.js +558 -624
- 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';
|
|
@@ -16,29 +16,29 @@ export class UserFull extends TLObject {
|
|
|
16
16
|
users;
|
|
17
17
|
constructor(params) {
|
|
18
18
|
super();
|
|
19
|
-
this.classType =
|
|
20
|
-
this.className =
|
|
19
|
+
this.classType = "types";
|
|
20
|
+
this.className = "users.UserFull";
|
|
21
21
|
this.constructorId = 0x3b6d152e;
|
|
22
22
|
this.subclassOfId = 0x83df9df5;
|
|
23
|
-
this._slots = [
|
|
23
|
+
this._slots = ["fullUser", "chats", "users"];
|
|
24
24
|
this.fullUser = params.fullUser;
|
|
25
25
|
this.chats = params.chats;
|
|
26
26
|
this.users = params.users;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
* Generate the TLObject from buffer.
|
|
30
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
31
|
+
*/
|
|
32
32
|
static async read(_data, ..._args) {
|
|
33
33
|
// no flags
|
|
34
34
|
let fullUser = await TLObject.read(_data);
|
|
35
35
|
let chats = await TLObject.read(_data);
|
|
36
36
|
let users = await TLObject.read(_data);
|
|
37
|
-
return new UserFull({ fullUser: fullUser, chats: chats, users: users });
|
|
37
|
+
return new UserFull({ "fullUser": fullUser, "chats": chats, "users": users });
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
* Generate buffer from TLObject.
|
|
41
|
+
*/
|
|
42
42
|
write() {
|
|
43
43
|
const b = new BytesIO();
|
|
44
44
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
@@ -47,10 +47,10 @@ export class UserFull extends TLObject {
|
|
|
47
47
|
b.write(this.fullUser.write());
|
|
48
48
|
}
|
|
49
49
|
if (this.chats) {
|
|
50
|
-
b.write(Primitive.Vector.write(this.chats));
|
|
50
|
+
b.write((Primitive.Vector.write(this.chats)));
|
|
51
51
|
}
|
|
52
52
|
if (this.users) {
|
|
53
|
-
b.write(Primitive.Vector.write(this.users));
|
|
53
|
+
b.write((Primitive.Vector.write(this.users)));
|
|
54
54
|
}
|
|
55
55
|
return b.buffer;
|
|
56
56
|
}
|
|
@@ -59,31 +59,31 @@ export class Users extends TLObject {
|
|
|
59
59
|
users;
|
|
60
60
|
constructor(params) {
|
|
61
61
|
super();
|
|
62
|
-
this.classType =
|
|
63
|
-
this.className =
|
|
62
|
+
this.classType = "types";
|
|
63
|
+
this.className = "users.Users";
|
|
64
64
|
this.constructorId = 0x62d706b8;
|
|
65
65
|
this.subclassOfId = 0xf24bf0c0;
|
|
66
|
-
this._slots = [
|
|
66
|
+
this._slots = ["users"];
|
|
67
67
|
this.users = params.users;
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
* Generate the TLObject from buffer.
|
|
71
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
72
|
+
*/
|
|
73
73
|
static async read(_data, ..._args) {
|
|
74
74
|
// no flags
|
|
75
75
|
let users = await TLObject.read(_data);
|
|
76
|
-
return new Users({ users: users });
|
|
76
|
+
return new Users({ "users": users });
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
* Generate buffer from TLObject.
|
|
80
|
+
*/
|
|
81
81
|
write() {
|
|
82
82
|
const b = new BytesIO();
|
|
83
83
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
84
84
|
// no flags
|
|
85
85
|
if (this.users) {
|
|
86
|
-
b.write(Primitive.Vector.write(this.users));
|
|
86
|
+
b.write((Primitive.Vector.write(this.users)));
|
|
87
87
|
}
|
|
88
88
|
return b.buffer;
|
|
89
89
|
}
|
|
@@ -93,36 +93,36 @@ export class UsersSlice extends TLObject {
|
|
|
93
93
|
users;
|
|
94
94
|
constructor(params) {
|
|
95
95
|
super();
|
|
96
|
-
this.classType =
|
|
97
|
-
this.className =
|
|
96
|
+
this.classType = "types";
|
|
97
|
+
this.className = "users.UsersSlice";
|
|
98
98
|
this.constructorId = 0x315a4974;
|
|
99
99
|
this.subclassOfId = 0xf24bf0c0;
|
|
100
|
-
this._slots = [
|
|
100
|
+
this._slots = ["count", "users"];
|
|
101
101
|
this.count = params.count;
|
|
102
102
|
this.users = params.users;
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
* Generate the TLObject from buffer.
|
|
106
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
107
|
+
*/
|
|
108
108
|
static async read(_data, ..._args) {
|
|
109
109
|
// no flags
|
|
110
110
|
let count = await Primitive.Int.read(_data);
|
|
111
111
|
let users = await TLObject.read(_data);
|
|
112
|
-
return new UsersSlice({ count: count, users: users });
|
|
112
|
+
return new UsersSlice({ "count": count, "users": users });
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
* Generate buffer from TLObject.
|
|
116
|
+
*/
|
|
117
117
|
write() {
|
|
118
118
|
const b = new BytesIO();
|
|
119
119
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
120
120
|
// no flags
|
|
121
121
|
if (this.count !== undefined) {
|
|
122
|
-
b.write(Primitive.Int.write(this.count));
|
|
122
|
+
b.write((Primitive.Int.write(this.count)));
|
|
123
123
|
}
|
|
124
124
|
if (this.users) {
|
|
125
|
-
b.write(Primitive.Vector.write(this.users));
|
|
125
|
+
b.write((Primitive.Vector.write(this.users)));
|
|
126
126
|
}
|
|
127
127
|
return b.buffer;
|
|
128
128
|
}
|
|
@@ -131,31 +131,31 @@ export class SavedMusicNotModified extends TLObject {
|
|
|
131
131
|
count;
|
|
132
132
|
constructor(params) {
|
|
133
133
|
super();
|
|
134
|
-
this.classType =
|
|
135
|
-
this.className =
|
|
134
|
+
this.classType = "types";
|
|
135
|
+
this.className = "users.SavedMusicNotModified";
|
|
136
136
|
this.constructorId = 0xe3878aa4;
|
|
137
137
|
this.subclassOfId = 0xf813ae37;
|
|
138
|
-
this._slots = [
|
|
138
|
+
this._slots = ["count"];
|
|
139
139
|
this.count = params.count;
|
|
140
140
|
}
|
|
141
141
|
/**
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
* Generate the TLObject from buffer.
|
|
143
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
144
|
+
*/
|
|
145
145
|
static async read(_data, ..._args) {
|
|
146
146
|
// no flags
|
|
147
147
|
let count = await Primitive.Int.read(_data);
|
|
148
|
-
return new SavedMusicNotModified({ count: count });
|
|
148
|
+
return new SavedMusicNotModified({ "count": count });
|
|
149
149
|
}
|
|
150
150
|
/**
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
* Generate buffer from TLObject.
|
|
152
|
+
*/
|
|
153
153
|
write() {
|
|
154
154
|
const b = new BytesIO();
|
|
155
155
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
156
156
|
// no flags
|
|
157
157
|
if (this.count !== undefined) {
|
|
158
|
-
b.write(Primitive.Int.write(this.count));
|
|
158
|
+
b.write((Primitive.Int.write(this.count)));
|
|
159
159
|
}
|
|
160
160
|
return b.buffer;
|
|
161
161
|
}
|
|
@@ -165,36 +165,36 @@ export class SavedMusic extends TLObject {
|
|
|
165
165
|
documents;
|
|
166
166
|
constructor(params) {
|
|
167
167
|
super();
|
|
168
|
-
this.classType =
|
|
169
|
-
this.className =
|
|
168
|
+
this.classType = "types";
|
|
169
|
+
this.className = "users.SavedMusic";
|
|
170
170
|
this.constructorId = 0x34a2f297;
|
|
171
171
|
this.subclassOfId = 0xf813ae37;
|
|
172
|
-
this._slots = [
|
|
172
|
+
this._slots = ["count", "documents"];
|
|
173
173
|
this.count = params.count;
|
|
174
174
|
this.documents = params.documents;
|
|
175
175
|
}
|
|
176
176
|
/**
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
* Generate the TLObject from buffer.
|
|
178
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
179
|
+
*/
|
|
180
180
|
static async read(_data, ..._args) {
|
|
181
181
|
// no flags
|
|
182
182
|
let count = await Primitive.Int.read(_data);
|
|
183
183
|
let documents = await TLObject.read(_data);
|
|
184
|
-
return new SavedMusic({ count: count, documents: documents });
|
|
184
|
+
return new SavedMusic({ "count": count, "documents": documents });
|
|
185
185
|
}
|
|
186
186
|
/**
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
* Generate buffer from TLObject.
|
|
188
|
+
*/
|
|
189
189
|
write() {
|
|
190
190
|
const b = new BytesIO();
|
|
191
191
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
192
192
|
// no flags
|
|
193
193
|
if (this.count !== undefined) {
|
|
194
|
-
b.write(Primitive.Int.write(this.count));
|
|
194
|
+
b.write((Primitive.Int.write(this.count)));
|
|
195
195
|
}
|
|
196
196
|
if (this.documents) {
|
|
197
|
-
b.write(Primitive.Vector.write(this.documents));
|
|
197
|
+
b.write((Primitive.Vector.write(this.documents)));
|
|
198
198
|
}
|
|
199
199
|
return b.buffer;
|
|
200
200
|
}
|
|
@@ -204,31 +204,31 @@ export class GetUsers extends TLObject {
|
|
|
204
204
|
id;
|
|
205
205
|
constructor(params) {
|
|
206
206
|
super();
|
|
207
|
-
this.classType =
|
|
208
|
-
this.className =
|
|
207
|
+
this.classType = "functions";
|
|
208
|
+
this.className = "users.GetUsers";
|
|
209
209
|
this.constructorId = 0xd91a548;
|
|
210
210
|
this.subclassOfId = 0x406da4d;
|
|
211
|
-
this._slots = [
|
|
211
|
+
this._slots = ["id"];
|
|
212
212
|
this.id = params.id;
|
|
213
213
|
}
|
|
214
214
|
/**
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
215
|
+
* Generate the TLObject from buffer.
|
|
216
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
217
|
+
*/
|
|
218
218
|
static async read(_data, ..._args) {
|
|
219
219
|
// no flags
|
|
220
220
|
let id = await TLObject.read(_data);
|
|
221
|
-
return new GetUsers({ id: id });
|
|
221
|
+
return new GetUsers({ "id": id });
|
|
222
222
|
}
|
|
223
223
|
/**
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
* Generate buffer from TLObject.
|
|
225
|
+
*/
|
|
226
226
|
write() {
|
|
227
227
|
const b = new BytesIO();
|
|
228
228
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
229
229
|
// no flags
|
|
230
230
|
if (this.id) {
|
|
231
|
-
b.write(Primitive.Vector.write(this.id));
|
|
231
|
+
b.write((Primitive.Vector.write(this.id)));
|
|
232
232
|
}
|
|
233
233
|
return b.buffer;
|
|
234
234
|
}
|
|
@@ -238,25 +238,25 @@ export class GetFullUser extends TLObject {
|
|
|
238
238
|
id;
|
|
239
239
|
constructor(params) {
|
|
240
240
|
super();
|
|
241
|
-
this.classType =
|
|
242
|
-
this.className =
|
|
241
|
+
this.classType = "functions";
|
|
242
|
+
this.className = "users.GetFullUser";
|
|
243
243
|
this.constructorId = 0xb60f5918;
|
|
244
244
|
this.subclassOfId = 0x83df9df5;
|
|
245
|
-
this._slots = [
|
|
245
|
+
this._slots = ["id"];
|
|
246
246
|
this.id = params.id;
|
|
247
247
|
}
|
|
248
248
|
/**
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
249
|
+
* Generate the TLObject from buffer.
|
|
250
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
251
|
+
*/
|
|
252
252
|
static async read(_data, ..._args) {
|
|
253
253
|
// no flags
|
|
254
254
|
let id = await TLObject.read(_data);
|
|
255
|
-
return new GetFullUser({ id: id });
|
|
255
|
+
return new GetFullUser({ "id": id });
|
|
256
256
|
}
|
|
257
257
|
/**
|
|
258
|
-
|
|
259
|
-
|
|
258
|
+
* Generate buffer from TLObject.
|
|
259
|
+
*/
|
|
260
260
|
write() {
|
|
261
261
|
const b = new BytesIO();
|
|
262
262
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
@@ -273,27 +273,27 @@ export class SetSecureValueErrors extends TLObject {
|
|
|
273
273
|
errors;
|
|
274
274
|
constructor(params) {
|
|
275
275
|
super();
|
|
276
|
-
this.classType =
|
|
277
|
-
this.className =
|
|
276
|
+
this.classType = "functions";
|
|
277
|
+
this.className = "users.SetSecureValueErrors";
|
|
278
278
|
this.constructorId = 0x90c894b5;
|
|
279
279
|
this.subclassOfId = 0xf5b399ac;
|
|
280
|
-
this._slots = [
|
|
280
|
+
this._slots = ["id", "errors"];
|
|
281
281
|
this.id = params.id;
|
|
282
282
|
this.errors = params.errors;
|
|
283
283
|
}
|
|
284
284
|
/**
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
285
|
+
* Generate the TLObject from buffer.
|
|
286
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
287
|
+
*/
|
|
288
288
|
static async read(_data, ..._args) {
|
|
289
289
|
// no flags
|
|
290
290
|
let id = await TLObject.read(_data);
|
|
291
291
|
let errors = await TLObject.read(_data);
|
|
292
|
-
return new SetSecureValueErrors({ id: id, errors: errors });
|
|
292
|
+
return new SetSecureValueErrors({ "id": id, "errors": errors });
|
|
293
293
|
}
|
|
294
294
|
/**
|
|
295
|
-
|
|
296
|
-
|
|
295
|
+
* Generate buffer from TLObject.
|
|
296
|
+
*/
|
|
297
297
|
write() {
|
|
298
298
|
const b = new BytesIO();
|
|
299
299
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
@@ -302,7 +302,7 @@ export class SetSecureValueErrors extends TLObject {
|
|
|
302
302
|
b.write(this.id.write());
|
|
303
303
|
}
|
|
304
304
|
if (this.errors) {
|
|
305
|
-
b.write(Primitive.Vector.write(this.errors));
|
|
305
|
+
b.write((Primitive.Vector.write(this.errors)));
|
|
306
306
|
}
|
|
307
307
|
return b.buffer;
|
|
308
308
|
}
|
|
@@ -312,31 +312,31 @@ export class GetRequirementsToContact extends TLObject {
|
|
|
312
312
|
id;
|
|
313
313
|
constructor(params) {
|
|
314
314
|
super();
|
|
315
|
-
this.classType =
|
|
316
|
-
this.className =
|
|
315
|
+
this.classType = "functions";
|
|
316
|
+
this.className = "users.GetRequirementsToContact";
|
|
317
317
|
this.constructorId = 0xd89a83a3;
|
|
318
318
|
this.subclassOfId = 0x322623c3;
|
|
319
|
-
this._slots = [
|
|
319
|
+
this._slots = ["id"];
|
|
320
320
|
this.id = params.id;
|
|
321
321
|
}
|
|
322
322
|
/**
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
323
|
+
* Generate the TLObject from buffer.
|
|
324
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
325
|
+
*/
|
|
326
326
|
static async read(_data, ..._args) {
|
|
327
327
|
// no flags
|
|
328
328
|
let id = await TLObject.read(_data);
|
|
329
|
-
return new GetRequirementsToContact({ id: id });
|
|
329
|
+
return new GetRequirementsToContact({ "id": id });
|
|
330
330
|
}
|
|
331
331
|
/**
|
|
332
|
-
|
|
333
|
-
|
|
332
|
+
* Generate buffer from TLObject.
|
|
333
|
+
*/
|
|
334
334
|
write() {
|
|
335
335
|
const b = new BytesIO();
|
|
336
336
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
337
337
|
// no flags
|
|
338
338
|
if (this.id) {
|
|
339
|
-
b.write(Primitive.Vector.write(this.id));
|
|
339
|
+
b.write((Primitive.Vector.write(this.id)));
|
|
340
340
|
}
|
|
341
341
|
return b.buffer;
|
|
342
342
|
}
|
|
@@ -349,31 +349,31 @@ export class GetSavedMusic extends TLObject {
|
|
|
349
349
|
hash;
|
|
350
350
|
constructor(params) {
|
|
351
351
|
super();
|
|
352
|
-
this.classType =
|
|
353
|
-
this.className =
|
|
352
|
+
this.classType = "functions";
|
|
353
|
+
this.className = "users.GetSavedMusic";
|
|
354
354
|
this.constructorId = 0x788d7fe3;
|
|
355
355
|
this.subclassOfId = 0xf813ae37;
|
|
356
|
-
this._slots = [
|
|
356
|
+
this._slots = ["id", "offset", "limit", "hash"];
|
|
357
357
|
this.id = params.id;
|
|
358
358
|
this.offset = params.offset;
|
|
359
359
|
this.limit = params.limit;
|
|
360
360
|
this.hash = params.hash;
|
|
361
361
|
}
|
|
362
362
|
/**
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
363
|
+
* Generate the TLObject from buffer.
|
|
364
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
365
|
+
*/
|
|
366
366
|
static async read(_data, ..._args) {
|
|
367
367
|
// no flags
|
|
368
368
|
let id = await TLObject.read(_data);
|
|
369
369
|
let offset = await Primitive.Int.read(_data);
|
|
370
370
|
let limit = await Primitive.Int.read(_data);
|
|
371
371
|
let hash = await Primitive.Long.read(_data);
|
|
372
|
-
return new GetSavedMusic({ id: id, offset: offset, limit: limit, hash: hash });
|
|
372
|
+
return new GetSavedMusic({ "id": id, "offset": offset, "limit": limit, "hash": hash });
|
|
373
373
|
}
|
|
374
374
|
/**
|
|
375
|
-
|
|
376
|
-
|
|
375
|
+
* Generate buffer from TLObject.
|
|
376
|
+
*/
|
|
377
377
|
write() {
|
|
378
378
|
const b = new BytesIO();
|
|
379
379
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
@@ -382,13 +382,13 @@ export class GetSavedMusic extends TLObject {
|
|
|
382
382
|
b.write(this.id.write());
|
|
383
383
|
}
|
|
384
384
|
if (this.offset !== undefined) {
|
|
385
|
-
b.write(Primitive.Int.write(this.offset));
|
|
385
|
+
b.write((Primitive.Int.write(this.offset)));
|
|
386
386
|
}
|
|
387
387
|
if (this.limit !== undefined) {
|
|
388
|
-
b.write(Primitive.Int.write(this.limit));
|
|
388
|
+
b.write((Primitive.Int.write(this.limit)));
|
|
389
389
|
}
|
|
390
390
|
if (this.hash !== undefined) {
|
|
391
|
-
b.write(Primitive.Long.write(this.hash));
|
|
391
|
+
b.write((Primitive.Long.write(this.hash)));
|
|
392
392
|
}
|
|
393
393
|
return b.buffer;
|
|
394
394
|
}
|
|
@@ -399,27 +399,27 @@ export class GetSavedMusicByID extends TLObject {
|
|
|
399
399
|
documents;
|
|
400
400
|
constructor(params) {
|
|
401
401
|
super();
|
|
402
|
-
this.classType =
|
|
403
|
-
this.className =
|
|
402
|
+
this.classType = "functions";
|
|
403
|
+
this.className = "users.GetSavedMusicByID";
|
|
404
404
|
this.constructorId = 0x7573a4e9;
|
|
405
405
|
this.subclassOfId = 0xf813ae37;
|
|
406
|
-
this._slots = [
|
|
406
|
+
this._slots = ["id", "documents"];
|
|
407
407
|
this.id = params.id;
|
|
408
408
|
this.documents = params.documents;
|
|
409
409
|
}
|
|
410
410
|
/**
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
411
|
+
* Generate the TLObject from buffer.
|
|
412
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
413
|
+
*/
|
|
414
414
|
static async read(_data, ..._args) {
|
|
415
415
|
// no flags
|
|
416
416
|
let id = await TLObject.read(_data);
|
|
417
417
|
let documents = await TLObject.read(_data);
|
|
418
|
-
return new GetSavedMusicByID({ id: id, documents: documents });
|
|
418
|
+
return new GetSavedMusicByID({ "id": id, "documents": documents });
|
|
419
419
|
}
|
|
420
420
|
/**
|
|
421
|
-
|
|
422
|
-
|
|
421
|
+
* Generate buffer from TLObject.
|
|
422
|
+
*/
|
|
423
423
|
write() {
|
|
424
424
|
const b = new BytesIO();
|
|
425
425
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
@@ -428,7 +428,7 @@ export class GetSavedMusicByID extends TLObject {
|
|
|
428
428
|
b.write(this.id.write());
|
|
429
429
|
}
|
|
430
430
|
if (this.documents) {
|
|
431
|
-
b.write(Primitive.Vector.write(this.documents));
|
|
431
|
+
b.write((Primitive.Vector.write(this.documents)));
|
|
432
432
|
}
|
|
433
433
|
return b.buffer;
|
|
434
434
|
}
|
|
@@ -439,27 +439,27 @@ export class SuggestBirthday extends TLObject {
|
|
|
439
439
|
birthday;
|
|
440
440
|
constructor(params) {
|
|
441
441
|
super();
|
|
442
|
-
this.classType =
|
|
443
|
-
this.className =
|
|
442
|
+
this.classType = "functions";
|
|
443
|
+
this.className = "users.SuggestBirthday";
|
|
444
444
|
this.constructorId = 0xfc533372;
|
|
445
445
|
this.subclassOfId = 0x8af52aac;
|
|
446
|
-
this._slots = [
|
|
446
|
+
this._slots = ["id", "birthday"];
|
|
447
447
|
this.id = params.id;
|
|
448
448
|
this.birthday = params.birthday;
|
|
449
449
|
}
|
|
450
450
|
/**
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
451
|
+
* Generate the TLObject from buffer.
|
|
452
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
453
|
+
*/
|
|
454
454
|
static async read(_data, ..._args) {
|
|
455
455
|
// no flags
|
|
456
456
|
let id = await TLObject.read(_data);
|
|
457
457
|
let birthday = await TLObject.read(_data);
|
|
458
|
-
return new SuggestBirthday({ id: id, birthday: birthday });
|
|
458
|
+
return new SuggestBirthday({ "id": id, "birthday": birthday });
|
|
459
459
|
}
|
|
460
460
|
/**
|
|
461
|
-
|
|
462
|
-
|
|
461
|
+
* Generate buffer from TLObject.
|
|
462
|
+
*/
|
|
463
463
|
write() {
|
|
464
464
|
const b = new BytesIO();
|
|
465
465
|
b.write(Primitive.Int.write(this.constructorId, false));
|