@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,127 +6,127 @@
|
|
|
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
|
export type TypeFileType = FileUnknown | FilePartial | FileJpeg | FileGif | FilePng | FilePdf | FileMp3 | FileMov | FileMp4 | FileWebp;
|
|
13
13
|
export declare class FileUnknown extends TLObject {
|
|
14
14
|
constructor();
|
|
15
15
|
/**
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
* Generate the TLObject from buffer.
|
|
17
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
18
|
+
*/
|
|
19
19
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<FileUnknown>;
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
* Generate buffer from TLObject.
|
|
22
|
+
*/
|
|
23
23
|
write(): Buffer;
|
|
24
24
|
}
|
|
25
25
|
export declare class FilePartial extends TLObject {
|
|
26
26
|
constructor();
|
|
27
27
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
* Generate the TLObject from buffer.
|
|
29
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
30
|
+
*/
|
|
31
31
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<FilePartial>;
|
|
32
32
|
/**
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
* Generate buffer from TLObject.
|
|
34
|
+
*/
|
|
35
35
|
write(): Buffer;
|
|
36
36
|
}
|
|
37
37
|
export declare class FileJpeg extends TLObject {
|
|
38
38
|
constructor();
|
|
39
39
|
/**
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
* Generate the TLObject from buffer.
|
|
41
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
42
|
+
*/
|
|
43
43
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<FileJpeg>;
|
|
44
44
|
/**
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
* Generate buffer from TLObject.
|
|
46
|
+
*/
|
|
47
47
|
write(): Buffer;
|
|
48
48
|
}
|
|
49
49
|
export declare class FileGif extends TLObject {
|
|
50
50
|
constructor();
|
|
51
51
|
/**
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
* Generate the TLObject from buffer.
|
|
53
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
54
|
+
*/
|
|
55
55
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<FileGif>;
|
|
56
56
|
/**
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
* Generate buffer from TLObject.
|
|
58
|
+
*/
|
|
59
59
|
write(): Buffer;
|
|
60
60
|
}
|
|
61
61
|
export declare class FilePng extends TLObject {
|
|
62
62
|
constructor();
|
|
63
63
|
/**
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
* Generate the TLObject from buffer.
|
|
65
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
66
|
+
*/
|
|
67
67
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<FilePng>;
|
|
68
68
|
/**
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
* Generate buffer from TLObject.
|
|
70
|
+
*/
|
|
71
71
|
write(): Buffer;
|
|
72
72
|
}
|
|
73
73
|
export declare class FilePdf extends TLObject {
|
|
74
74
|
constructor();
|
|
75
75
|
/**
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
* Generate the TLObject from buffer.
|
|
77
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
78
|
+
*/
|
|
79
79
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<FilePdf>;
|
|
80
80
|
/**
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
* Generate buffer from TLObject.
|
|
82
|
+
*/
|
|
83
83
|
write(): Buffer;
|
|
84
84
|
}
|
|
85
85
|
export declare class FileMp3 extends TLObject {
|
|
86
86
|
constructor();
|
|
87
87
|
/**
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
* Generate the TLObject from buffer.
|
|
89
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
90
|
+
*/
|
|
91
91
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<FileMp3>;
|
|
92
92
|
/**
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
* Generate buffer from TLObject.
|
|
94
|
+
*/
|
|
95
95
|
write(): Buffer;
|
|
96
96
|
}
|
|
97
97
|
export declare class FileMov extends TLObject {
|
|
98
98
|
constructor();
|
|
99
99
|
/**
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
* Generate the TLObject from buffer.
|
|
101
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
102
|
+
*/
|
|
103
103
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<FileMov>;
|
|
104
104
|
/**
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
* Generate buffer from TLObject.
|
|
106
|
+
*/
|
|
107
107
|
write(): Buffer;
|
|
108
108
|
}
|
|
109
109
|
export declare class FileMp4 extends TLObject {
|
|
110
110
|
constructor();
|
|
111
111
|
/**
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
* Generate the TLObject from buffer.
|
|
113
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
114
|
+
*/
|
|
115
115
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<FileMp4>;
|
|
116
116
|
/**
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
* Generate buffer from TLObject.
|
|
118
|
+
*/
|
|
119
119
|
write(): Buffer;
|
|
120
120
|
}
|
|
121
121
|
export declare class FileWebp extends TLObject {
|
|
122
122
|
constructor();
|
|
123
123
|
/**
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
* Generate the TLObject from buffer.
|
|
125
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
126
|
+
*/
|
|
127
127
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<FileWebp>;
|
|
128
128
|
/**
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
* Generate buffer from TLObject.
|
|
130
|
+
*/
|
|
131
131
|
write(): Buffer;
|
|
132
132
|
}
|
|
@@ -6,30 +6,30 @@
|
|
|
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';
|
|
13
13
|
export class FileUnknown extends TLObject {
|
|
14
14
|
constructor() {
|
|
15
15
|
super();
|
|
16
|
-
this.classType =
|
|
17
|
-
this.className =
|
|
16
|
+
this.classType = "types";
|
|
17
|
+
this.className = "storage.FileUnknown";
|
|
18
18
|
this.constructorId = 0xaa963b05;
|
|
19
19
|
this.subclassOfId = 0xf3a1e6f3;
|
|
20
20
|
this._slots = [];
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
* Generate the TLObject from buffer.
|
|
24
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
25
|
+
*/
|
|
26
26
|
static async read(_data, ..._args) {
|
|
27
27
|
// no flags
|
|
28
28
|
return new FileUnknown();
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
* Generate buffer from TLObject.
|
|
32
|
+
*/
|
|
33
33
|
write() {
|
|
34
34
|
const b = new BytesIO();
|
|
35
35
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
@@ -40,23 +40,23 @@ export class FileUnknown extends TLObject {
|
|
|
40
40
|
export class FilePartial extends TLObject {
|
|
41
41
|
constructor() {
|
|
42
42
|
super();
|
|
43
|
-
this.classType =
|
|
44
|
-
this.className =
|
|
43
|
+
this.classType = "types";
|
|
44
|
+
this.className = "storage.FilePartial";
|
|
45
45
|
this.constructorId = 0x40bc6f52;
|
|
46
46
|
this.subclassOfId = 0xf3a1e6f3;
|
|
47
47
|
this._slots = [];
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
* Generate the TLObject from buffer.
|
|
51
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
52
|
+
*/
|
|
53
53
|
static async read(_data, ..._args) {
|
|
54
54
|
// no flags
|
|
55
55
|
return new FilePartial();
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
* Generate buffer from TLObject.
|
|
59
|
+
*/
|
|
60
60
|
write() {
|
|
61
61
|
const b = new BytesIO();
|
|
62
62
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
@@ -67,23 +67,23 @@ export class FilePartial extends TLObject {
|
|
|
67
67
|
export class FileJpeg extends TLObject {
|
|
68
68
|
constructor() {
|
|
69
69
|
super();
|
|
70
|
-
this.classType =
|
|
71
|
-
this.className =
|
|
70
|
+
this.classType = "types";
|
|
71
|
+
this.className = "storage.FileJpeg";
|
|
72
72
|
this.constructorId = 0x7efe0e;
|
|
73
73
|
this.subclassOfId = 0xf3a1e6f3;
|
|
74
74
|
this._slots = [];
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
* Generate the TLObject from buffer.
|
|
78
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
79
|
+
*/
|
|
80
80
|
static async read(_data, ..._args) {
|
|
81
81
|
// no flags
|
|
82
82
|
return new FileJpeg();
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
* Generate buffer from TLObject.
|
|
86
|
+
*/
|
|
87
87
|
write() {
|
|
88
88
|
const b = new BytesIO();
|
|
89
89
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
@@ -94,23 +94,23 @@ export class FileJpeg extends TLObject {
|
|
|
94
94
|
export class FileGif extends TLObject {
|
|
95
95
|
constructor() {
|
|
96
96
|
super();
|
|
97
|
-
this.classType =
|
|
98
|
-
this.className =
|
|
97
|
+
this.classType = "types";
|
|
98
|
+
this.className = "storage.FileGif";
|
|
99
99
|
this.constructorId = 0xcae1aadf;
|
|
100
100
|
this.subclassOfId = 0xf3a1e6f3;
|
|
101
101
|
this._slots = [];
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
|
-
|
|
105
|
-
|
|
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
|
// no flags
|
|
109
109
|
return new FileGif();
|
|
110
110
|
}
|
|
111
111
|
/**
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
* Generate buffer from TLObject.
|
|
113
|
+
*/
|
|
114
114
|
write() {
|
|
115
115
|
const b = new BytesIO();
|
|
116
116
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
@@ -121,23 +121,23 @@ export class FileGif extends TLObject {
|
|
|
121
121
|
export class FilePng extends TLObject {
|
|
122
122
|
constructor() {
|
|
123
123
|
super();
|
|
124
|
-
this.classType =
|
|
125
|
-
this.className =
|
|
124
|
+
this.classType = "types";
|
|
125
|
+
this.className = "storage.FilePng";
|
|
126
126
|
this.constructorId = 0xa4f63c0;
|
|
127
127
|
this.subclassOfId = 0xf3a1e6f3;
|
|
128
128
|
this._slots = [];
|
|
129
129
|
}
|
|
130
130
|
/**
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
* Generate the TLObject from buffer.
|
|
132
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
133
|
+
*/
|
|
134
134
|
static async read(_data, ..._args) {
|
|
135
135
|
// no flags
|
|
136
136
|
return new FilePng();
|
|
137
137
|
}
|
|
138
138
|
/**
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
* Generate buffer from TLObject.
|
|
140
|
+
*/
|
|
141
141
|
write() {
|
|
142
142
|
const b = new BytesIO();
|
|
143
143
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
@@ -148,23 +148,23 @@ export class FilePng extends TLObject {
|
|
|
148
148
|
export class FilePdf extends TLObject {
|
|
149
149
|
constructor() {
|
|
150
150
|
super();
|
|
151
|
-
this.classType =
|
|
152
|
-
this.className =
|
|
151
|
+
this.classType = "types";
|
|
152
|
+
this.className = "storage.FilePdf";
|
|
153
153
|
this.constructorId = 0xae1e508d;
|
|
154
154
|
this.subclassOfId = 0xf3a1e6f3;
|
|
155
155
|
this._slots = [];
|
|
156
156
|
}
|
|
157
157
|
/**
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
* Generate the TLObject from buffer.
|
|
159
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
160
|
+
*/
|
|
161
161
|
static async read(_data, ..._args) {
|
|
162
162
|
// no flags
|
|
163
163
|
return new FilePdf();
|
|
164
164
|
}
|
|
165
165
|
/**
|
|
166
|
-
|
|
167
|
-
|
|
166
|
+
* Generate buffer from TLObject.
|
|
167
|
+
*/
|
|
168
168
|
write() {
|
|
169
169
|
const b = new BytesIO();
|
|
170
170
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
@@ -175,23 +175,23 @@ export class FilePdf extends TLObject {
|
|
|
175
175
|
export class FileMp3 extends TLObject {
|
|
176
176
|
constructor() {
|
|
177
177
|
super();
|
|
178
|
-
this.classType =
|
|
179
|
-
this.className =
|
|
178
|
+
this.classType = "types";
|
|
179
|
+
this.className = "storage.FileMp3";
|
|
180
180
|
this.constructorId = 0x528a0677;
|
|
181
181
|
this.subclassOfId = 0xf3a1e6f3;
|
|
182
182
|
this._slots = [];
|
|
183
183
|
}
|
|
184
184
|
/**
|
|
185
|
-
|
|
186
|
-
|
|
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 async read(_data, ..._args) {
|
|
189
189
|
// no flags
|
|
190
190
|
return new FileMp3();
|
|
191
191
|
}
|
|
192
192
|
/**
|
|
193
|
-
|
|
194
|
-
|
|
193
|
+
* Generate buffer from TLObject.
|
|
194
|
+
*/
|
|
195
195
|
write() {
|
|
196
196
|
const b = new BytesIO();
|
|
197
197
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
@@ -202,23 +202,23 @@ export class FileMp3 extends TLObject {
|
|
|
202
202
|
export class FileMov extends TLObject {
|
|
203
203
|
constructor() {
|
|
204
204
|
super();
|
|
205
|
-
this.classType =
|
|
206
|
-
this.className =
|
|
205
|
+
this.classType = "types";
|
|
206
|
+
this.className = "storage.FileMov";
|
|
207
207
|
this.constructorId = 0x4b09ebbc;
|
|
208
208
|
this.subclassOfId = 0xf3a1e6f3;
|
|
209
209
|
this._slots = [];
|
|
210
210
|
}
|
|
211
211
|
/**
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
212
|
+
* Generate the TLObject from buffer.
|
|
213
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
214
|
+
*/
|
|
215
215
|
static async read(_data, ..._args) {
|
|
216
216
|
// no flags
|
|
217
217
|
return new FileMov();
|
|
218
218
|
}
|
|
219
219
|
/**
|
|
220
|
-
|
|
221
|
-
|
|
220
|
+
* Generate buffer from TLObject.
|
|
221
|
+
*/
|
|
222
222
|
write() {
|
|
223
223
|
const b = new BytesIO();
|
|
224
224
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
@@ -229,23 +229,23 @@ export class FileMov extends TLObject {
|
|
|
229
229
|
export class FileMp4 extends TLObject {
|
|
230
230
|
constructor() {
|
|
231
231
|
super();
|
|
232
|
-
this.classType =
|
|
233
|
-
this.className =
|
|
232
|
+
this.classType = "types";
|
|
233
|
+
this.className = "storage.FileMp4";
|
|
234
234
|
this.constructorId = 0xb3cea0e4;
|
|
235
235
|
this.subclassOfId = 0xf3a1e6f3;
|
|
236
236
|
this._slots = [];
|
|
237
237
|
}
|
|
238
238
|
/**
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
239
|
+
* Generate the TLObject from buffer.
|
|
240
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
241
|
+
*/
|
|
242
242
|
static async read(_data, ..._args) {
|
|
243
243
|
// no flags
|
|
244
244
|
return new FileMp4();
|
|
245
245
|
}
|
|
246
246
|
/**
|
|
247
|
-
|
|
248
|
-
|
|
247
|
+
* Generate buffer from TLObject.
|
|
248
|
+
*/
|
|
249
249
|
write() {
|
|
250
250
|
const b = new BytesIO();
|
|
251
251
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
@@ -256,23 +256,23 @@ export class FileMp4 extends TLObject {
|
|
|
256
256
|
export class FileWebp extends TLObject {
|
|
257
257
|
constructor() {
|
|
258
258
|
super();
|
|
259
|
-
this.classType =
|
|
260
|
-
this.className =
|
|
259
|
+
this.classType = "types";
|
|
260
|
+
this.className = "storage.FileWebp";
|
|
261
261
|
this.constructorId = 0x1081464c;
|
|
262
262
|
this.subclassOfId = 0xf3a1e6f3;
|
|
263
263
|
this._slots = [];
|
|
264
264
|
}
|
|
265
265
|
/**
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
266
|
+
* Generate the TLObject from buffer.
|
|
267
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
268
|
+
*/
|
|
269
269
|
static async read(_data, ..._args) {
|
|
270
270
|
// no flags
|
|
271
271
|
return new FileWebp();
|
|
272
272
|
}
|
|
273
273
|
/**
|
|
274
|
-
|
|
275
|
-
|
|
274
|
+
* Generate buffer from TLObject.
|
|
275
|
+
*/
|
|
276
276
|
write() {
|
|
277
277
|
const b = new BytesIO();
|
|
278
278
|
b.write(Primitive.Int.write(this.constructorId, false));
|