@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.
Files changed (67) hide show
  1. package/dist/src/deps.d.ts +3 -4
  2. package/dist/src/deps.js +4 -4
  3. package/dist/src/raw/class/All.d.ts +1 -1
  4. package/dist/src/raw/class/All.js +2783 -2783
  5. package/dist/src/raw/class/Raw.d.ts +7601 -7601
  6. package/dist/src/raw/class/Raw.js +20676 -26781
  7. package/dist/src/raw/class/tl/account.d.ts +841 -841
  8. package/dist/src/raw/class/tl/account.js +1813 -1983
  9. package/dist/src/raw/class/tl/aicompose.d.ts +51 -51
  10. package/dist/src/raw/class/tl/aicompose.js +117 -128
  11. package/dist/src/raw/class/tl/auth.d.ts +296 -296
  12. package/dist/src/raw/class/tl/auth.js +714 -849
  13. package/dist/src/raw/class/tl/bots.d.ts +256 -256
  14. package/dist/src/raw/class/tl/bots.js +607 -661
  15. package/dist/src/raw/class/tl/channels.d.ts +336 -336
  16. package/dist/src/raw/class/tl/channels.js +745 -836
  17. package/dist/src/raw/class/tl/chatlists.d.ts +81 -81
  18. package/dist/src/raw/class/tl/chatlists.js +183 -196
  19. package/dist/src/raw/class/tl/communities.d.ts +56 -56
  20. package/dist/src/raw/class/tl/communities.js +138 -159
  21. package/dist/src/raw/class/tl/contacts.d.ts +216 -216
  22. package/dist/src/raw/class/tl/contacts.js +492 -537
  23. package/dist/src/raw/class/tl/ephemeral.d.ts +51 -51
  24. package/dist/src/raw/class/tl/ephemeral.js +152 -204
  25. package/dist/src/raw/class/tl/feed.d.ts +71 -71
  26. package/dist/src/raw/class/tl/feed.js +179 -214
  27. package/dist/src/raw/class/tl/folders.d.ts +6 -6
  28. package/dist/src/raw/class/tl/folders.js +11 -11
  29. package/dist/src/raw/class/tl/fragment.d.ts +11 -11
  30. package/dist/src/raw/class/tl/fragment.js +25 -32
  31. package/dist/src/raw/class/tl/help.d.ts +286 -286
  32. package/dist/src/raw/class/tl/help.js +618 -686
  33. package/dist/src/raw/class/tl/langpack.d.ts +26 -26
  34. package/dist/src/raw/class/tl/langpack.js +57 -57
  35. package/dist/src/raw/class/tl/messages.d.ts +1866 -1866
  36. package/dist/src/raw/class/tl/messages.js +4886 -5965
  37. package/dist/src/raw/class/tl/payments.d.ts +646 -646
  38. package/dist/src/raw/class/tl/payments.js +1766 -2254
  39. package/dist/src/raw/class/tl/phone.d.ts +256 -256
  40. package/dist/src/raw/class/tl/phone.js +644 -779
  41. package/dist/src/raw/class/tl/photos.d.ts +41 -41
  42. package/dist/src/raw/class/tl/photos.js +116 -139
  43. package/dist/src/raw/class/tl/premium.d.ts +41 -41
  44. package/dist/src/raw/class/tl/premium.js +111 -133
  45. package/dist/src/raw/class/tl/smsjobs.d.ts +46 -46
  46. package/dist/src/raw/class/tl/smsjobs.js +97 -115
  47. package/dist/src/raw/class/tl/stats.d.ts +71 -71
  48. package/dist/src/raw/class/tl/stats.js +169 -268
  49. package/dist/src/raw/class/tl/stickers.d.ts +61 -61
  50. package/dist/src/raw/class/tl/stickers.js +144 -173
  51. package/dist/src/raw/class/tl/storage.d.ts +51 -51
  52. package/dist/src/raw/class/tl/storage.js +71 -71
  53. package/dist/src/raw/class/tl/stories.d.ts +221 -221
  54. package/dist/src/raw/class/tl/stories.js +622 -781
  55. package/dist/src/raw/class/tl/toncenter.d.ts +21 -21
  56. package/dist/src/raw/class/tl/toncenter.js +47 -52
  57. package/dist/src/raw/class/tl/updates.d.ts +56 -56
  58. package/dist/src/raw/class/tl/updates.js +175 -246
  59. package/dist/src/raw/class/tl/upload.d.ts +66 -66
  60. package/dist/src/raw/class/tl/upload.js +155 -178
  61. package/dist/src/raw/class/tl/users.d.ts +61 -61
  62. package/dist/src/raw/class/tl/users.js +124 -124
  63. package/dist/src/raw/class/tl/wallet.d.ts +221 -221
  64. package/dist/src/raw/class/tl/wallet.js +558 -624
  65. package/dist/src/raw/class/types.d.ts +1 -1
  66. package/dist/src/raw/class/types.js +1 -1
  67. 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
- * Generate the TLObject from buffer.
22
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
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
- * Generate buffer from TLObject.
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 = 'functions';
19
- this.className = 'folders.EditPeerFolders';
18
+ this.classType = "functions";
19
+ this.className = "folders.EditPeerFolders";
20
20
  this.constructorId = 0x6847d0ab;
21
21
  this.subclassOfId = 0x8af52aac;
22
- this._slots = ['folderPeers'];
22
+ this._slots = ["folderPeers"];
23
23
  this.folderPeers = params.folderPeers;
24
24
  }
25
25
  /**
26
- * Generate the TLObject from buffer.
27
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
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
- * Generate buffer from TLObject.
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
- * Generate the TLObject from buffer.
32
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
33
- */
31
+ * Generate the TLObject from buffer.
32
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
33
+ */
34
34
  static read(_data: BytesIO, ..._args: Array<any>): Promise<CollectibleInfo>;
35
35
  /**
36
- * Generate buffer from TLObject.
37
- */
36
+ * Generate buffer from TLObject.
37
+ */
38
38
  write(): Buffer;
39
39
  }
40
40
  export declare class GetCollectibleInfo extends TLObject {
@@ -44,12 +44,12 @@ export declare class GetCollectibleInfo extends TLObject {
44
44
  collectible: raw.TypeInputCollectible;
45
45
  });
46
46
  /**
47
- * Generate the TLObject from buffer.
48
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
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
- * Generate buffer from TLObject.
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 = 'types';
23
- this.className = 'fragment.CollectibleInfo';
22
+ this.classType = "types";
23
+ this.className = "fragment.CollectibleInfo";
24
24
  this.constructorId = 0x6ebdff91;
25
25
  this.subclassOfId = 0xd4ea5790;
26
- this._slots = ['purchaseDate', 'currency', 'amount', 'cryptoCurrency', 'cryptoAmount', 'url'];
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
- * Generate the TLObject from buffer.
36
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
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
- * Generate buffer from TLObject.
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 = 'functions';
89
- this.className = 'fragment.GetCollectibleInfo';
81
+ this.classType = "functions";
82
+ this.className = "fragment.GetCollectibleInfo";
90
83
  this.constructorId = 0xbe1e85ba;
91
84
  this.subclassOfId = 0xd4ea5790;
92
- this._slots = ['collectible'];
85
+ this._slots = ["collectible"];
93
86
  this.collectible = params.collectible;
94
87
  }
95
88
  /**
96
- * Generate the TLObject from buffer.
97
- * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
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
- * Generate buffer from TLObject.
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));