@tgsnake/skema 1.2.0 → 1.3.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/README.md +1 -1
- package/dist/errors/exceptions/All.d.ts +2 -1
- package/dist/errors/exceptions/All.js +2 -1
- package/dist/errors/exceptions/BadRequest400.d.ts +4 -0
- package/dist/errors/exceptions/BadRequest400.js +8 -3
- package/dist/raw/All.d.ts +21 -9
- package/dist/raw/All.js +21 -9
- package/dist/raw/Raw.d.ts +176 -11
- package/dist/raw/Raw.js +597 -37
- package/package.json +1 -1
package/dist/raw/Raw.js
CHANGED
|
@@ -5,7 +5,7 @@ const index_js_1 = require("@/raw/core/index.js");
|
|
|
5
5
|
const deps_js_1 = require("@/deps.js");
|
|
6
6
|
var Raw;
|
|
7
7
|
(function (Raw) {
|
|
8
|
-
Raw.Layer =
|
|
8
|
+
Raw.Layer = 211;
|
|
9
9
|
Raw.HighestSCLayer = 144;
|
|
10
10
|
class ResPQ extends index_js_1.TLObject {
|
|
11
11
|
nonce;
|
|
@@ -9503,14 +9503,14 @@ var Raw;
|
|
|
9503
9503
|
fromId;
|
|
9504
9504
|
peer;
|
|
9505
9505
|
savedId;
|
|
9506
|
-
|
|
9506
|
+
resaleAmount;
|
|
9507
9507
|
canTransferAt;
|
|
9508
9508
|
canResellAt;
|
|
9509
9509
|
constructor(params) {
|
|
9510
9510
|
super();
|
|
9511
9511
|
this.classType = 'types';
|
|
9512
9512
|
this.className = 'MessageActionStarGiftUnique';
|
|
9513
|
-
this.constructorId =
|
|
9513
|
+
this.constructorId = 0x34f762f3;
|
|
9514
9514
|
this.subclassOfId = 0x8680d126;
|
|
9515
9515
|
this._slots = [
|
|
9516
9516
|
'upgrade',
|
|
@@ -9523,7 +9523,7 @@ var Raw;
|
|
|
9523
9523
|
'fromId',
|
|
9524
9524
|
'peer',
|
|
9525
9525
|
'savedId',
|
|
9526
|
-
'
|
|
9526
|
+
'resaleAmount',
|
|
9527
9527
|
'canTransferAt',
|
|
9528
9528
|
'canResellAt',
|
|
9529
9529
|
];
|
|
@@ -9537,7 +9537,7 @@ var Raw;
|
|
|
9537
9537
|
this.fromId = params.fromId;
|
|
9538
9538
|
this.peer = params.peer;
|
|
9539
9539
|
this.savedId = params.savedId;
|
|
9540
|
-
this.
|
|
9540
|
+
this.resaleAmount = params.resaleAmount;
|
|
9541
9541
|
this.canTransferAt = params.canTransferAt;
|
|
9542
9542
|
this.canResellAt = params.canResellAt;
|
|
9543
9543
|
}
|
|
@@ -9553,7 +9553,7 @@ var Raw;
|
|
|
9553
9553
|
let fromId = flags & (1 << 6) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
9554
9554
|
let peer = flags & (1 << 7) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
9555
9555
|
let savedId = flags & (1 << 7) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
9556
|
-
let
|
|
9556
|
+
let resaleAmount = flags & (1 << 8) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
9557
9557
|
let canTransferAt = flags & (1 << 9) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
9558
9558
|
let canResellAt = flags & (1 << 10) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
9559
9559
|
return new Raw.MessageActionStarGiftUnique({
|
|
@@ -9567,7 +9567,7 @@ var Raw;
|
|
|
9567
9567
|
fromId: fromId,
|
|
9568
9568
|
peer: peer,
|
|
9569
9569
|
savedId: savedId,
|
|
9570
|
-
|
|
9570
|
+
resaleAmount: resaleAmount,
|
|
9571
9571
|
canTransferAt: canTransferAt,
|
|
9572
9572
|
canResellAt: canResellAt,
|
|
9573
9573
|
});
|
|
@@ -9585,7 +9585,7 @@ var Raw;
|
|
|
9585
9585
|
flags |= this.fromId !== undefined ? 1 << 6 : 0;
|
|
9586
9586
|
flags |= this.peer !== undefined ? 1 << 7 : 0;
|
|
9587
9587
|
flags |= this.savedId !== undefined ? 1 << 7 : 0;
|
|
9588
|
-
flags |= this.
|
|
9588
|
+
flags |= this.resaleAmount !== undefined ? 1 << 8 : 0;
|
|
9589
9589
|
flags |= this.canTransferAt !== undefined ? 1 << 9 : 0;
|
|
9590
9590
|
flags |= this.canResellAt !== undefined ? 1 << 10 : 0;
|
|
9591
9591
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
@@ -9607,8 +9607,8 @@ var Raw;
|
|
|
9607
9607
|
if (this.savedId !== undefined) {
|
|
9608
9608
|
b.write(index_js_1.Primitive.Long.write(this.savedId));
|
|
9609
9609
|
}
|
|
9610
|
-
if (this.
|
|
9611
|
-
b.write(
|
|
9610
|
+
if (this.resaleAmount !== undefined) {
|
|
9611
|
+
b.write(this.resaleAmount.write());
|
|
9612
9612
|
}
|
|
9613
9613
|
if (this.canTransferAt !== undefined) {
|
|
9614
9614
|
b.write(index_js_1.Primitive.Int.write(this.canTransferAt));
|
|
@@ -11475,11 +11475,13 @@ var Raw;
|
|
|
11475
11475
|
sendPaidMessagesStars;
|
|
11476
11476
|
disallowedGifts;
|
|
11477
11477
|
starsRating;
|
|
11478
|
+
starsMyPendingRating;
|
|
11479
|
+
starsMyPendingRatingDate;
|
|
11478
11480
|
constructor(params) {
|
|
11479
11481
|
super();
|
|
11480
11482
|
this.classType = 'types';
|
|
11481
11483
|
this.className = 'UserFull';
|
|
11482
|
-
this.constructorId =
|
|
11484
|
+
this.constructorId = 0x7e63ce1f;
|
|
11483
11485
|
this.subclassOfId = 0x1f4661b9;
|
|
11484
11486
|
this._slots = [
|
|
11485
11487
|
'blocked',
|
|
@@ -11531,6 +11533,8 @@ var Raw;
|
|
|
11531
11533
|
'sendPaidMessagesStars',
|
|
11532
11534
|
'disallowedGifts',
|
|
11533
11535
|
'starsRating',
|
|
11536
|
+
'starsMyPendingRating',
|
|
11537
|
+
'starsMyPendingRatingDate',
|
|
11534
11538
|
];
|
|
11535
11539
|
this.blocked = params.blocked;
|
|
11536
11540
|
this.phoneCallsAvailable = params.phoneCallsAvailable;
|
|
@@ -11581,6 +11585,8 @@ var Raw;
|
|
|
11581
11585
|
this.sendPaidMessagesStars = params.sendPaidMessagesStars;
|
|
11582
11586
|
this.disallowedGifts = params.disallowedGifts;
|
|
11583
11587
|
this.starsRating = params.starsRating;
|
|
11588
|
+
this.starsMyPendingRating = params.starsMyPendingRating;
|
|
11589
|
+
this.starsMyPendingRatingDate = params.starsMyPendingRatingDate;
|
|
11584
11590
|
}
|
|
11585
11591
|
static async read(_data, ..._args) {
|
|
11586
11592
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -11634,6 +11640,8 @@ var Raw;
|
|
|
11634
11640
|
let sendPaidMessagesStars = flags2 & (1 << 14) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
11635
11641
|
let disallowedGifts = flags2 & (1 << 15) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
11636
11642
|
let starsRating = flags2 & (1 << 17) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
11643
|
+
let starsMyPendingRating = flags2 & (1 << 18) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
11644
|
+
let starsMyPendingRatingDate = flags2 & (1 << 18) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
11637
11645
|
return new Raw.UserFull({
|
|
11638
11646
|
blocked: blocked,
|
|
11639
11647
|
phoneCallsAvailable: phoneCallsAvailable,
|
|
@@ -11684,6 +11692,8 @@ var Raw;
|
|
|
11684
11692
|
sendPaidMessagesStars: sendPaidMessagesStars,
|
|
11685
11693
|
disallowedGifts: disallowedGifts,
|
|
11686
11694
|
starsRating: starsRating,
|
|
11695
|
+
starsMyPendingRating: starsMyPendingRating,
|
|
11696
|
+
starsMyPendingRatingDate: starsMyPendingRatingDate,
|
|
11687
11697
|
});
|
|
11688
11698
|
}
|
|
11689
11699
|
write() {
|
|
@@ -11737,6 +11747,8 @@ var Raw;
|
|
|
11737
11747
|
flags2 |= this.sendPaidMessagesStars !== undefined ? 1 << 14 : 0;
|
|
11738
11748
|
flags2 |= this.disallowedGifts !== undefined ? 1 << 15 : 0;
|
|
11739
11749
|
flags2 |= this.starsRating !== undefined ? 1 << 17 : 0;
|
|
11750
|
+
flags2 |= this.starsMyPendingRating !== undefined ? 1 << 18 : 0;
|
|
11751
|
+
flags2 |= this.starsMyPendingRatingDate !== undefined ? 1 << 18 : 0;
|
|
11740
11752
|
b.write(index_js_1.Primitive.Int.write(flags2));
|
|
11741
11753
|
if (this.id !== undefined) {
|
|
11742
11754
|
b.write(index_js_1.Primitive.Long.write(this.id));
|
|
@@ -11834,6 +11846,12 @@ var Raw;
|
|
|
11834
11846
|
if (this.starsRating !== undefined) {
|
|
11835
11847
|
b.write(this.starsRating.write());
|
|
11836
11848
|
}
|
|
11849
|
+
if (this.starsMyPendingRating !== undefined) {
|
|
11850
|
+
b.write(this.starsMyPendingRating.write());
|
|
11851
|
+
}
|
|
11852
|
+
if (this.starsMyPendingRatingDate !== undefined) {
|
|
11853
|
+
b.write(index_js_1.Primitive.Int.write(this.starsMyPendingRatingDate));
|
|
11854
|
+
}
|
|
11837
11855
|
return deps_js_1.Buffer.from(b.buffer);
|
|
11838
11856
|
}
|
|
11839
11857
|
}
|
|
@@ -37461,6 +37479,31 @@ var Raw;
|
|
|
37461
37479
|
}
|
|
37462
37480
|
}
|
|
37463
37481
|
Raw.WebPageAttributeUniqueStarGift = WebPageAttributeUniqueStarGift;
|
|
37482
|
+
class WebPageAttributeStarGiftCollection extends index_js_1.TLObject {
|
|
37483
|
+
icons;
|
|
37484
|
+
constructor(params) {
|
|
37485
|
+
super();
|
|
37486
|
+
this.classType = 'types';
|
|
37487
|
+
this.className = 'WebPageAttributeStarGiftCollection';
|
|
37488
|
+
this.constructorId = 0x31cad303;
|
|
37489
|
+
this.subclassOfId = 0xafcfe9c7;
|
|
37490
|
+
this._slots = ['icons'];
|
|
37491
|
+
this.icons = params.icons;
|
|
37492
|
+
}
|
|
37493
|
+
static async read(_data, ..._args) {
|
|
37494
|
+
let icons = await index_js_1.TLObject.read(_data);
|
|
37495
|
+
return new Raw.WebPageAttributeStarGiftCollection({ icons: icons });
|
|
37496
|
+
}
|
|
37497
|
+
write() {
|
|
37498
|
+
const b = new deps_js_1.BytesIO();
|
|
37499
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
37500
|
+
if (this.icons) {
|
|
37501
|
+
b.write(index_js_1.Primitive.Vector.write(this.icons));
|
|
37502
|
+
}
|
|
37503
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
37504
|
+
}
|
|
37505
|
+
}
|
|
37506
|
+
Raw.WebPageAttributeStarGiftCollection = WebPageAttributeStarGiftCollection;
|
|
37464
37507
|
class BankCardOpenUrl extends index_js_1.TLObject {
|
|
37465
37508
|
url;
|
|
37466
37509
|
name;
|
|
@@ -40966,26 +41009,33 @@ var Raw;
|
|
|
40966
41009
|
}
|
|
40967
41010
|
Raw.InputInvoiceBusinessBotTransferStars = InputInvoiceBusinessBotTransferStars;
|
|
40968
41011
|
class InputInvoiceStarGiftResale extends index_js_1.TLObject {
|
|
41012
|
+
ton;
|
|
40969
41013
|
slug;
|
|
40970
41014
|
toId;
|
|
40971
41015
|
constructor(params) {
|
|
40972
41016
|
super();
|
|
40973
41017
|
this.classType = 'types';
|
|
40974
41018
|
this.className = 'InputInvoiceStarGiftResale';
|
|
40975
|
-
this.constructorId =
|
|
41019
|
+
this.constructorId = 0xc39f5324;
|
|
40976
41020
|
this.subclassOfId = 0x726e9bfe;
|
|
40977
|
-
this._slots = ['slug', 'toId'];
|
|
41021
|
+
this._slots = ['ton', 'slug', 'toId'];
|
|
41022
|
+
this.ton = params.ton;
|
|
40978
41023
|
this.slug = params.slug;
|
|
40979
41024
|
this.toId = params.toId;
|
|
40980
41025
|
}
|
|
40981
41026
|
static async read(_data, ..._args) {
|
|
41027
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
41028
|
+
let ton = flags & (1 << 0) ? true : false;
|
|
40982
41029
|
let slug = await index_js_1.Primitive.String.read(_data);
|
|
40983
41030
|
let toId = await index_js_1.TLObject.read(_data);
|
|
40984
|
-
return new Raw.InputInvoiceStarGiftResale({ slug: slug, toId: toId });
|
|
41031
|
+
return new Raw.InputInvoiceStarGiftResale({ ton: ton, slug: slug, toId: toId });
|
|
40985
41032
|
}
|
|
40986
41033
|
write() {
|
|
40987
41034
|
const b = new deps_js_1.BytesIO();
|
|
40988
41035
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
41036
|
+
let flags = 0;
|
|
41037
|
+
flags |= this.ton ? 1 << 0 : 0;
|
|
41038
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
40989
41039
|
if (this.slug !== undefined) {
|
|
40990
41040
|
b.write(index_js_1.Primitive.String.write(this.slug));
|
|
40991
41041
|
}
|
|
@@ -43532,11 +43582,12 @@ var Raw;
|
|
|
43532
43582
|
privacy;
|
|
43533
43583
|
views;
|
|
43534
43584
|
sentReaction;
|
|
43585
|
+
albums;
|
|
43535
43586
|
constructor(params) {
|
|
43536
43587
|
super();
|
|
43537
43588
|
this.classType = 'types';
|
|
43538
43589
|
this.className = 'StoryItem';
|
|
43539
|
-
this.constructorId =
|
|
43590
|
+
this.constructorId = 0xedf164f1;
|
|
43540
43591
|
this.subclassOfId = 0xd477b133;
|
|
43541
43592
|
this._slots = [
|
|
43542
43593
|
'pinned',
|
|
@@ -43560,6 +43611,7 @@ var Raw;
|
|
|
43560
43611
|
'privacy',
|
|
43561
43612
|
'views',
|
|
43562
43613
|
'sentReaction',
|
|
43614
|
+
'albums',
|
|
43563
43615
|
];
|
|
43564
43616
|
this.pinned = params.pinned;
|
|
43565
43617
|
this.public = params.public;
|
|
@@ -43582,6 +43634,7 @@ var Raw;
|
|
|
43582
43634
|
this.privacy = params.privacy;
|
|
43583
43635
|
this.views = params.views;
|
|
43584
43636
|
this.sentReaction = params.sentReaction;
|
|
43637
|
+
this.albums = params.albums;
|
|
43585
43638
|
}
|
|
43586
43639
|
static async read(_data, ..._args) {
|
|
43587
43640
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -43606,6 +43659,7 @@ var Raw;
|
|
|
43606
43659
|
let privacy = flags & (1 << 2) ? await index_js_1.TLObject.read(_data) : [];
|
|
43607
43660
|
let views = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
43608
43661
|
let sentReaction = flags & (1 << 15) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
43662
|
+
let albums = flags & (1 << 19) ? await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int) : [];
|
|
43609
43663
|
return new Raw.StoryItem({
|
|
43610
43664
|
pinned: pinned,
|
|
43611
43665
|
public: _public,
|
|
@@ -43628,6 +43682,7 @@ var Raw;
|
|
|
43628
43682
|
privacy: privacy,
|
|
43629
43683
|
views: views,
|
|
43630
43684
|
sentReaction: sentReaction,
|
|
43685
|
+
albums: albums,
|
|
43631
43686
|
});
|
|
43632
43687
|
}
|
|
43633
43688
|
write() {
|
|
@@ -43651,6 +43706,7 @@ var Raw;
|
|
|
43651
43706
|
flags |= this.privacy ? 1 << 2 : 0;
|
|
43652
43707
|
flags |= this.views !== undefined ? 1 << 3 : 0;
|
|
43653
43708
|
flags |= this.sentReaction !== undefined ? 1 << 15 : 0;
|
|
43709
|
+
flags |= this.albums ? 1 << 19 : 0;
|
|
43654
43710
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
43655
43711
|
if (this.id !== undefined) {
|
|
43656
43712
|
b.write(index_js_1.Primitive.Int.write(this.id));
|
|
@@ -43688,6 +43744,9 @@ var Raw;
|
|
|
43688
43744
|
if (this.sentReaction !== undefined) {
|
|
43689
43745
|
b.write(this.sentReaction.write());
|
|
43690
43746
|
}
|
|
43747
|
+
if (this.albums) {
|
|
43748
|
+
b.write(index_js_1.Primitive.Vector.write(this.albums, index_js_1.Primitive.Int));
|
|
43749
|
+
}
|
|
43691
43750
|
return deps_js_1.Buffer.from(b.buffer);
|
|
43692
43751
|
}
|
|
43693
43752
|
}
|
|
@@ -47287,6 +47346,7 @@ var Raw;
|
|
|
47287
47346
|
stargiftUpgrade;
|
|
47288
47347
|
businessTransfer;
|
|
47289
47348
|
stargiftResale;
|
|
47349
|
+
postsSearch;
|
|
47290
47350
|
id;
|
|
47291
47351
|
amount;
|
|
47292
47352
|
date;
|
|
@@ -47325,6 +47385,7 @@ var Raw;
|
|
|
47325
47385
|
'stargiftUpgrade',
|
|
47326
47386
|
'businessTransfer',
|
|
47327
47387
|
'stargiftResale',
|
|
47388
|
+
'postsSearch',
|
|
47328
47389
|
'id',
|
|
47329
47390
|
'amount',
|
|
47330
47391
|
'date',
|
|
@@ -47357,6 +47418,7 @@ var Raw;
|
|
|
47357
47418
|
this.stargiftUpgrade = params.stargiftUpgrade;
|
|
47358
47419
|
this.businessTransfer = params.businessTransfer;
|
|
47359
47420
|
this.stargiftResale = params.stargiftResale;
|
|
47421
|
+
this.postsSearch = params.postsSearch;
|
|
47360
47422
|
this.id = params.id;
|
|
47361
47423
|
this.amount = params.amount;
|
|
47362
47424
|
this.date = params.date;
|
|
@@ -47391,6 +47453,7 @@ var Raw;
|
|
|
47391
47453
|
let stargiftUpgrade = flags & (1 << 18) ? true : false;
|
|
47392
47454
|
let businessTransfer = flags & (1 << 21) ? true : false;
|
|
47393
47455
|
let stargiftResale = flags & (1 << 22) ? true : false;
|
|
47456
|
+
let postsSearch = flags & (1 << 24) ? true : false;
|
|
47394
47457
|
let id = await index_js_1.Primitive.String.read(_data);
|
|
47395
47458
|
let amount = await index_js_1.TLObject.read(_data);
|
|
47396
47459
|
let date = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -47423,6 +47486,7 @@ var Raw;
|
|
|
47423
47486
|
stargiftUpgrade: stargiftUpgrade,
|
|
47424
47487
|
businessTransfer: businessTransfer,
|
|
47425
47488
|
stargiftResale: stargiftResale,
|
|
47489
|
+
postsSearch: postsSearch,
|
|
47426
47490
|
id: id,
|
|
47427
47491
|
amount: amount,
|
|
47428
47492
|
date: date,
|
|
@@ -47460,6 +47524,7 @@ var Raw;
|
|
|
47460
47524
|
flags |= this.stargiftUpgrade ? 1 << 18 : 0;
|
|
47461
47525
|
flags |= this.businessTransfer ? 1 << 21 : 0;
|
|
47462
47526
|
flags |= this.stargiftResale ? 1 << 22 : 0;
|
|
47527
|
+
flags |= this.postsSearch ? 1 << 24 : 0;
|
|
47463
47528
|
flags |= this.title !== undefined ? 1 << 0 : 0;
|
|
47464
47529
|
flags |= this.description !== undefined ? 1 << 1 : 0;
|
|
47465
47530
|
flags |= this.photo !== undefined ? 1 << 2 : 0;
|
|
@@ -48335,6 +48400,7 @@ var Raw;
|
|
|
48335
48400
|
Raw.StarGift = StarGift;
|
|
48336
48401
|
class StarGiftUnique extends index_js_1.TLObject {
|
|
48337
48402
|
requirePremium;
|
|
48403
|
+
resaleTonOnly;
|
|
48338
48404
|
id;
|
|
48339
48405
|
title;
|
|
48340
48406
|
slug;
|
|
@@ -48346,16 +48412,17 @@ var Raw;
|
|
|
48346
48412
|
availabilityIssued;
|
|
48347
48413
|
availabilityTotal;
|
|
48348
48414
|
giftAddress;
|
|
48349
|
-
|
|
48415
|
+
resellAmount;
|
|
48350
48416
|
releasedBy;
|
|
48351
48417
|
constructor(params) {
|
|
48352
48418
|
super();
|
|
48353
48419
|
this.classType = 'types';
|
|
48354
48420
|
this.className = 'StarGiftUnique';
|
|
48355
|
-
this.constructorId =
|
|
48421
|
+
this.constructorId = 0x3a274d50;
|
|
48356
48422
|
this.subclassOfId = 0xc31c590b;
|
|
48357
48423
|
this._slots = [
|
|
48358
48424
|
'requirePremium',
|
|
48425
|
+
'resaleTonOnly',
|
|
48359
48426
|
'id',
|
|
48360
48427
|
'title',
|
|
48361
48428
|
'slug',
|
|
@@ -48367,10 +48434,11 @@ var Raw;
|
|
|
48367
48434
|
'availabilityIssued',
|
|
48368
48435
|
'availabilityTotal',
|
|
48369
48436
|
'giftAddress',
|
|
48370
|
-
'
|
|
48437
|
+
'resellAmount',
|
|
48371
48438
|
'releasedBy',
|
|
48372
48439
|
];
|
|
48373
48440
|
this.requirePremium = params.requirePremium;
|
|
48441
|
+
this.resaleTonOnly = params.resaleTonOnly;
|
|
48374
48442
|
this.id = params.id;
|
|
48375
48443
|
this.title = params.title;
|
|
48376
48444
|
this.slug = params.slug;
|
|
@@ -48382,12 +48450,13 @@ var Raw;
|
|
|
48382
48450
|
this.availabilityIssued = params.availabilityIssued;
|
|
48383
48451
|
this.availabilityTotal = params.availabilityTotal;
|
|
48384
48452
|
this.giftAddress = params.giftAddress;
|
|
48385
|
-
this.
|
|
48453
|
+
this.resellAmount = params.resellAmount;
|
|
48386
48454
|
this.releasedBy = params.releasedBy;
|
|
48387
48455
|
}
|
|
48388
48456
|
static async read(_data, ..._args) {
|
|
48389
48457
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
48390
48458
|
let requirePremium = flags & (1 << 6) ? true : false;
|
|
48459
|
+
let resaleTonOnly = flags & (1 << 7) ? true : false;
|
|
48391
48460
|
let id = await index_js_1.Primitive.Long.read(_data);
|
|
48392
48461
|
let title = await index_js_1.Primitive.String.read(_data);
|
|
48393
48462
|
let slug = await index_js_1.Primitive.String.read(_data);
|
|
@@ -48399,10 +48468,11 @@ var Raw;
|
|
|
48399
48468
|
let availabilityIssued = await index_js_1.Primitive.Int.read(_data);
|
|
48400
48469
|
let availabilityTotal = await index_js_1.Primitive.Int.read(_data);
|
|
48401
48470
|
let giftAddress = flags & (1 << 3) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
48402
|
-
let
|
|
48471
|
+
let resellAmount = flags & (1 << 4) ? await index_js_1.TLObject.read(_data) : [];
|
|
48403
48472
|
let releasedBy = flags & (1 << 5) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
48404
48473
|
return new Raw.StarGiftUnique({
|
|
48405
48474
|
requirePremium: requirePremium,
|
|
48475
|
+
resaleTonOnly: resaleTonOnly,
|
|
48406
48476
|
id: id,
|
|
48407
48477
|
title: title,
|
|
48408
48478
|
slug: slug,
|
|
@@ -48414,7 +48484,7 @@ var Raw;
|
|
|
48414
48484
|
availabilityIssued: availabilityIssued,
|
|
48415
48485
|
availabilityTotal: availabilityTotal,
|
|
48416
48486
|
giftAddress: giftAddress,
|
|
48417
|
-
|
|
48487
|
+
resellAmount: resellAmount,
|
|
48418
48488
|
releasedBy: releasedBy,
|
|
48419
48489
|
});
|
|
48420
48490
|
}
|
|
@@ -48423,11 +48493,12 @@ var Raw;
|
|
|
48423
48493
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
48424
48494
|
let flags = 0;
|
|
48425
48495
|
flags |= this.requirePremium ? 1 << 6 : 0;
|
|
48496
|
+
flags |= this.resaleTonOnly ? 1 << 7 : 0;
|
|
48426
48497
|
flags |= this.ownerId !== undefined ? 1 << 0 : 0;
|
|
48427
48498
|
flags |= this.ownerName !== undefined ? 1 << 1 : 0;
|
|
48428
48499
|
flags |= this.ownerAddress !== undefined ? 1 << 2 : 0;
|
|
48429
48500
|
flags |= this.giftAddress !== undefined ? 1 << 3 : 0;
|
|
48430
|
-
flags |= this.
|
|
48501
|
+
flags |= this.resellAmount ? 1 << 4 : 0;
|
|
48431
48502
|
flags |= this.releasedBy !== undefined ? 1 << 5 : 0;
|
|
48432
48503
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
48433
48504
|
if (this.id !== undefined) {
|
|
@@ -48463,8 +48534,8 @@ var Raw;
|
|
|
48463
48534
|
if (this.giftAddress !== undefined) {
|
|
48464
48535
|
b.write(index_js_1.Primitive.String.write(this.giftAddress));
|
|
48465
48536
|
}
|
|
48466
|
-
if (this.
|
|
48467
|
-
b.write(index_js_1.Primitive.
|
|
48537
|
+
if (this.resellAmount) {
|
|
48538
|
+
b.write(index_js_1.Primitive.Vector.write(this.resellAmount));
|
|
48468
48539
|
}
|
|
48469
48540
|
if (this.releasedBy !== undefined) {
|
|
48470
48541
|
b.write(this.releasedBy.write());
|
|
@@ -50178,6 +50249,116 @@ var Raw;
|
|
|
50178
50249
|
}
|
|
50179
50250
|
}
|
|
50180
50251
|
Raw.StarGiftCollection = StarGiftCollection;
|
|
50252
|
+
class StoryAlbum extends index_js_1.TLObject {
|
|
50253
|
+
albumId;
|
|
50254
|
+
title;
|
|
50255
|
+
iconPhoto;
|
|
50256
|
+
iconVideo;
|
|
50257
|
+
constructor(params) {
|
|
50258
|
+
super();
|
|
50259
|
+
this.classType = 'types';
|
|
50260
|
+
this.className = 'StoryAlbum';
|
|
50261
|
+
this.constructorId = 0x9325705a;
|
|
50262
|
+
this.subclassOfId = 0x7c8c5ea2;
|
|
50263
|
+
this._slots = ['albumId', 'title', 'iconPhoto', 'iconVideo'];
|
|
50264
|
+
this.albumId = params.albumId;
|
|
50265
|
+
this.title = params.title;
|
|
50266
|
+
this.iconPhoto = params.iconPhoto;
|
|
50267
|
+
this.iconVideo = params.iconVideo;
|
|
50268
|
+
}
|
|
50269
|
+
static async read(_data, ..._args) {
|
|
50270
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
50271
|
+
let albumId = await index_js_1.Primitive.Int.read(_data);
|
|
50272
|
+
let title = await index_js_1.Primitive.String.read(_data);
|
|
50273
|
+
let iconPhoto = flags & (1 << 0) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
50274
|
+
let iconVideo = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
50275
|
+
return new Raw.StoryAlbum({
|
|
50276
|
+
albumId: albumId,
|
|
50277
|
+
title: title,
|
|
50278
|
+
iconPhoto: iconPhoto,
|
|
50279
|
+
iconVideo: iconVideo,
|
|
50280
|
+
});
|
|
50281
|
+
}
|
|
50282
|
+
write() {
|
|
50283
|
+
const b = new deps_js_1.BytesIO();
|
|
50284
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
50285
|
+
let flags = 0;
|
|
50286
|
+
flags |= this.iconPhoto !== undefined ? 1 << 0 : 0;
|
|
50287
|
+
flags |= this.iconVideo !== undefined ? 1 << 1 : 0;
|
|
50288
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
50289
|
+
if (this.albumId !== undefined) {
|
|
50290
|
+
b.write(index_js_1.Primitive.Int.write(this.albumId));
|
|
50291
|
+
}
|
|
50292
|
+
if (this.title !== undefined) {
|
|
50293
|
+
b.write(index_js_1.Primitive.String.write(this.title));
|
|
50294
|
+
}
|
|
50295
|
+
if (this.iconPhoto !== undefined) {
|
|
50296
|
+
b.write(this.iconPhoto.write());
|
|
50297
|
+
}
|
|
50298
|
+
if (this.iconVideo !== undefined) {
|
|
50299
|
+
b.write(this.iconVideo.write());
|
|
50300
|
+
}
|
|
50301
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
50302
|
+
}
|
|
50303
|
+
}
|
|
50304
|
+
Raw.StoryAlbum = StoryAlbum;
|
|
50305
|
+
class SearchPostsFlood extends index_js_1.TLObject {
|
|
50306
|
+
queryIsFree;
|
|
50307
|
+
totalDaily;
|
|
50308
|
+
remains;
|
|
50309
|
+
waitTill;
|
|
50310
|
+
starsAmount;
|
|
50311
|
+
constructor(params) {
|
|
50312
|
+
super();
|
|
50313
|
+
this.classType = 'types';
|
|
50314
|
+
this.className = 'SearchPostsFlood';
|
|
50315
|
+
this.constructorId = 0x3e0b5b6a;
|
|
50316
|
+
this.subclassOfId = 0xc2c0ccc1;
|
|
50317
|
+
this._slots = ['queryIsFree', 'totalDaily', 'remains', 'waitTill', 'starsAmount'];
|
|
50318
|
+
this.queryIsFree = params.queryIsFree;
|
|
50319
|
+
this.totalDaily = params.totalDaily;
|
|
50320
|
+
this.remains = params.remains;
|
|
50321
|
+
this.waitTill = params.waitTill;
|
|
50322
|
+
this.starsAmount = params.starsAmount;
|
|
50323
|
+
}
|
|
50324
|
+
static async read(_data, ..._args) {
|
|
50325
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
50326
|
+
let queryIsFree = flags & (1 << 0) ? true : false;
|
|
50327
|
+
let totalDaily = await index_js_1.Primitive.Int.read(_data);
|
|
50328
|
+
let remains = await index_js_1.Primitive.Int.read(_data);
|
|
50329
|
+
let waitTill = flags & (1 << 1) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
50330
|
+
let starsAmount = await index_js_1.Primitive.Long.read(_data);
|
|
50331
|
+
return new Raw.SearchPostsFlood({
|
|
50332
|
+
queryIsFree: queryIsFree,
|
|
50333
|
+
totalDaily: totalDaily,
|
|
50334
|
+
remains: remains,
|
|
50335
|
+
waitTill: waitTill,
|
|
50336
|
+
starsAmount: starsAmount,
|
|
50337
|
+
});
|
|
50338
|
+
}
|
|
50339
|
+
write() {
|
|
50340
|
+
const b = new deps_js_1.BytesIO();
|
|
50341
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
50342
|
+
let flags = 0;
|
|
50343
|
+
flags |= this.queryIsFree ? 1 << 0 : 0;
|
|
50344
|
+
flags |= this.waitTill !== undefined ? 1 << 1 : 0;
|
|
50345
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
50346
|
+
if (this.totalDaily !== undefined) {
|
|
50347
|
+
b.write(index_js_1.Primitive.Int.write(this.totalDaily));
|
|
50348
|
+
}
|
|
50349
|
+
if (this.remains !== undefined) {
|
|
50350
|
+
b.write(index_js_1.Primitive.Int.write(this.remains));
|
|
50351
|
+
}
|
|
50352
|
+
if (this.waitTill !== undefined) {
|
|
50353
|
+
b.write(index_js_1.Primitive.Int.write(this.waitTill));
|
|
50354
|
+
}
|
|
50355
|
+
if (this.starsAmount !== undefined) {
|
|
50356
|
+
b.write(index_js_1.Primitive.Long.write(this.starsAmount));
|
|
50357
|
+
}
|
|
50358
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
50359
|
+
}
|
|
50360
|
+
}
|
|
50361
|
+
Raw.SearchPostsFlood = SearchPostsFlood;
|
|
50181
50362
|
class InvokeAfterMsg extends index_js_1.TLObject {
|
|
50182
50363
|
__response__;
|
|
50183
50364
|
msgId;
|
|
@@ -58228,6 +58409,7 @@ var Raw;
|
|
|
58228
58409
|
count;
|
|
58229
58410
|
nextRate;
|
|
58230
58411
|
offsetIdOffset;
|
|
58412
|
+
searchFlood;
|
|
58231
58413
|
messages;
|
|
58232
58414
|
chats;
|
|
58233
58415
|
users;
|
|
@@ -58235,13 +58417,14 @@ var Raw;
|
|
|
58235
58417
|
super();
|
|
58236
58418
|
this.classType = 'types';
|
|
58237
58419
|
this.className = 'messages.MessagesSlice';
|
|
58238
|
-
this.constructorId =
|
|
58420
|
+
this.constructorId = 0x762b263d;
|
|
58239
58421
|
this.subclassOfId = 0xd4b40b5e;
|
|
58240
58422
|
this._slots = [
|
|
58241
58423
|
'inexact',
|
|
58242
58424
|
'count',
|
|
58243
58425
|
'nextRate',
|
|
58244
58426
|
'offsetIdOffset',
|
|
58427
|
+
'searchFlood',
|
|
58245
58428
|
'messages',
|
|
58246
58429
|
'chats',
|
|
58247
58430
|
'users',
|
|
@@ -58250,6 +58433,7 @@ var Raw;
|
|
|
58250
58433
|
this.count = params.count;
|
|
58251
58434
|
this.nextRate = params.nextRate;
|
|
58252
58435
|
this.offsetIdOffset = params.offsetIdOffset;
|
|
58436
|
+
this.searchFlood = params.searchFlood;
|
|
58253
58437
|
this.messages = params.messages;
|
|
58254
58438
|
this.chats = params.chats;
|
|
58255
58439
|
this.users = params.users;
|
|
@@ -58260,6 +58444,7 @@ var Raw;
|
|
|
58260
58444
|
let count = await index_js_1.Primitive.Int.read(_data);
|
|
58261
58445
|
let nextRate = flags & (1 << 0) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
58262
58446
|
let offsetIdOffset = flags & (1 << 2) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
58447
|
+
let searchFlood = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
58263
58448
|
let messages = await index_js_1.TLObject.read(_data);
|
|
58264
58449
|
let chats = await index_js_1.TLObject.read(_data);
|
|
58265
58450
|
let users = await index_js_1.TLObject.read(_data);
|
|
@@ -58268,6 +58453,7 @@ var Raw;
|
|
|
58268
58453
|
count: count,
|
|
58269
58454
|
nextRate: nextRate,
|
|
58270
58455
|
offsetIdOffset: offsetIdOffset,
|
|
58456
|
+
searchFlood: searchFlood,
|
|
58271
58457
|
messages: messages,
|
|
58272
58458
|
chats: chats,
|
|
58273
58459
|
users: users,
|
|
@@ -58280,6 +58466,7 @@ var Raw;
|
|
|
58280
58466
|
flags |= this.inexact ? 1 << 1 : 0;
|
|
58281
58467
|
flags |= this.nextRate !== undefined ? 1 << 0 : 0;
|
|
58282
58468
|
flags |= this.offsetIdOffset !== undefined ? 1 << 2 : 0;
|
|
58469
|
+
flags |= this.searchFlood !== undefined ? 1 << 3 : 0;
|
|
58283
58470
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
58284
58471
|
if (this.count !== undefined) {
|
|
58285
58472
|
b.write(index_js_1.Primitive.Int.write(this.count));
|
|
@@ -58290,6 +58477,9 @@ var Raw;
|
|
|
58290
58477
|
if (this.offsetIdOffset !== undefined) {
|
|
58291
58478
|
b.write(index_js_1.Primitive.Int.write(this.offsetIdOffset));
|
|
58292
58479
|
}
|
|
58480
|
+
if (this.searchFlood !== undefined) {
|
|
58481
|
+
b.write(this.searchFlood.write());
|
|
58482
|
+
}
|
|
58293
58483
|
if (this.messages) {
|
|
58294
58484
|
b.write(index_js_1.Primitive.Vector.write(this.messages));
|
|
58295
58485
|
}
|
|
@@ -80173,43 +80363,68 @@ var Raw;
|
|
|
80173
80363
|
class SearchPosts extends index_js_1.TLObject {
|
|
80174
80364
|
__response__;
|
|
80175
80365
|
hashtag;
|
|
80366
|
+
query;
|
|
80176
80367
|
offsetRate;
|
|
80177
80368
|
offsetPeer;
|
|
80178
80369
|
offsetId;
|
|
80179
80370
|
limit;
|
|
80371
|
+
allowPaidStars;
|
|
80180
80372
|
constructor(params) {
|
|
80181
80373
|
super();
|
|
80182
80374
|
this.classType = 'functions';
|
|
80183
80375
|
this.className = 'channels.SearchPosts';
|
|
80184
|
-
this.constructorId =
|
|
80376
|
+
this.constructorId = 0xf2c4f24d;
|
|
80185
80377
|
this.subclassOfId = 0xd4b40b5e;
|
|
80186
|
-
this._slots = [
|
|
80378
|
+
this._slots = [
|
|
80379
|
+
'hashtag',
|
|
80380
|
+
'query',
|
|
80381
|
+
'offsetRate',
|
|
80382
|
+
'offsetPeer',
|
|
80383
|
+
'offsetId',
|
|
80384
|
+
'limit',
|
|
80385
|
+
'allowPaidStars',
|
|
80386
|
+
];
|
|
80187
80387
|
this.hashtag = params.hashtag;
|
|
80388
|
+
this.query = params.query;
|
|
80188
80389
|
this.offsetRate = params.offsetRate;
|
|
80189
80390
|
this.offsetPeer = params.offsetPeer;
|
|
80190
80391
|
this.offsetId = params.offsetId;
|
|
80191
80392
|
this.limit = params.limit;
|
|
80393
|
+
this.allowPaidStars = params.allowPaidStars;
|
|
80192
80394
|
}
|
|
80193
80395
|
static async read(_data, ..._args) {
|
|
80194
|
-
let
|
|
80396
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
80397
|
+
let hashtag = flags & (1 << 0) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
80398
|
+
let query = flags & (1 << 1) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
80195
80399
|
let offsetRate = await index_js_1.Primitive.Int.read(_data);
|
|
80196
80400
|
let offsetPeer = await index_js_1.TLObject.read(_data);
|
|
80197
80401
|
let offsetId = await index_js_1.Primitive.Int.read(_data);
|
|
80198
80402
|
let limit = await index_js_1.Primitive.Int.read(_data);
|
|
80403
|
+
let allowPaidStars = flags & (1 << 2) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
80199
80404
|
return new Raw.channels.SearchPosts({
|
|
80200
80405
|
hashtag: hashtag,
|
|
80406
|
+
query: query,
|
|
80201
80407
|
offsetRate: offsetRate,
|
|
80202
80408
|
offsetPeer: offsetPeer,
|
|
80203
80409
|
offsetId: offsetId,
|
|
80204
80410
|
limit: limit,
|
|
80411
|
+
allowPaidStars: allowPaidStars,
|
|
80205
80412
|
});
|
|
80206
80413
|
}
|
|
80207
80414
|
write() {
|
|
80208
80415
|
const b = new deps_js_1.BytesIO();
|
|
80209
80416
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
80417
|
+
let flags = 0;
|
|
80418
|
+
flags |= this.hashtag !== undefined ? 1 << 0 : 0;
|
|
80419
|
+
flags |= this.query !== undefined ? 1 << 1 : 0;
|
|
80420
|
+
flags |= this.allowPaidStars !== undefined ? 1 << 2 : 0;
|
|
80421
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
80210
80422
|
if (this.hashtag !== undefined) {
|
|
80211
80423
|
b.write(index_js_1.Primitive.String.write(this.hashtag));
|
|
80212
80424
|
}
|
|
80425
|
+
if (this.query !== undefined) {
|
|
80426
|
+
b.write(index_js_1.Primitive.String.write(this.query));
|
|
80427
|
+
}
|
|
80213
80428
|
if (this.offsetRate !== undefined) {
|
|
80214
80429
|
b.write(index_js_1.Primitive.Int.write(this.offsetRate));
|
|
80215
80430
|
}
|
|
@@ -80222,6 +80437,9 @@ var Raw;
|
|
|
80222
80437
|
if (this.limit !== undefined) {
|
|
80223
80438
|
b.write(index_js_1.Primitive.Int.write(this.limit));
|
|
80224
80439
|
}
|
|
80440
|
+
if (this.allowPaidStars !== undefined) {
|
|
80441
|
+
b.write(index_js_1.Primitive.Long.write(this.allowPaidStars));
|
|
80442
|
+
}
|
|
80225
80443
|
return deps_js_1.Buffer.from(b.buffer);
|
|
80226
80444
|
}
|
|
80227
80445
|
}
|
|
@@ -80333,6 +80551,36 @@ var Raw;
|
|
|
80333
80551
|
}
|
|
80334
80552
|
}
|
|
80335
80553
|
channels.GetMessageAuthor = GetMessageAuthor;
|
|
80554
|
+
class CheckSearchPostsFlood extends index_js_1.TLObject {
|
|
80555
|
+
__response__;
|
|
80556
|
+
query;
|
|
80557
|
+
constructor(params) {
|
|
80558
|
+
super();
|
|
80559
|
+
this.classType = 'functions';
|
|
80560
|
+
this.className = 'channels.CheckSearchPostsFlood';
|
|
80561
|
+
this.constructorId = 0x22567115;
|
|
80562
|
+
this.subclassOfId = 0xc2c0ccc1;
|
|
80563
|
+
this._slots = ['query'];
|
|
80564
|
+
this.query = params.query;
|
|
80565
|
+
}
|
|
80566
|
+
static async read(_data, ..._args) {
|
|
80567
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
80568
|
+
let query = flags & (1 << 0) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
80569
|
+
return new Raw.channels.CheckSearchPostsFlood({ query: query });
|
|
80570
|
+
}
|
|
80571
|
+
write() {
|
|
80572
|
+
const b = new deps_js_1.BytesIO();
|
|
80573
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
80574
|
+
let flags = 0;
|
|
80575
|
+
flags |= this.query !== undefined ? 1 << 0 : 0;
|
|
80576
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
80577
|
+
if (this.query !== undefined) {
|
|
80578
|
+
b.write(index_js_1.Primitive.String.write(this.query));
|
|
80579
|
+
}
|
|
80580
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
80581
|
+
}
|
|
80582
|
+
}
|
|
80583
|
+
channels.CheckSearchPostsFlood = CheckSearchPostsFlood;
|
|
80336
80584
|
})(channels = Raw.channels || (Raw.channels = {}));
|
|
80337
80585
|
let payments;
|
|
80338
80586
|
(function (payments) {
|
|
@@ -83741,23 +83989,23 @@ var Raw;
|
|
|
83741
83989
|
class UpdateStarGiftPrice extends index_js_1.TLObject {
|
|
83742
83990
|
__response__;
|
|
83743
83991
|
stargift;
|
|
83744
|
-
|
|
83992
|
+
resellAmount;
|
|
83745
83993
|
constructor(params) {
|
|
83746
83994
|
super();
|
|
83747
83995
|
this.classType = 'functions';
|
|
83748
83996
|
this.className = 'payments.UpdateStarGiftPrice';
|
|
83749
|
-
this.constructorId =
|
|
83997
|
+
this.constructorId = 0xedbe6ccb;
|
|
83750
83998
|
this.subclassOfId = 0x8af52aac;
|
|
83751
|
-
this._slots = ['stargift', '
|
|
83999
|
+
this._slots = ['stargift', 'resellAmount'];
|
|
83752
84000
|
this.stargift = params.stargift;
|
|
83753
|
-
this.
|
|
84001
|
+
this.resellAmount = params.resellAmount;
|
|
83754
84002
|
}
|
|
83755
84003
|
static async read(_data, ..._args) {
|
|
83756
84004
|
let stargift = await index_js_1.TLObject.read(_data);
|
|
83757
|
-
let
|
|
84005
|
+
let resellAmount = await index_js_1.TLObject.read(_data);
|
|
83758
84006
|
return new Raw.payments.UpdateStarGiftPrice({
|
|
83759
84007
|
stargift: stargift,
|
|
83760
|
-
|
|
84008
|
+
resellAmount: resellAmount,
|
|
83761
84009
|
});
|
|
83762
84010
|
}
|
|
83763
84011
|
write() {
|
|
@@ -83766,8 +84014,8 @@ var Raw;
|
|
|
83766
84014
|
if (this.stargift !== undefined) {
|
|
83767
84015
|
b.write(this.stargift.write());
|
|
83768
84016
|
}
|
|
83769
|
-
if (this.
|
|
83770
|
-
b.write(
|
|
84017
|
+
if (this.resellAmount !== undefined) {
|
|
84018
|
+
b.write(this.resellAmount.write());
|
|
83771
84019
|
}
|
|
83772
84020
|
return deps_js_1.Buffer.from(b.buffer);
|
|
83773
84021
|
}
|
|
@@ -89396,6 +89644,56 @@ var Raw;
|
|
|
89396
89644
|
}
|
|
89397
89645
|
}
|
|
89398
89646
|
stories_1.CanSendStoryCount = CanSendStoryCount;
|
|
89647
|
+
class AlbumsNotModified extends index_js_1.TLObject {
|
|
89648
|
+
constructor() {
|
|
89649
|
+
super();
|
|
89650
|
+
this.classType = 'types';
|
|
89651
|
+
this.className = 'stories.AlbumsNotModified';
|
|
89652
|
+
this.constructorId = 0x564edaeb;
|
|
89653
|
+
this.subclassOfId = 0x5a73d39;
|
|
89654
|
+
this._slots = [];
|
|
89655
|
+
}
|
|
89656
|
+
static async read(_data, ..._args) {
|
|
89657
|
+
return new Raw.stories.AlbumsNotModified();
|
|
89658
|
+
}
|
|
89659
|
+
write() {
|
|
89660
|
+
const b = new deps_js_1.BytesIO();
|
|
89661
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
89662
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
89663
|
+
}
|
|
89664
|
+
}
|
|
89665
|
+
stories_1.AlbumsNotModified = AlbumsNotModified;
|
|
89666
|
+
class Albums extends index_js_1.TLObject {
|
|
89667
|
+
hash;
|
|
89668
|
+
albums;
|
|
89669
|
+
constructor(params) {
|
|
89670
|
+
super();
|
|
89671
|
+
this.classType = 'types';
|
|
89672
|
+
this.className = 'stories.Albums';
|
|
89673
|
+
this.constructorId = 0xc3987a3a;
|
|
89674
|
+
this.subclassOfId = 0x5a73d39;
|
|
89675
|
+
this._slots = ['hash', 'albums'];
|
|
89676
|
+
this.hash = params.hash;
|
|
89677
|
+
this.albums = params.albums;
|
|
89678
|
+
}
|
|
89679
|
+
static async read(_data, ..._args) {
|
|
89680
|
+
let hash = await index_js_1.Primitive.Long.read(_data);
|
|
89681
|
+
let albums = await index_js_1.TLObject.read(_data);
|
|
89682
|
+
return new Raw.stories.Albums({ hash: hash, albums: albums });
|
|
89683
|
+
}
|
|
89684
|
+
write() {
|
|
89685
|
+
const b = new deps_js_1.BytesIO();
|
|
89686
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
89687
|
+
if (this.hash !== undefined) {
|
|
89688
|
+
b.write(index_js_1.Primitive.Long.write(this.hash));
|
|
89689
|
+
}
|
|
89690
|
+
if (this.albums) {
|
|
89691
|
+
b.write(index_js_1.Primitive.Vector.write(this.albums));
|
|
89692
|
+
}
|
|
89693
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
89694
|
+
}
|
|
89695
|
+
}
|
|
89696
|
+
stories_1.Albums = Albums;
|
|
89399
89697
|
class CanSendStory extends index_js_1.TLObject {
|
|
89400
89698
|
__response__;
|
|
89401
89699
|
peer;
|
|
@@ -89437,11 +89735,12 @@ var Raw;
|
|
|
89437
89735
|
period;
|
|
89438
89736
|
fwdFromId;
|
|
89439
89737
|
fwdFromStory;
|
|
89738
|
+
albums;
|
|
89440
89739
|
constructor(params) {
|
|
89441
89740
|
super();
|
|
89442
89741
|
this.classType = 'functions';
|
|
89443
89742
|
this.className = 'stories.SendStory';
|
|
89444
|
-
this.constructorId =
|
|
89743
|
+
this.constructorId = 0x737fc2ec;
|
|
89445
89744
|
this.subclassOfId = 0x8af52aac;
|
|
89446
89745
|
this._slots = [
|
|
89447
89746
|
'pinned',
|
|
@@ -89457,6 +89756,7 @@ var Raw;
|
|
|
89457
89756
|
'period',
|
|
89458
89757
|
'fwdFromId',
|
|
89459
89758
|
'fwdFromStory',
|
|
89759
|
+
'albums',
|
|
89460
89760
|
];
|
|
89461
89761
|
this.pinned = params.pinned;
|
|
89462
89762
|
this.noforwards = params.noforwards;
|
|
@@ -89471,6 +89771,7 @@ var Raw;
|
|
|
89471
89771
|
this.period = params.period;
|
|
89472
89772
|
this.fwdFromId = params.fwdFromId;
|
|
89473
89773
|
this.fwdFromStory = params.fwdFromStory;
|
|
89774
|
+
this.albums = params.albums;
|
|
89474
89775
|
}
|
|
89475
89776
|
static async read(_data, ..._args) {
|
|
89476
89777
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -89487,6 +89788,7 @@ var Raw;
|
|
|
89487
89788
|
let period = flags & (1 << 3) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
89488
89789
|
let fwdFromId = flags & (1 << 6) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
89489
89790
|
let fwdFromStory = flags & (1 << 6) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
89791
|
+
let albums = flags & (1 << 8) ? await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int) : [];
|
|
89490
89792
|
return new Raw.stories.SendStory({
|
|
89491
89793
|
pinned: pinned,
|
|
89492
89794
|
noforwards: noforwards,
|
|
@@ -89501,6 +89803,7 @@ var Raw;
|
|
|
89501
89803
|
period: period,
|
|
89502
89804
|
fwdFromId: fwdFromId,
|
|
89503
89805
|
fwdFromStory: fwdFromStory,
|
|
89806
|
+
albums: albums,
|
|
89504
89807
|
});
|
|
89505
89808
|
}
|
|
89506
89809
|
write() {
|
|
@@ -89516,6 +89819,7 @@ var Raw;
|
|
|
89516
89819
|
flags |= this.period !== undefined ? 1 << 3 : 0;
|
|
89517
89820
|
flags |= this.fwdFromId !== undefined ? 1 << 6 : 0;
|
|
89518
89821
|
flags |= this.fwdFromStory !== undefined ? 1 << 6 : 0;
|
|
89822
|
+
flags |= this.albums ? 1 << 8 : 0;
|
|
89519
89823
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
89520
89824
|
if (this.peer !== undefined) {
|
|
89521
89825
|
b.write(this.peer.write());
|
|
@@ -89547,6 +89851,9 @@ var Raw;
|
|
|
89547
89851
|
if (this.fwdFromStory !== undefined) {
|
|
89548
89852
|
b.write(index_js_1.Primitive.Int.write(this.fwdFromStory));
|
|
89549
89853
|
}
|
|
89854
|
+
if (this.albums) {
|
|
89855
|
+
b.write(index_js_1.Primitive.Vector.write(this.albums, index_js_1.Primitive.Int));
|
|
89856
|
+
}
|
|
89550
89857
|
return deps_js_1.Buffer.from(b.buffer);
|
|
89551
89858
|
}
|
|
89552
89859
|
}
|
|
@@ -90492,6 +90799,259 @@ var Raw;
|
|
|
90492
90799
|
}
|
|
90493
90800
|
}
|
|
90494
90801
|
stories_1.SearchPosts = SearchPosts;
|
|
90802
|
+
class CreateAlbum extends index_js_1.TLObject {
|
|
90803
|
+
__response__;
|
|
90804
|
+
peer;
|
|
90805
|
+
title;
|
|
90806
|
+
stories;
|
|
90807
|
+
constructor(params) {
|
|
90808
|
+
super();
|
|
90809
|
+
this.classType = 'functions';
|
|
90810
|
+
this.className = 'stories.CreateAlbum';
|
|
90811
|
+
this.constructorId = 0xa36396e5;
|
|
90812
|
+
this.subclassOfId = 0x7c8c5ea2;
|
|
90813
|
+
this._slots = ['peer', 'title', 'stories'];
|
|
90814
|
+
this.peer = params.peer;
|
|
90815
|
+
this.title = params.title;
|
|
90816
|
+
this.stories = params.stories;
|
|
90817
|
+
}
|
|
90818
|
+
static async read(_data, ..._args) {
|
|
90819
|
+
let peer = await index_js_1.TLObject.read(_data);
|
|
90820
|
+
let title = await index_js_1.Primitive.String.read(_data);
|
|
90821
|
+
let stories = await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int);
|
|
90822
|
+
return new Raw.stories.CreateAlbum({ peer: peer, title: title, stories: stories });
|
|
90823
|
+
}
|
|
90824
|
+
write() {
|
|
90825
|
+
const b = new deps_js_1.BytesIO();
|
|
90826
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
90827
|
+
if (this.peer !== undefined) {
|
|
90828
|
+
b.write(this.peer.write());
|
|
90829
|
+
}
|
|
90830
|
+
if (this.title !== undefined) {
|
|
90831
|
+
b.write(index_js_1.Primitive.String.write(this.title));
|
|
90832
|
+
}
|
|
90833
|
+
if (this.stories) {
|
|
90834
|
+
b.write(index_js_1.Primitive.Vector.write(this.stories, index_js_1.Primitive.Int));
|
|
90835
|
+
}
|
|
90836
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
90837
|
+
}
|
|
90838
|
+
}
|
|
90839
|
+
stories_1.CreateAlbum = CreateAlbum;
|
|
90840
|
+
class UpdateAlbum extends index_js_1.TLObject {
|
|
90841
|
+
__response__;
|
|
90842
|
+
peer;
|
|
90843
|
+
albumId;
|
|
90844
|
+
title;
|
|
90845
|
+
deleteStories;
|
|
90846
|
+
addStories;
|
|
90847
|
+
order;
|
|
90848
|
+
constructor(params) {
|
|
90849
|
+
super();
|
|
90850
|
+
this.classType = 'functions';
|
|
90851
|
+
this.className = 'stories.UpdateAlbum';
|
|
90852
|
+
this.constructorId = 0x5e5259b6;
|
|
90853
|
+
this.subclassOfId = 0x7c8c5ea2;
|
|
90854
|
+
this._slots = ['peer', 'albumId', 'title', 'deleteStories', 'addStories', 'order'];
|
|
90855
|
+
this.peer = params.peer;
|
|
90856
|
+
this.albumId = params.albumId;
|
|
90857
|
+
this.title = params.title;
|
|
90858
|
+
this.deleteStories = params.deleteStories;
|
|
90859
|
+
this.addStories = params.addStories;
|
|
90860
|
+
this.order = params.order;
|
|
90861
|
+
}
|
|
90862
|
+
static async read(_data, ..._args) {
|
|
90863
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
90864
|
+
let peer = await index_js_1.TLObject.read(_data);
|
|
90865
|
+
let albumId = await index_js_1.Primitive.Int.read(_data);
|
|
90866
|
+
let title = flags & (1 << 0) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
90867
|
+
let deleteStories = flags & (1 << 1) ? await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int) : [];
|
|
90868
|
+
let addStories = flags & (1 << 2) ? await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int) : [];
|
|
90869
|
+
let order = flags & (1 << 3) ? await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int) : [];
|
|
90870
|
+
return new Raw.stories.UpdateAlbum({
|
|
90871
|
+
peer: peer,
|
|
90872
|
+
albumId: albumId,
|
|
90873
|
+
title: title,
|
|
90874
|
+
deleteStories: deleteStories,
|
|
90875
|
+
addStories: addStories,
|
|
90876
|
+
order: order,
|
|
90877
|
+
});
|
|
90878
|
+
}
|
|
90879
|
+
write() {
|
|
90880
|
+
const b = new deps_js_1.BytesIO();
|
|
90881
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
90882
|
+
let flags = 0;
|
|
90883
|
+
flags |= this.title !== undefined ? 1 << 0 : 0;
|
|
90884
|
+
flags |= this.deleteStories ? 1 << 1 : 0;
|
|
90885
|
+
flags |= this.addStories ? 1 << 2 : 0;
|
|
90886
|
+
flags |= this.order ? 1 << 3 : 0;
|
|
90887
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
90888
|
+
if (this.peer !== undefined) {
|
|
90889
|
+
b.write(this.peer.write());
|
|
90890
|
+
}
|
|
90891
|
+
if (this.albumId !== undefined) {
|
|
90892
|
+
b.write(index_js_1.Primitive.Int.write(this.albumId));
|
|
90893
|
+
}
|
|
90894
|
+
if (this.title !== undefined) {
|
|
90895
|
+
b.write(index_js_1.Primitive.String.write(this.title));
|
|
90896
|
+
}
|
|
90897
|
+
if (this.deleteStories) {
|
|
90898
|
+
b.write(index_js_1.Primitive.Vector.write(this.deleteStories, index_js_1.Primitive.Int));
|
|
90899
|
+
}
|
|
90900
|
+
if (this.addStories) {
|
|
90901
|
+
b.write(index_js_1.Primitive.Vector.write(this.addStories, index_js_1.Primitive.Int));
|
|
90902
|
+
}
|
|
90903
|
+
if (this.order) {
|
|
90904
|
+
b.write(index_js_1.Primitive.Vector.write(this.order, index_js_1.Primitive.Int));
|
|
90905
|
+
}
|
|
90906
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
90907
|
+
}
|
|
90908
|
+
}
|
|
90909
|
+
stories_1.UpdateAlbum = UpdateAlbum;
|
|
90910
|
+
class ReorderAlbums extends index_js_1.TLObject {
|
|
90911
|
+
__response__;
|
|
90912
|
+
peer;
|
|
90913
|
+
order;
|
|
90914
|
+
constructor(params) {
|
|
90915
|
+
super();
|
|
90916
|
+
this.classType = 'functions';
|
|
90917
|
+
this.className = 'stories.ReorderAlbums';
|
|
90918
|
+
this.constructorId = 0x8535fbd9;
|
|
90919
|
+
this.subclassOfId = 0xf5b399ac;
|
|
90920
|
+
this._slots = ['peer', 'order'];
|
|
90921
|
+
this.peer = params.peer;
|
|
90922
|
+
this.order = params.order;
|
|
90923
|
+
}
|
|
90924
|
+
static async read(_data, ..._args) {
|
|
90925
|
+
let peer = await index_js_1.TLObject.read(_data);
|
|
90926
|
+
let order = await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int);
|
|
90927
|
+
return new Raw.stories.ReorderAlbums({ peer: peer, order: order });
|
|
90928
|
+
}
|
|
90929
|
+
write() {
|
|
90930
|
+
const b = new deps_js_1.BytesIO();
|
|
90931
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
90932
|
+
if (this.peer !== undefined) {
|
|
90933
|
+
b.write(this.peer.write());
|
|
90934
|
+
}
|
|
90935
|
+
if (this.order) {
|
|
90936
|
+
b.write(index_js_1.Primitive.Vector.write(this.order, index_js_1.Primitive.Int));
|
|
90937
|
+
}
|
|
90938
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
90939
|
+
}
|
|
90940
|
+
}
|
|
90941
|
+
stories_1.ReorderAlbums = ReorderAlbums;
|
|
90942
|
+
class DeleteAlbum extends index_js_1.TLObject {
|
|
90943
|
+
__response__;
|
|
90944
|
+
peer;
|
|
90945
|
+
albumId;
|
|
90946
|
+
constructor(params) {
|
|
90947
|
+
super();
|
|
90948
|
+
this.classType = 'functions';
|
|
90949
|
+
this.className = 'stories.DeleteAlbum';
|
|
90950
|
+
this.constructorId = 0x8d3456d0;
|
|
90951
|
+
this.subclassOfId = 0xf5b399ac;
|
|
90952
|
+
this._slots = ['peer', 'albumId'];
|
|
90953
|
+
this.peer = params.peer;
|
|
90954
|
+
this.albumId = params.albumId;
|
|
90955
|
+
}
|
|
90956
|
+
static async read(_data, ..._args) {
|
|
90957
|
+
let peer = await index_js_1.TLObject.read(_data);
|
|
90958
|
+
let albumId = await index_js_1.Primitive.Int.read(_data);
|
|
90959
|
+
return new Raw.stories.DeleteAlbum({ peer: peer, albumId: albumId });
|
|
90960
|
+
}
|
|
90961
|
+
write() {
|
|
90962
|
+
const b = new deps_js_1.BytesIO();
|
|
90963
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
90964
|
+
if (this.peer !== undefined) {
|
|
90965
|
+
b.write(this.peer.write());
|
|
90966
|
+
}
|
|
90967
|
+
if (this.albumId !== undefined) {
|
|
90968
|
+
b.write(index_js_1.Primitive.Int.write(this.albumId));
|
|
90969
|
+
}
|
|
90970
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
90971
|
+
}
|
|
90972
|
+
}
|
|
90973
|
+
stories_1.DeleteAlbum = DeleteAlbum;
|
|
90974
|
+
class GetAlbums extends index_js_1.TLObject {
|
|
90975
|
+
__response__;
|
|
90976
|
+
peer;
|
|
90977
|
+
hash;
|
|
90978
|
+
constructor(params) {
|
|
90979
|
+
super();
|
|
90980
|
+
this.classType = 'functions';
|
|
90981
|
+
this.className = 'stories.GetAlbums';
|
|
90982
|
+
this.constructorId = 0x25b3eac7;
|
|
90983
|
+
this.subclassOfId = 0x5a73d39;
|
|
90984
|
+
this._slots = ['peer', 'hash'];
|
|
90985
|
+
this.peer = params.peer;
|
|
90986
|
+
this.hash = params.hash;
|
|
90987
|
+
}
|
|
90988
|
+
static async read(_data, ..._args) {
|
|
90989
|
+
let peer = await index_js_1.TLObject.read(_data);
|
|
90990
|
+
let hash = await index_js_1.Primitive.Long.read(_data);
|
|
90991
|
+
return new Raw.stories.GetAlbums({ peer: peer, hash: hash });
|
|
90992
|
+
}
|
|
90993
|
+
write() {
|
|
90994
|
+
const b = new deps_js_1.BytesIO();
|
|
90995
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
90996
|
+
if (this.peer !== undefined) {
|
|
90997
|
+
b.write(this.peer.write());
|
|
90998
|
+
}
|
|
90999
|
+
if (this.hash !== undefined) {
|
|
91000
|
+
b.write(index_js_1.Primitive.Long.write(this.hash));
|
|
91001
|
+
}
|
|
91002
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
91003
|
+
}
|
|
91004
|
+
}
|
|
91005
|
+
stories_1.GetAlbums = GetAlbums;
|
|
91006
|
+
class GetAlbumStories extends index_js_1.TLObject {
|
|
91007
|
+
__response__;
|
|
91008
|
+
peer;
|
|
91009
|
+
albumId;
|
|
91010
|
+
offset;
|
|
91011
|
+
limit;
|
|
91012
|
+
constructor(params) {
|
|
91013
|
+
super();
|
|
91014
|
+
this.classType = 'functions';
|
|
91015
|
+
this.className = 'stories.GetAlbumStories';
|
|
91016
|
+
this.constructorId = 0xac806d61;
|
|
91017
|
+
this.subclassOfId = 0x251c0c2c;
|
|
91018
|
+
this._slots = ['peer', 'albumId', 'offset', 'limit'];
|
|
91019
|
+
this.peer = params.peer;
|
|
91020
|
+
this.albumId = params.albumId;
|
|
91021
|
+
this.offset = params.offset;
|
|
91022
|
+
this.limit = params.limit;
|
|
91023
|
+
}
|
|
91024
|
+
static async read(_data, ..._args) {
|
|
91025
|
+
let peer = await index_js_1.TLObject.read(_data);
|
|
91026
|
+
let albumId = await index_js_1.Primitive.Int.read(_data);
|
|
91027
|
+
let offset = await index_js_1.Primitive.Int.read(_data);
|
|
91028
|
+
let limit = await index_js_1.Primitive.Int.read(_data);
|
|
91029
|
+
return new Raw.stories.GetAlbumStories({
|
|
91030
|
+
peer: peer,
|
|
91031
|
+
albumId: albumId,
|
|
91032
|
+
offset: offset,
|
|
91033
|
+
limit: limit,
|
|
91034
|
+
});
|
|
91035
|
+
}
|
|
91036
|
+
write() {
|
|
91037
|
+
const b = new deps_js_1.BytesIO();
|
|
91038
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
91039
|
+
if (this.peer !== undefined) {
|
|
91040
|
+
b.write(this.peer.write());
|
|
91041
|
+
}
|
|
91042
|
+
if (this.albumId !== undefined) {
|
|
91043
|
+
b.write(index_js_1.Primitive.Int.write(this.albumId));
|
|
91044
|
+
}
|
|
91045
|
+
if (this.offset !== undefined) {
|
|
91046
|
+
b.write(index_js_1.Primitive.Int.write(this.offset));
|
|
91047
|
+
}
|
|
91048
|
+
if (this.limit !== undefined) {
|
|
91049
|
+
b.write(index_js_1.Primitive.Int.write(this.limit));
|
|
91050
|
+
}
|
|
91051
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
91052
|
+
}
|
|
91053
|
+
}
|
|
91054
|
+
stories_1.GetAlbumStories = GetAlbumStories;
|
|
90495
91055
|
})(stories = Raw.stories || (Raw.stories = {}));
|
|
90496
91056
|
let premium;
|
|
90497
91057
|
(function (premium) {
|