@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
|
import { TLObject } from '../../core/index.js';
|
|
11
11
|
import { Buffer, BytesIO } from '../../../deps.js';
|
|
12
12
|
import type { Vector } from '../types.js';
|
|
@@ -18,12 +18,12 @@ export declare class EditPeerFolders extends TLObject {
|
|
|
18
18
|
folderPeers: Vector<raw.TypeInputFolderPeer>;
|
|
19
19
|
});
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
* Generate the TLObject from buffer.
|
|
22
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
23
|
+
*/
|
|
24
24
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<EditPeerFolders>;
|
|
25
25
|
/**
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
* Generate buffer from TLObject.
|
|
27
|
+
*/
|
|
28
28
|
write(): Buffer;
|
|
29
29
|
}
|
|
@@ -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';
|
|
@@ -15,31 +15,31 @@ export class EditPeerFolders extends TLObject {
|
|
|
15
15
|
folderPeers;
|
|
16
16
|
constructor(params) {
|
|
17
17
|
super();
|
|
18
|
-
this.classType =
|
|
19
|
-
this.className =
|
|
18
|
+
this.classType = "functions";
|
|
19
|
+
this.className = "folders.EditPeerFolders";
|
|
20
20
|
this.constructorId = 0x6847d0ab;
|
|
21
21
|
this.subclassOfId = 0x8af52aac;
|
|
22
|
-
this._slots = [
|
|
22
|
+
this._slots = ["folderPeers"];
|
|
23
23
|
this.folderPeers = params.folderPeers;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
* Generate the TLObject from buffer.
|
|
27
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
28
|
+
*/
|
|
29
29
|
static async read(_data, ..._args) {
|
|
30
30
|
// no flags
|
|
31
31
|
let folderPeers = await TLObject.read(_data);
|
|
32
|
-
return new EditPeerFolders({ folderPeers: folderPeers });
|
|
32
|
+
return new EditPeerFolders({ "folderPeers": folderPeers });
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
* Generate buffer from TLObject.
|
|
36
|
+
*/
|
|
37
37
|
write() {
|
|
38
38
|
const b = new BytesIO();
|
|
39
39
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
40
40
|
// no flags
|
|
41
41
|
if (this.folderPeers) {
|
|
42
|
-
b.write(Primitive.Vector.write(this.folderPeers));
|
|
42
|
+
b.write((Primitive.Vector.write(this.folderPeers)));
|
|
43
43
|
}
|
|
44
44
|
return b.buffer;
|
|
45
45
|
}
|
|
@@ -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, long } from '../types.js';
|
|
@@ -28,13 +28,13 @@ export declare class CollectibleInfo extends TLObject {
|
|
|
28
28
|
url: string;
|
|
29
29
|
});
|
|
30
30
|
/**
|
|
31
|
-
|
|
32
|
-
|
|
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<CollectibleInfo>;
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
* Generate buffer from TLObject.
|
|
37
|
+
*/
|
|
38
38
|
write(): Buffer;
|
|
39
39
|
}
|
|
40
40
|
export declare class GetCollectibleInfo extends TLObject {
|
|
@@ -44,12 +44,12 @@ export declare class GetCollectibleInfo extends TLObject {
|
|
|
44
44
|
collectible: raw.TypeInputCollectible;
|
|
45
45
|
});
|
|
46
46
|
/**
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
* Generate the TLObject from buffer.
|
|
48
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
49
|
+
*/
|
|
50
50
|
static read(_data: BytesIO, ..._args: Array<any>): Promise<GetCollectibleInfo>;
|
|
51
51
|
/**
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
* Generate buffer from TLObject.
|
|
53
|
+
*/
|
|
54
54
|
write(): Buffer;
|
|
55
55
|
}
|
|
@@ -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';
|
|
@@ -19,11 +19,11 @@ export class CollectibleInfo extends TLObject {
|
|
|
19
19
|
url;
|
|
20
20
|
constructor(params) {
|
|
21
21
|
super();
|
|
22
|
-
this.classType =
|
|
23
|
-
this.className =
|
|
22
|
+
this.classType = "types";
|
|
23
|
+
this.className = "fragment.CollectibleInfo";
|
|
24
24
|
this.constructorId = 0x6ebdff91;
|
|
25
25
|
this.subclassOfId = 0xd4ea5790;
|
|
26
|
-
this._slots = [
|
|
26
|
+
this._slots = ["purchaseDate", "currency", "amount", "cryptoCurrency", "cryptoAmount", "url"];
|
|
27
27
|
this.purchaseDate = params.purchaseDate;
|
|
28
28
|
this.currency = params.currency;
|
|
29
29
|
this.amount = params.amount;
|
|
@@ -32,9 +32,9 @@ export class CollectibleInfo extends TLObject {
|
|
|
32
32
|
this.url = params.url;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
* Generate the TLObject from buffer.
|
|
36
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
37
|
+
*/
|
|
38
38
|
static async read(_data, ..._args) {
|
|
39
39
|
// no flags
|
|
40
40
|
let purchaseDate = await Primitive.Int.read(_data);
|
|
@@ -43,39 +43,32 @@ export class CollectibleInfo extends TLObject {
|
|
|
43
43
|
let cryptoCurrency = await Primitive.String.read(_data);
|
|
44
44
|
let cryptoAmount = await Primitive.Long.read(_data);
|
|
45
45
|
let url = await Primitive.String.read(_data);
|
|
46
|
-
return new CollectibleInfo({
|
|
47
|
-
purchaseDate: purchaseDate,
|
|
48
|
-
currency: currency,
|
|
49
|
-
amount: amount,
|
|
50
|
-
cryptoCurrency: cryptoCurrency,
|
|
51
|
-
cryptoAmount: cryptoAmount,
|
|
52
|
-
url: url,
|
|
53
|
-
});
|
|
46
|
+
return new CollectibleInfo({ "purchaseDate": purchaseDate, "currency": currency, "amount": amount, "cryptoCurrency": cryptoCurrency, "cryptoAmount": cryptoAmount, "url": url });
|
|
54
47
|
}
|
|
55
48
|
/**
|
|
56
|
-
|
|
57
|
-
|
|
49
|
+
* Generate buffer from TLObject.
|
|
50
|
+
*/
|
|
58
51
|
write() {
|
|
59
52
|
const b = new BytesIO();
|
|
60
53
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
61
54
|
// no flags
|
|
62
55
|
if (this.purchaseDate !== undefined) {
|
|
63
|
-
b.write(Primitive.Int.write(this.purchaseDate));
|
|
56
|
+
b.write((Primitive.Int.write(this.purchaseDate)));
|
|
64
57
|
}
|
|
65
58
|
if (this.currency !== undefined) {
|
|
66
|
-
b.write(Primitive.String.write(this.currency));
|
|
59
|
+
b.write((Primitive.String.write(this.currency)));
|
|
67
60
|
}
|
|
68
61
|
if (this.amount !== undefined) {
|
|
69
|
-
b.write(Primitive.Long.write(this.amount));
|
|
62
|
+
b.write((Primitive.Long.write(this.amount)));
|
|
70
63
|
}
|
|
71
64
|
if (this.cryptoCurrency !== undefined) {
|
|
72
|
-
b.write(Primitive.String.write(this.cryptoCurrency));
|
|
65
|
+
b.write((Primitive.String.write(this.cryptoCurrency)));
|
|
73
66
|
}
|
|
74
67
|
if (this.cryptoAmount !== undefined) {
|
|
75
|
-
b.write(Primitive.Long.write(this.cryptoAmount));
|
|
68
|
+
b.write((Primitive.Long.write(this.cryptoAmount)));
|
|
76
69
|
}
|
|
77
70
|
if (this.url !== undefined) {
|
|
78
|
-
b.write(Primitive.String.write(this.url));
|
|
71
|
+
b.write((Primitive.String.write(this.url)));
|
|
79
72
|
}
|
|
80
73
|
return b.buffer;
|
|
81
74
|
}
|
|
@@ -85,25 +78,25 @@ export class GetCollectibleInfo extends TLObject {
|
|
|
85
78
|
collectible;
|
|
86
79
|
constructor(params) {
|
|
87
80
|
super();
|
|
88
|
-
this.classType =
|
|
89
|
-
this.className =
|
|
81
|
+
this.classType = "functions";
|
|
82
|
+
this.className = "fragment.GetCollectibleInfo";
|
|
90
83
|
this.constructorId = 0xbe1e85ba;
|
|
91
84
|
this.subclassOfId = 0xd4ea5790;
|
|
92
|
-
this._slots = [
|
|
85
|
+
this._slots = ["collectible"];
|
|
93
86
|
this.collectible = params.collectible;
|
|
94
87
|
}
|
|
95
88
|
/**
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
89
|
+
* Generate the TLObject from buffer.
|
|
90
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
91
|
+
*/
|
|
99
92
|
static async read(_data, ..._args) {
|
|
100
93
|
// no flags
|
|
101
94
|
let collectible = await TLObject.read(_data);
|
|
102
|
-
return new GetCollectibleInfo({ collectible: collectible });
|
|
95
|
+
return new GetCollectibleInfo({ "collectible": collectible });
|
|
103
96
|
}
|
|
104
97
|
/**
|
|
105
|
-
|
|
106
|
-
|
|
98
|
+
* Generate buffer from TLObject.
|
|
99
|
+
*/
|
|
107
100
|
write() {
|
|
108
101
|
const b = new BytesIO();
|
|
109
102
|
b.write(Primitive.Int.write(this.constructorId, false));
|