@tgsnake/skema 1.6.0 → 1.9.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/LICENSE +0 -0
- package/README.md +1 -1
- package/dist/errors/exceptions/All.d.ts +74 -1
- package/dist/errors/exceptions/All.js +74 -1
- package/dist/errors/exceptions/BadRequest400.d.ts +232 -0
- package/dist/errors/exceptions/BadRequest400.js +311 -20
- package/dist/errors/exceptions/Flood420.d.ts +4 -0
- package/dist/errors/exceptions/Flood420.js +6 -1
- package/dist/errors/exceptions/Forbidden403.d.ts +20 -0
- package/dist/errors/exceptions/Forbidden403.js +27 -2
- package/dist/errors/exceptions/InternalServerError500.d.ts +4 -0
- package/dist/errors/exceptions/InternalServerError500.js +6 -1
- package/dist/errors/exceptions/NotAcceptable406.d.ts +28 -0
- package/dist/errors/exceptions/NotAcceptable406.js +37 -2
- package/dist/errors/exceptions/NotFound404.d.ts +4 -0
- package/dist/errors/exceptions/NotFound404.js +6 -1
- package/dist/raw/All.d.ts +79 -37
- package/dist/raw/All.js +79 -37
- package/dist/raw/Raw.d.ts +548 -20
- package/dist/raw/Raw.js +1966 -141
- 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 = 222;
|
|
9
9
|
Raw.HighestSCLayer = 144;
|
|
10
10
|
class ResPQ extends index_js_1.TLObject {
|
|
11
11
|
nonce;
|
|
@@ -3263,6 +3263,47 @@ var Raw;
|
|
|
3263
3263
|
}
|
|
3264
3264
|
}
|
|
3265
3265
|
Raw.InputMediaTodo = InputMediaTodo;
|
|
3266
|
+
class InputMediaStakeDice extends index_js_1.TLObject {
|
|
3267
|
+
gameHash;
|
|
3268
|
+
tonAmount;
|
|
3269
|
+
clientSeed;
|
|
3270
|
+
constructor(params) {
|
|
3271
|
+
super();
|
|
3272
|
+
this.classType = 'types';
|
|
3273
|
+
this.className = 'InputMediaStakeDice';
|
|
3274
|
+
this.constructorId = 0xf3a9244a;
|
|
3275
|
+
this.subclassOfId = 0xfaf846f4;
|
|
3276
|
+
this._slots = ['gameHash', 'tonAmount', 'clientSeed'];
|
|
3277
|
+
this.gameHash = params.gameHash;
|
|
3278
|
+
this.tonAmount = params.tonAmount;
|
|
3279
|
+
this.clientSeed = params.clientSeed;
|
|
3280
|
+
}
|
|
3281
|
+
static async read(_data, ..._args) {
|
|
3282
|
+
let gameHash = await index_js_1.Primitive.String.read(_data);
|
|
3283
|
+
let tonAmount = await index_js_1.Primitive.Long.read(_data);
|
|
3284
|
+
let clientSeed = await index_js_1.Primitive.Bytes.read(_data);
|
|
3285
|
+
return new Raw.InputMediaStakeDice({
|
|
3286
|
+
gameHash: gameHash,
|
|
3287
|
+
tonAmount: tonAmount,
|
|
3288
|
+
clientSeed: clientSeed,
|
|
3289
|
+
});
|
|
3290
|
+
}
|
|
3291
|
+
write() {
|
|
3292
|
+
const b = new deps_js_1.BytesIO();
|
|
3293
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
3294
|
+
if (this.gameHash !== undefined) {
|
|
3295
|
+
b.write(index_js_1.Primitive.String.write(this.gameHash));
|
|
3296
|
+
}
|
|
3297
|
+
if (this.tonAmount !== undefined) {
|
|
3298
|
+
b.write(index_js_1.Primitive.Long.write(this.tonAmount));
|
|
3299
|
+
}
|
|
3300
|
+
if (this.clientSeed !== undefined) {
|
|
3301
|
+
b.write(index_js_1.Primitive.Bytes.write(this.clientSeed));
|
|
3302
|
+
}
|
|
3303
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
3304
|
+
}
|
|
3305
|
+
}
|
|
3306
|
+
Raw.InputMediaStakeDice = InputMediaStakeDice;
|
|
3266
3307
|
class InputChatPhotoEmpty extends index_js_1.TLObject {
|
|
3267
3308
|
constructor() {
|
|
3268
3309
|
super();
|
|
@@ -4021,6 +4062,7 @@ var Raw;
|
|
|
4021
4062
|
botBusiness;
|
|
4022
4063
|
botHasMainApp;
|
|
4023
4064
|
botForumView;
|
|
4065
|
+
botForumCanManageTopics;
|
|
4024
4066
|
id;
|
|
4025
4067
|
accessHash;
|
|
4026
4068
|
firstName;
|
|
@@ -4074,6 +4116,7 @@ var Raw;
|
|
|
4074
4116
|
'botBusiness',
|
|
4075
4117
|
'botHasMainApp',
|
|
4076
4118
|
'botForumView',
|
|
4119
|
+
'botForumCanManageTopics',
|
|
4077
4120
|
'id',
|
|
4078
4121
|
'accessHash',
|
|
4079
4122
|
'firstName',
|
|
@@ -4121,6 +4164,7 @@ var Raw;
|
|
|
4121
4164
|
this.botBusiness = params.botBusiness;
|
|
4122
4165
|
this.botHasMainApp = params.botHasMainApp;
|
|
4123
4166
|
this.botForumView = params.botForumView;
|
|
4167
|
+
this.botForumCanManageTopics = params.botForumCanManageTopics;
|
|
4124
4168
|
this.id = params.id;
|
|
4125
4169
|
this.accessHash = params.accessHash;
|
|
4126
4170
|
this.firstName = params.firstName;
|
|
@@ -4171,6 +4215,7 @@ var Raw;
|
|
|
4171
4215
|
let botBusiness = flags2 & (1 << 11) ? true : false;
|
|
4172
4216
|
let botHasMainApp = flags2 & (1 << 13) ? true : false;
|
|
4173
4217
|
let botForumView = flags2 & (1 << 16) ? true : false;
|
|
4218
|
+
let botForumCanManageTopics = flags2 & (1 << 17) ? true : false;
|
|
4174
4219
|
let id = await index_js_1.Primitive.Long.read(_data);
|
|
4175
4220
|
let accessHash = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
4176
4221
|
let firstName = flags & (1 << 1) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
@@ -4218,6 +4263,7 @@ var Raw;
|
|
|
4218
4263
|
botBusiness: botBusiness,
|
|
4219
4264
|
botHasMainApp: botHasMainApp,
|
|
4220
4265
|
botForumView: botForumView,
|
|
4266
|
+
botForumCanManageTopics: botForumCanManageTopics,
|
|
4221
4267
|
id: id,
|
|
4222
4268
|
accessHash: accessHash,
|
|
4223
4269
|
firstName: firstName,
|
|
@@ -4284,6 +4330,7 @@ var Raw;
|
|
|
4284
4330
|
flags2 |= this.botBusiness ? 1 << 11 : 0;
|
|
4285
4331
|
flags2 |= this.botHasMainApp ? 1 << 13 : 0;
|
|
4286
4332
|
flags2 |= this.botForumView ? 1 << 16 : 0;
|
|
4333
|
+
flags2 |= this.botForumCanManageTopics ? 1 << 17 : 0;
|
|
4287
4334
|
flags2 |= this.usernames ? 1 << 0 : 0;
|
|
4288
4335
|
flags2 |= this.storiesMaxId !== undefined ? 1 << 5 : 0;
|
|
4289
4336
|
flags2 |= this.color !== undefined ? 1 << 8 : 0;
|
|
@@ -5151,6 +5198,7 @@ var Raw;
|
|
|
5151
5198
|
class ChannelForbidden extends index_js_1.TLObject {
|
|
5152
5199
|
broadcast;
|
|
5153
5200
|
megagroup;
|
|
5201
|
+
monoforum;
|
|
5154
5202
|
id;
|
|
5155
5203
|
accessHash;
|
|
5156
5204
|
title;
|
|
@@ -5161,9 +5209,18 @@ var Raw;
|
|
|
5161
5209
|
this.className = 'ChannelForbidden';
|
|
5162
5210
|
this.constructorId = 0x17d493d5;
|
|
5163
5211
|
this.subclassOfId = 0xc5af5d94;
|
|
5164
|
-
this._slots = [
|
|
5212
|
+
this._slots = [
|
|
5213
|
+
'broadcast',
|
|
5214
|
+
'megagroup',
|
|
5215
|
+
'monoforum',
|
|
5216
|
+
'id',
|
|
5217
|
+
'accessHash',
|
|
5218
|
+
'title',
|
|
5219
|
+
'untilDate',
|
|
5220
|
+
];
|
|
5165
5221
|
this.broadcast = params.broadcast;
|
|
5166
5222
|
this.megagroup = params.megagroup;
|
|
5223
|
+
this.monoforum = params.monoforum;
|
|
5167
5224
|
this.id = params.id;
|
|
5168
5225
|
this.accessHash = params.accessHash;
|
|
5169
5226
|
this.title = params.title;
|
|
@@ -5173,6 +5230,7 @@ var Raw;
|
|
|
5173
5230
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
5174
5231
|
let broadcast = flags & (1 << 5) ? true : false;
|
|
5175
5232
|
let megagroup = flags & (1 << 8) ? true : false;
|
|
5233
|
+
let monoforum = flags & (1 << 10) ? true : false;
|
|
5176
5234
|
let id = await index_js_1.Primitive.Long.read(_data);
|
|
5177
5235
|
let accessHash = await index_js_1.Primitive.Long.read(_data);
|
|
5178
5236
|
let title = await index_js_1.Primitive.String.read(_data);
|
|
@@ -5180,6 +5238,7 @@ var Raw;
|
|
|
5180
5238
|
return new Raw.ChannelForbidden({
|
|
5181
5239
|
broadcast: broadcast,
|
|
5182
5240
|
megagroup: megagroup,
|
|
5241
|
+
monoforum: monoforum,
|
|
5183
5242
|
id: id,
|
|
5184
5243
|
accessHash: accessHash,
|
|
5185
5244
|
title: title,
|
|
@@ -5192,6 +5251,7 @@ var Raw;
|
|
|
5192
5251
|
let flags = 0;
|
|
5193
5252
|
flags |= this.broadcast ? 1 << 5 : 0;
|
|
5194
5253
|
flags |= this.megagroup ? 1 << 8 : 0;
|
|
5254
|
+
flags |= this.monoforum ? 1 << 10 : 0;
|
|
5195
5255
|
flags |= this.untilDate !== undefined ? 1 << 16 : 0;
|
|
5196
5256
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
5197
5257
|
if (this.id !== undefined) {
|
|
@@ -6278,11 +6338,12 @@ var Raw;
|
|
|
6278
6338
|
paidMessageStars;
|
|
6279
6339
|
suggestedPost;
|
|
6280
6340
|
scheduleRepeatPeriod;
|
|
6341
|
+
summaryFromLanguage;
|
|
6281
6342
|
constructor(params) {
|
|
6282
6343
|
super();
|
|
6283
6344
|
this.classType = 'types';
|
|
6284
6345
|
this.className = 'Message';
|
|
6285
|
-
this.constructorId =
|
|
6346
|
+
this.constructorId = 0x9cb490e9;
|
|
6286
6347
|
this.subclassOfId = 0x790009e3;
|
|
6287
6348
|
this._slots = [
|
|
6288
6349
|
'out',
|
|
@@ -6330,6 +6391,7 @@ var Raw;
|
|
|
6330
6391
|
'paidMessageStars',
|
|
6331
6392
|
'suggestedPost',
|
|
6332
6393
|
'scheduleRepeatPeriod',
|
|
6394
|
+
'summaryFromLanguage',
|
|
6333
6395
|
];
|
|
6334
6396
|
this.out = params.out;
|
|
6335
6397
|
this.mentioned = params.mentioned;
|
|
@@ -6376,6 +6438,7 @@ var Raw;
|
|
|
6376
6438
|
this.paidMessageStars = params.paidMessageStars;
|
|
6377
6439
|
this.suggestedPost = params.suggestedPost;
|
|
6378
6440
|
this.scheduleRepeatPeriod = params.scheduleRepeatPeriod;
|
|
6441
|
+
this.summaryFromLanguage = params.summaryFromLanguage;
|
|
6379
6442
|
}
|
|
6380
6443
|
static async read(_data, ..._args) {
|
|
6381
6444
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -6425,6 +6488,7 @@ var Raw;
|
|
|
6425
6488
|
let paidMessageStars = flags2 & (1 << 6) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
6426
6489
|
let suggestedPost = flags2 & (1 << 7) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
6427
6490
|
let scheduleRepeatPeriod = flags2 & (1 << 10) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
6491
|
+
let summaryFromLanguage = flags2 & (1 << 11) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
6428
6492
|
return new Raw.Message({
|
|
6429
6493
|
out: out,
|
|
6430
6494
|
mentioned: mentioned,
|
|
@@ -6471,6 +6535,7 @@ var Raw;
|
|
|
6471
6535
|
paidMessageStars: paidMessageStars,
|
|
6472
6536
|
suggestedPost: suggestedPost,
|
|
6473
6537
|
scheduleRepeatPeriod: scheduleRepeatPeriod,
|
|
6538
|
+
summaryFromLanguage: summaryFromLanguage,
|
|
6474
6539
|
});
|
|
6475
6540
|
}
|
|
6476
6541
|
write() {
|
|
@@ -6520,6 +6585,7 @@ var Raw;
|
|
|
6520
6585
|
flags2 |= this.paidMessageStars !== undefined ? 1 << 6 : 0;
|
|
6521
6586
|
flags2 |= this.suggestedPost !== undefined ? 1 << 7 : 0;
|
|
6522
6587
|
flags2 |= this.scheduleRepeatPeriod !== undefined ? 1 << 10 : 0;
|
|
6588
|
+
flags2 |= this.summaryFromLanguage !== undefined ? 1 << 11 : 0;
|
|
6523
6589
|
b.write(index_js_1.Primitive.Int.write(flags2));
|
|
6524
6590
|
if (this.id !== undefined) {
|
|
6525
6591
|
b.write(index_js_1.Primitive.Int.write(this.id));
|
|
@@ -6611,6 +6677,9 @@ var Raw;
|
|
|
6611
6677
|
if (this.scheduleRepeatPeriod !== undefined) {
|
|
6612
6678
|
b.write(index_js_1.Primitive.Int.write(this.scheduleRepeatPeriod));
|
|
6613
6679
|
}
|
|
6680
|
+
if (this.summaryFromLanguage !== undefined) {
|
|
6681
|
+
b.write(index_js_1.Primitive.String.write(this.summaryFromLanguage));
|
|
6682
|
+
}
|
|
6614
6683
|
return deps_js_1.Buffer.from(b.buffer);
|
|
6615
6684
|
}
|
|
6616
6685
|
}
|
|
@@ -7342,30 +7411,44 @@ var Raw;
|
|
|
7342
7411
|
class MessageMediaDice extends index_js_1.TLObject {
|
|
7343
7412
|
value;
|
|
7344
7413
|
emoticon;
|
|
7414
|
+
gameOutcome;
|
|
7345
7415
|
constructor(params) {
|
|
7346
7416
|
super();
|
|
7347
7417
|
this.classType = 'types';
|
|
7348
7418
|
this.className = 'MessageMediaDice';
|
|
7349
|
-
this.constructorId =
|
|
7419
|
+
this.constructorId = 0x8cbec07;
|
|
7350
7420
|
this.subclassOfId = 0x476cbe32;
|
|
7351
|
-
this._slots = ['value', 'emoticon'];
|
|
7421
|
+
this._slots = ['value', 'emoticon', 'gameOutcome'];
|
|
7352
7422
|
this.value = params.value;
|
|
7353
7423
|
this.emoticon = params.emoticon;
|
|
7424
|
+
this.gameOutcome = params.gameOutcome;
|
|
7354
7425
|
}
|
|
7355
7426
|
static async read(_data, ..._args) {
|
|
7427
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
7356
7428
|
let value = await index_js_1.Primitive.Int.read(_data);
|
|
7357
7429
|
let emoticon = await index_js_1.Primitive.String.read(_data);
|
|
7358
|
-
|
|
7430
|
+
let gameOutcome = flags & (1 << 0) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
7431
|
+
return new Raw.MessageMediaDice({
|
|
7432
|
+
value: value,
|
|
7433
|
+
emoticon: emoticon,
|
|
7434
|
+
gameOutcome: gameOutcome,
|
|
7435
|
+
});
|
|
7359
7436
|
}
|
|
7360
7437
|
write() {
|
|
7361
7438
|
const b = new deps_js_1.BytesIO();
|
|
7362
7439
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
7440
|
+
let flags = 0;
|
|
7441
|
+
flags |= this.gameOutcome !== undefined ? 1 << 0 : 0;
|
|
7442
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
7363
7443
|
if (this.value !== undefined) {
|
|
7364
7444
|
b.write(index_js_1.Primitive.Int.write(this.value));
|
|
7365
7445
|
}
|
|
7366
7446
|
if (this.emoticon !== undefined) {
|
|
7367
7447
|
b.write(index_js_1.Primitive.String.write(this.emoticon));
|
|
7368
7448
|
}
|
|
7449
|
+
if (this.gameOutcome !== undefined) {
|
|
7450
|
+
b.write(this.gameOutcome.write());
|
|
7451
|
+
}
|
|
7369
7452
|
return deps_js_1.Buffer.from(b.buffer);
|
|
7370
7453
|
}
|
|
7371
7454
|
}
|
|
@@ -9454,11 +9537,12 @@ var Raw;
|
|
|
9454
9537
|
prepaidUpgradeHash;
|
|
9455
9538
|
giftMsgId;
|
|
9456
9539
|
toId;
|
|
9540
|
+
giftNum;
|
|
9457
9541
|
constructor(params) {
|
|
9458
9542
|
super();
|
|
9459
9543
|
this.classType = 'types';
|
|
9460
9544
|
this.className = 'MessageActionStarGift';
|
|
9461
|
-
this.constructorId =
|
|
9545
|
+
this.constructorId = 0xea2c31d3;
|
|
9462
9546
|
this.subclassOfId = 0x8680d126;
|
|
9463
9547
|
this._slots = [
|
|
9464
9548
|
'nameHidden',
|
|
@@ -9481,6 +9565,7 @@ var Raw;
|
|
|
9481
9565
|
'prepaidUpgradeHash',
|
|
9482
9566
|
'giftMsgId',
|
|
9483
9567
|
'toId',
|
|
9568
|
+
'giftNum',
|
|
9484
9569
|
];
|
|
9485
9570
|
this.nameHidden = params.nameHidden;
|
|
9486
9571
|
this.saved = params.saved;
|
|
@@ -9502,6 +9587,7 @@ var Raw;
|
|
|
9502
9587
|
this.prepaidUpgradeHash = params.prepaidUpgradeHash;
|
|
9503
9588
|
this.giftMsgId = params.giftMsgId;
|
|
9504
9589
|
this.toId = params.toId;
|
|
9590
|
+
this.giftNum = params.giftNum;
|
|
9505
9591
|
}
|
|
9506
9592
|
static async read(_data, ..._args) {
|
|
9507
9593
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -9525,6 +9611,7 @@ var Raw;
|
|
|
9525
9611
|
let prepaidUpgradeHash = flags & (1 << 14) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
9526
9612
|
let giftMsgId = flags & (1 << 15) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
9527
9613
|
let toId = flags & (1 << 18) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
9614
|
+
let giftNum = flags & (1 << 19) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
9528
9615
|
return new Raw.MessageActionStarGift({
|
|
9529
9616
|
nameHidden: nameHidden,
|
|
9530
9617
|
saved: saved,
|
|
@@ -9546,6 +9633,7 @@ var Raw;
|
|
|
9546
9633
|
prepaidUpgradeHash: prepaidUpgradeHash,
|
|
9547
9634
|
giftMsgId: giftMsgId,
|
|
9548
9635
|
toId: toId,
|
|
9636
|
+
giftNum: giftNum,
|
|
9549
9637
|
});
|
|
9550
9638
|
}
|
|
9551
9639
|
write() {
|
|
@@ -9571,6 +9659,7 @@ var Raw;
|
|
|
9571
9659
|
flags |= this.prepaidUpgradeHash !== undefined ? 1 << 14 : 0;
|
|
9572
9660
|
flags |= this.giftMsgId !== undefined ? 1 << 15 : 0;
|
|
9573
9661
|
flags |= this.toId !== undefined ? 1 << 18 : 0;
|
|
9662
|
+
flags |= this.giftNum !== undefined ? 1 << 19 : 0;
|
|
9574
9663
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
9575
9664
|
if (this.gift !== undefined) {
|
|
9576
9665
|
b.write(this.gift.write());
|
|
@@ -9605,6 +9694,9 @@ var Raw;
|
|
|
9605
9694
|
if (this.toId !== undefined) {
|
|
9606
9695
|
b.write(this.toId.write());
|
|
9607
9696
|
}
|
|
9697
|
+
if (this.giftNum !== undefined) {
|
|
9698
|
+
b.write(index_js_1.Primitive.Int.write(this.giftNum));
|
|
9699
|
+
}
|
|
9608
9700
|
return deps_js_1.Buffer.from(b.buffer);
|
|
9609
9701
|
}
|
|
9610
9702
|
}
|
|
@@ -9616,6 +9708,8 @@ var Raw;
|
|
|
9616
9708
|
refunded;
|
|
9617
9709
|
prepaidUpgrade;
|
|
9618
9710
|
assigned;
|
|
9711
|
+
fromOffer;
|
|
9712
|
+
craft;
|
|
9619
9713
|
gift;
|
|
9620
9714
|
canExportAt;
|
|
9621
9715
|
transferStars;
|
|
@@ -9626,11 +9720,12 @@ var Raw;
|
|
|
9626
9720
|
canTransferAt;
|
|
9627
9721
|
canResellAt;
|
|
9628
9722
|
dropOriginalDetailsStars;
|
|
9723
|
+
canCraftAt;
|
|
9629
9724
|
constructor(params) {
|
|
9630
9725
|
super();
|
|
9631
9726
|
this.classType = 'types';
|
|
9632
9727
|
this.className = 'MessageActionStarGiftUnique';
|
|
9633
|
-
this.constructorId =
|
|
9728
|
+
this.constructorId = 0xe6c31522;
|
|
9634
9729
|
this.subclassOfId = 0x8680d126;
|
|
9635
9730
|
this._slots = [
|
|
9636
9731
|
'upgrade',
|
|
@@ -9639,6 +9734,8 @@ var Raw;
|
|
|
9639
9734
|
'refunded',
|
|
9640
9735
|
'prepaidUpgrade',
|
|
9641
9736
|
'assigned',
|
|
9737
|
+
'fromOffer',
|
|
9738
|
+
'craft',
|
|
9642
9739
|
'gift',
|
|
9643
9740
|
'canExportAt',
|
|
9644
9741
|
'transferStars',
|
|
@@ -9649,6 +9746,7 @@ var Raw;
|
|
|
9649
9746
|
'canTransferAt',
|
|
9650
9747
|
'canResellAt',
|
|
9651
9748
|
'dropOriginalDetailsStars',
|
|
9749
|
+
'canCraftAt',
|
|
9652
9750
|
];
|
|
9653
9751
|
this.upgrade = params.upgrade;
|
|
9654
9752
|
this.transferred = params.transferred;
|
|
@@ -9656,6 +9754,8 @@ var Raw;
|
|
|
9656
9754
|
this.refunded = params.refunded;
|
|
9657
9755
|
this.prepaidUpgrade = params.prepaidUpgrade;
|
|
9658
9756
|
this.assigned = params.assigned;
|
|
9757
|
+
this.fromOffer = params.fromOffer;
|
|
9758
|
+
this.craft = params.craft;
|
|
9659
9759
|
this.gift = params.gift;
|
|
9660
9760
|
this.canExportAt = params.canExportAt;
|
|
9661
9761
|
this.transferStars = params.transferStars;
|
|
@@ -9666,6 +9766,7 @@ var Raw;
|
|
|
9666
9766
|
this.canTransferAt = params.canTransferAt;
|
|
9667
9767
|
this.canResellAt = params.canResellAt;
|
|
9668
9768
|
this.dropOriginalDetailsStars = params.dropOriginalDetailsStars;
|
|
9769
|
+
this.canCraftAt = params.canCraftAt;
|
|
9669
9770
|
}
|
|
9670
9771
|
static async read(_data, ..._args) {
|
|
9671
9772
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -9675,6 +9776,8 @@ var Raw;
|
|
|
9675
9776
|
let refunded = flags & (1 << 5) ? true : false;
|
|
9676
9777
|
let prepaidUpgrade = flags & (1 << 11) ? true : false;
|
|
9677
9778
|
let assigned = flags & (1 << 13) ? true : false;
|
|
9779
|
+
let fromOffer = flags & (1 << 14) ? true : false;
|
|
9780
|
+
let craft = flags & (1 << 16) ? true : false;
|
|
9678
9781
|
let gift = await index_js_1.TLObject.read(_data);
|
|
9679
9782
|
let canExportAt = flags & (1 << 3) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
9680
9783
|
let transferStars = flags & (1 << 4) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
@@ -9685,6 +9788,7 @@ var Raw;
|
|
|
9685
9788
|
let canTransferAt = flags & (1 << 9) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
9686
9789
|
let canResellAt = flags & (1 << 10) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
9687
9790
|
let dropOriginalDetailsStars = flags & (1 << 12) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
9791
|
+
let canCraftAt = flags & (1 << 15) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
9688
9792
|
return new Raw.MessageActionStarGiftUnique({
|
|
9689
9793
|
upgrade: upgrade,
|
|
9690
9794
|
transferred: transferred,
|
|
@@ -9692,6 +9796,8 @@ var Raw;
|
|
|
9692
9796
|
refunded: refunded,
|
|
9693
9797
|
prepaidUpgrade: prepaidUpgrade,
|
|
9694
9798
|
assigned: assigned,
|
|
9799
|
+
fromOffer: fromOffer,
|
|
9800
|
+
craft: craft,
|
|
9695
9801
|
gift: gift,
|
|
9696
9802
|
canExportAt: canExportAt,
|
|
9697
9803
|
transferStars: transferStars,
|
|
@@ -9702,6 +9808,7 @@ var Raw;
|
|
|
9702
9808
|
canTransferAt: canTransferAt,
|
|
9703
9809
|
canResellAt: canResellAt,
|
|
9704
9810
|
dropOriginalDetailsStars: dropOriginalDetailsStars,
|
|
9811
|
+
canCraftAt: canCraftAt,
|
|
9705
9812
|
});
|
|
9706
9813
|
}
|
|
9707
9814
|
write() {
|
|
@@ -9714,6 +9821,8 @@ var Raw;
|
|
|
9714
9821
|
flags |= this.refunded ? 1 << 5 : 0;
|
|
9715
9822
|
flags |= this.prepaidUpgrade ? 1 << 11 : 0;
|
|
9716
9823
|
flags |= this.assigned ? 1 << 13 : 0;
|
|
9824
|
+
flags |= this.fromOffer ? 1 << 14 : 0;
|
|
9825
|
+
flags |= this.craft ? 1 << 16 : 0;
|
|
9717
9826
|
flags |= this.canExportAt !== undefined ? 1 << 3 : 0;
|
|
9718
9827
|
flags |= this.transferStars !== undefined ? 1 << 4 : 0;
|
|
9719
9828
|
flags |= this.fromId !== undefined ? 1 << 6 : 0;
|
|
@@ -9723,6 +9832,7 @@ var Raw;
|
|
|
9723
9832
|
flags |= this.canTransferAt !== undefined ? 1 << 9 : 0;
|
|
9724
9833
|
flags |= this.canResellAt !== undefined ? 1 << 10 : 0;
|
|
9725
9834
|
flags |= this.dropOriginalDetailsStars !== undefined ? 1 << 12 : 0;
|
|
9835
|
+
flags |= this.canCraftAt !== undefined ? 1 << 15 : 0;
|
|
9726
9836
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
9727
9837
|
if (this.gift !== undefined) {
|
|
9728
9838
|
b.write(this.gift.write());
|
|
@@ -9754,6 +9864,9 @@ var Raw;
|
|
|
9754
9864
|
if (this.dropOriginalDetailsStars !== undefined) {
|
|
9755
9865
|
b.write(index_js_1.Primitive.Long.write(this.dropOriginalDetailsStars));
|
|
9756
9866
|
}
|
|
9867
|
+
if (this.canCraftAt !== undefined) {
|
|
9868
|
+
b.write(index_js_1.Primitive.Int.write(this.canCraftAt));
|
|
9869
|
+
}
|
|
9757
9870
|
return deps_js_1.Buffer.from(b.buffer);
|
|
9758
9871
|
}
|
|
9759
9872
|
}
|
|
@@ -10136,6 +10249,152 @@ var Raw;
|
|
|
10136
10249
|
}
|
|
10137
10250
|
}
|
|
10138
10251
|
Raw.MessageActionSuggestBirthday = MessageActionSuggestBirthday;
|
|
10252
|
+
class MessageActionStarGiftPurchaseOffer extends index_js_1.TLObject {
|
|
10253
|
+
accepted;
|
|
10254
|
+
declined;
|
|
10255
|
+
gift;
|
|
10256
|
+
price;
|
|
10257
|
+
expiresAt;
|
|
10258
|
+
constructor(params) {
|
|
10259
|
+
super();
|
|
10260
|
+
this.classType = 'types';
|
|
10261
|
+
this.className = 'MessageActionStarGiftPurchaseOffer';
|
|
10262
|
+
this.constructorId = 0x774278d4;
|
|
10263
|
+
this.subclassOfId = 0x8680d126;
|
|
10264
|
+
this._slots = ['accepted', 'declined', 'gift', 'price', 'expiresAt'];
|
|
10265
|
+
this.accepted = params.accepted;
|
|
10266
|
+
this.declined = params.declined;
|
|
10267
|
+
this.gift = params.gift;
|
|
10268
|
+
this.price = params.price;
|
|
10269
|
+
this.expiresAt = params.expiresAt;
|
|
10270
|
+
}
|
|
10271
|
+
static async read(_data, ..._args) {
|
|
10272
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
10273
|
+
let accepted = flags & (1 << 0) ? true : false;
|
|
10274
|
+
let declined = flags & (1 << 1) ? true : false;
|
|
10275
|
+
let gift = await index_js_1.TLObject.read(_data);
|
|
10276
|
+
let price = await index_js_1.TLObject.read(_data);
|
|
10277
|
+
let expiresAt = await index_js_1.Primitive.Int.read(_data);
|
|
10278
|
+
return new Raw.MessageActionStarGiftPurchaseOffer({
|
|
10279
|
+
accepted: accepted,
|
|
10280
|
+
declined: declined,
|
|
10281
|
+
gift: gift,
|
|
10282
|
+
price: price,
|
|
10283
|
+
expiresAt: expiresAt,
|
|
10284
|
+
});
|
|
10285
|
+
}
|
|
10286
|
+
write() {
|
|
10287
|
+
const b = new deps_js_1.BytesIO();
|
|
10288
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
10289
|
+
let flags = 0;
|
|
10290
|
+
flags |= this.accepted ? 1 << 0 : 0;
|
|
10291
|
+
flags |= this.declined ? 1 << 1 : 0;
|
|
10292
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
10293
|
+
if (this.gift !== undefined) {
|
|
10294
|
+
b.write(this.gift.write());
|
|
10295
|
+
}
|
|
10296
|
+
if (this.price !== undefined) {
|
|
10297
|
+
b.write(this.price.write());
|
|
10298
|
+
}
|
|
10299
|
+
if (this.expiresAt !== undefined) {
|
|
10300
|
+
b.write(index_js_1.Primitive.Int.write(this.expiresAt));
|
|
10301
|
+
}
|
|
10302
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
10303
|
+
}
|
|
10304
|
+
}
|
|
10305
|
+
Raw.MessageActionStarGiftPurchaseOffer = MessageActionStarGiftPurchaseOffer;
|
|
10306
|
+
class MessageActionStarGiftPurchaseOfferDeclined extends index_js_1.TLObject {
|
|
10307
|
+
expired;
|
|
10308
|
+
gift;
|
|
10309
|
+
price;
|
|
10310
|
+
constructor(params) {
|
|
10311
|
+
super();
|
|
10312
|
+
this.classType = 'types';
|
|
10313
|
+
this.className = 'MessageActionStarGiftPurchaseOfferDeclined';
|
|
10314
|
+
this.constructorId = 0x73ada76b;
|
|
10315
|
+
this.subclassOfId = 0x8680d126;
|
|
10316
|
+
this._slots = ['expired', 'gift', 'price'];
|
|
10317
|
+
this.expired = params.expired;
|
|
10318
|
+
this.gift = params.gift;
|
|
10319
|
+
this.price = params.price;
|
|
10320
|
+
}
|
|
10321
|
+
static async read(_data, ..._args) {
|
|
10322
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
10323
|
+
let expired = flags & (1 << 0) ? true : false;
|
|
10324
|
+
let gift = await index_js_1.TLObject.read(_data);
|
|
10325
|
+
let price = await index_js_1.TLObject.read(_data);
|
|
10326
|
+
return new Raw.MessageActionStarGiftPurchaseOfferDeclined({
|
|
10327
|
+
expired: expired,
|
|
10328
|
+
gift: gift,
|
|
10329
|
+
price: price,
|
|
10330
|
+
});
|
|
10331
|
+
}
|
|
10332
|
+
write() {
|
|
10333
|
+
const b = new deps_js_1.BytesIO();
|
|
10334
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
10335
|
+
let flags = 0;
|
|
10336
|
+
flags |= this.expired ? 1 << 0 : 0;
|
|
10337
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
10338
|
+
if (this.gift !== undefined) {
|
|
10339
|
+
b.write(this.gift.write());
|
|
10340
|
+
}
|
|
10341
|
+
if (this.price !== undefined) {
|
|
10342
|
+
b.write(this.price.write());
|
|
10343
|
+
}
|
|
10344
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
10345
|
+
}
|
|
10346
|
+
}
|
|
10347
|
+
Raw.MessageActionStarGiftPurchaseOfferDeclined = MessageActionStarGiftPurchaseOfferDeclined;
|
|
10348
|
+
class MessageActionNewCreatorPending extends index_js_1.TLObject {
|
|
10349
|
+
newCreatorId;
|
|
10350
|
+
constructor(params) {
|
|
10351
|
+
super();
|
|
10352
|
+
this.classType = 'types';
|
|
10353
|
+
this.className = 'MessageActionNewCreatorPending';
|
|
10354
|
+
this.constructorId = 0xb07ed085;
|
|
10355
|
+
this.subclassOfId = 0x8680d126;
|
|
10356
|
+
this._slots = ['newCreatorId'];
|
|
10357
|
+
this.newCreatorId = params.newCreatorId;
|
|
10358
|
+
}
|
|
10359
|
+
static async read(_data, ..._args) {
|
|
10360
|
+
let newCreatorId = await index_js_1.Primitive.Long.read(_data);
|
|
10361
|
+
return new Raw.MessageActionNewCreatorPending({ newCreatorId: newCreatorId });
|
|
10362
|
+
}
|
|
10363
|
+
write() {
|
|
10364
|
+
const b = new deps_js_1.BytesIO();
|
|
10365
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
10366
|
+
if (this.newCreatorId !== undefined) {
|
|
10367
|
+
b.write(index_js_1.Primitive.Long.write(this.newCreatorId));
|
|
10368
|
+
}
|
|
10369
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
10370
|
+
}
|
|
10371
|
+
}
|
|
10372
|
+
Raw.MessageActionNewCreatorPending = MessageActionNewCreatorPending;
|
|
10373
|
+
class MessageActionChangeCreator extends index_js_1.TLObject {
|
|
10374
|
+
newCreatorId;
|
|
10375
|
+
constructor(params) {
|
|
10376
|
+
super();
|
|
10377
|
+
this.classType = 'types';
|
|
10378
|
+
this.className = 'MessageActionChangeCreator';
|
|
10379
|
+
this.constructorId = 0xe188503b;
|
|
10380
|
+
this.subclassOfId = 0x8680d126;
|
|
10381
|
+
this._slots = ['newCreatorId'];
|
|
10382
|
+
this.newCreatorId = params.newCreatorId;
|
|
10383
|
+
}
|
|
10384
|
+
static async read(_data, ..._args) {
|
|
10385
|
+
let newCreatorId = await index_js_1.Primitive.Long.read(_data);
|
|
10386
|
+
return new Raw.MessageActionChangeCreator({ newCreatorId: newCreatorId });
|
|
10387
|
+
}
|
|
10388
|
+
write() {
|
|
10389
|
+
const b = new deps_js_1.BytesIO();
|
|
10390
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
10391
|
+
if (this.newCreatorId !== undefined) {
|
|
10392
|
+
b.write(index_js_1.Primitive.Long.write(this.newCreatorId));
|
|
10393
|
+
}
|
|
10394
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
10395
|
+
}
|
|
10396
|
+
}
|
|
10397
|
+
Raw.MessageActionChangeCreator = MessageActionChangeCreator;
|
|
10139
10398
|
class Dialog extends index_js_1.TLObject {
|
|
10140
10399
|
pinned;
|
|
10141
10400
|
unreadMark;
|
|
@@ -18171,6 +18430,50 @@ var Raw;
|
|
|
18171
18430
|
}
|
|
18172
18431
|
}
|
|
18173
18432
|
Raw.UpdateStarGiftAuctionUserState = UpdateStarGiftAuctionUserState;
|
|
18433
|
+
class UpdateEmojiGameInfo extends index_js_1.TLObject {
|
|
18434
|
+
info;
|
|
18435
|
+
constructor(params) {
|
|
18436
|
+
super();
|
|
18437
|
+
this.classType = 'types';
|
|
18438
|
+
this.className = 'UpdateEmojiGameInfo';
|
|
18439
|
+
this.constructorId = 0xfb9c547a;
|
|
18440
|
+
this.subclassOfId = 0x9f89304e;
|
|
18441
|
+
this._slots = ['info'];
|
|
18442
|
+
this.info = params.info;
|
|
18443
|
+
}
|
|
18444
|
+
static async read(_data, ..._args) {
|
|
18445
|
+
let info = await index_js_1.TLObject.read(_data);
|
|
18446
|
+
return new Raw.UpdateEmojiGameInfo({ info: info });
|
|
18447
|
+
}
|
|
18448
|
+
write() {
|
|
18449
|
+
const b = new deps_js_1.BytesIO();
|
|
18450
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
18451
|
+
if (this.info !== undefined) {
|
|
18452
|
+
b.write(this.info.write());
|
|
18453
|
+
}
|
|
18454
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
18455
|
+
}
|
|
18456
|
+
}
|
|
18457
|
+
Raw.UpdateEmojiGameInfo = UpdateEmojiGameInfo;
|
|
18458
|
+
class UpdateStarGiftCraftFail extends index_js_1.TLObject {
|
|
18459
|
+
constructor() {
|
|
18460
|
+
super();
|
|
18461
|
+
this.classType = 'types';
|
|
18462
|
+
this.className = 'UpdateStarGiftCraftFail';
|
|
18463
|
+
this.constructorId = 0xac072444;
|
|
18464
|
+
this.subclassOfId = 0x9f89304e;
|
|
18465
|
+
this._slots = [];
|
|
18466
|
+
}
|
|
18467
|
+
static async read(_data, ..._args) {
|
|
18468
|
+
return new Raw.UpdateStarGiftCraftFail();
|
|
18469
|
+
}
|
|
18470
|
+
write() {
|
|
18471
|
+
const b = new deps_js_1.BytesIO();
|
|
18472
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
18473
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
18474
|
+
}
|
|
18475
|
+
}
|
|
18476
|
+
Raw.UpdateStarGiftCraftFail = UpdateStarGiftCraftFail;
|
|
18174
18477
|
class UpdatesTooLong extends index_js_1.TLObject {
|
|
18175
18478
|
constructor() {
|
|
18176
18479
|
super();
|
|
@@ -23432,23 +23735,33 @@ var Raw;
|
|
|
23432
23735
|
}
|
|
23433
23736
|
Raw.BotInfo = BotInfo;
|
|
23434
23737
|
class KeyboardButton extends index_js_1.TLObject {
|
|
23738
|
+
style;
|
|
23435
23739
|
text;
|
|
23436
23740
|
constructor(params) {
|
|
23437
23741
|
super();
|
|
23438
23742
|
this.classType = 'types';
|
|
23439
23743
|
this.className = 'KeyboardButton';
|
|
23440
|
-
this.constructorId =
|
|
23744
|
+
this.constructorId = 0x7d170cff;
|
|
23441
23745
|
this.subclassOfId = 0xbad74a3;
|
|
23442
|
-
this._slots = ['text'];
|
|
23746
|
+
this._slots = ['style', 'text'];
|
|
23747
|
+
this.style = params.style;
|
|
23443
23748
|
this.text = params.text;
|
|
23444
23749
|
}
|
|
23445
23750
|
static async read(_data, ..._args) {
|
|
23751
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
23752
|
+
let style = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
23446
23753
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23447
|
-
return new Raw.KeyboardButton({ text: text });
|
|
23754
|
+
return new Raw.KeyboardButton({ style: style, text: text });
|
|
23448
23755
|
}
|
|
23449
23756
|
write() {
|
|
23450
23757
|
const b = new deps_js_1.BytesIO();
|
|
23451
23758
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
23759
|
+
let flags = 0;
|
|
23760
|
+
flags |= this.style !== undefined ? 1 << 10 : 0;
|
|
23761
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
23762
|
+
if (this.style !== undefined) {
|
|
23763
|
+
b.write(this.style.write());
|
|
23764
|
+
}
|
|
23452
23765
|
if (this.text !== undefined) {
|
|
23453
23766
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23454
23767
|
}
|
|
@@ -23457,26 +23770,36 @@ var Raw;
|
|
|
23457
23770
|
}
|
|
23458
23771
|
Raw.KeyboardButton = KeyboardButton;
|
|
23459
23772
|
class KeyboardButtonUrl extends index_js_1.TLObject {
|
|
23773
|
+
style;
|
|
23460
23774
|
text;
|
|
23461
23775
|
url;
|
|
23462
23776
|
constructor(params) {
|
|
23463
23777
|
super();
|
|
23464
23778
|
this.classType = 'types';
|
|
23465
23779
|
this.className = 'KeyboardButtonUrl';
|
|
23466
|
-
this.constructorId =
|
|
23780
|
+
this.constructorId = 0xd80c25ec;
|
|
23467
23781
|
this.subclassOfId = 0xbad74a3;
|
|
23468
|
-
this._slots = ['text', 'url'];
|
|
23782
|
+
this._slots = ['style', 'text', 'url'];
|
|
23783
|
+
this.style = params.style;
|
|
23469
23784
|
this.text = params.text;
|
|
23470
23785
|
this.url = params.url;
|
|
23471
23786
|
}
|
|
23472
23787
|
static async read(_data, ..._args) {
|
|
23788
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
23789
|
+
let style = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
23473
23790
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23474
23791
|
let url = await index_js_1.Primitive.String.read(_data);
|
|
23475
|
-
return new Raw.KeyboardButtonUrl({ text: text, url: url });
|
|
23792
|
+
return new Raw.KeyboardButtonUrl({ style: style, text: text, url: url });
|
|
23476
23793
|
}
|
|
23477
23794
|
write() {
|
|
23478
23795
|
const b = new deps_js_1.BytesIO();
|
|
23479
23796
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
23797
|
+
let flags = 0;
|
|
23798
|
+
flags |= this.style !== undefined ? 1 << 10 : 0;
|
|
23799
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
23800
|
+
if (this.style !== undefined) {
|
|
23801
|
+
b.write(this.style.write());
|
|
23802
|
+
}
|
|
23480
23803
|
if (this.text !== undefined) {
|
|
23481
23804
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23482
23805
|
}
|
|
@@ -23489,26 +23812,30 @@ var Raw;
|
|
|
23489
23812
|
Raw.KeyboardButtonUrl = KeyboardButtonUrl;
|
|
23490
23813
|
class KeyboardButtonCallback extends index_js_1.TLObject {
|
|
23491
23814
|
requiresPassword;
|
|
23815
|
+
style;
|
|
23492
23816
|
text;
|
|
23493
23817
|
data;
|
|
23494
23818
|
constructor(params) {
|
|
23495
23819
|
super();
|
|
23496
23820
|
this.classType = 'types';
|
|
23497
23821
|
this.className = 'KeyboardButtonCallback';
|
|
23498
|
-
this.constructorId =
|
|
23822
|
+
this.constructorId = 0xe62bc960;
|
|
23499
23823
|
this.subclassOfId = 0xbad74a3;
|
|
23500
|
-
this._slots = ['requiresPassword', 'text', 'data'];
|
|
23824
|
+
this._slots = ['requiresPassword', 'style', 'text', 'data'];
|
|
23501
23825
|
this.requiresPassword = params.requiresPassword;
|
|
23826
|
+
this.style = params.style;
|
|
23502
23827
|
this.text = params.text;
|
|
23503
23828
|
this.data = params.data;
|
|
23504
23829
|
}
|
|
23505
23830
|
static async read(_data, ..._args) {
|
|
23506
23831
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
23507
23832
|
let requiresPassword = flags & (1 << 0) ? true : false;
|
|
23833
|
+
let style = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
23508
23834
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23509
23835
|
let data = await index_js_1.Primitive.Bytes.read(_data);
|
|
23510
23836
|
return new Raw.KeyboardButtonCallback({
|
|
23511
23837
|
requiresPassword: requiresPassword,
|
|
23838
|
+
style: style,
|
|
23512
23839
|
text: text,
|
|
23513
23840
|
data: data,
|
|
23514
23841
|
});
|
|
@@ -23518,7 +23845,11 @@ var Raw;
|
|
|
23518
23845
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
23519
23846
|
let flags = 0;
|
|
23520
23847
|
flags |= this.requiresPassword ? 1 << 0 : 0;
|
|
23848
|
+
flags |= this.style !== undefined ? 1 << 10 : 0;
|
|
23521
23849
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
23850
|
+
if (this.style !== undefined) {
|
|
23851
|
+
b.write(this.style.write());
|
|
23852
|
+
}
|
|
23522
23853
|
if (this.text !== undefined) {
|
|
23523
23854
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23524
23855
|
}
|
|
@@ -23530,23 +23861,33 @@ var Raw;
|
|
|
23530
23861
|
}
|
|
23531
23862
|
Raw.KeyboardButtonCallback = KeyboardButtonCallback;
|
|
23532
23863
|
class KeyboardButtonRequestPhone extends index_js_1.TLObject {
|
|
23864
|
+
style;
|
|
23533
23865
|
text;
|
|
23534
23866
|
constructor(params) {
|
|
23535
23867
|
super();
|
|
23536
23868
|
this.classType = 'types';
|
|
23537
23869
|
this.className = 'KeyboardButtonRequestPhone';
|
|
23538
|
-
this.constructorId =
|
|
23870
|
+
this.constructorId = 0x417efd8f;
|
|
23539
23871
|
this.subclassOfId = 0xbad74a3;
|
|
23540
|
-
this._slots = ['text'];
|
|
23872
|
+
this._slots = ['style', 'text'];
|
|
23873
|
+
this.style = params.style;
|
|
23541
23874
|
this.text = params.text;
|
|
23542
23875
|
}
|
|
23543
23876
|
static async read(_data, ..._args) {
|
|
23877
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
23878
|
+
let style = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
23544
23879
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23545
|
-
return new Raw.KeyboardButtonRequestPhone({ text: text });
|
|
23880
|
+
return new Raw.KeyboardButtonRequestPhone({ style: style, text: text });
|
|
23546
23881
|
}
|
|
23547
23882
|
write() {
|
|
23548
23883
|
const b = new deps_js_1.BytesIO();
|
|
23549
23884
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
23885
|
+
let flags = 0;
|
|
23886
|
+
flags |= this.style !== undefined ? 1 << 10 : 0;
|
|
23887
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
23888
|
+
if (this.style !== undefined) {
|
|
23889
|
+
b.write(this.style.write());
|
|
23890
|
+
}
|
|
23550
23891
|
if (this.text !== undefined) {
|
|
23551
23892
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23552
23893
|
}
|
|
@@ -23555,23 +23896,33 @@ var Raw;
|
|
|
23555
23896
|
}
|
|
23556
23897
|
Raw.KeyboardButtonRequestPhone = KeyboardButtonRequestPhone;
|
|
23557
23898
|
class KeyboardButtonRequestGeoLocation extends index_js_1.TLObject {
|
|
23899
|
+
style;
|
|
23558
23900
|
text;
|
|
23559
23901
|
constructor(params) {
|
|
23560
23902
|
super();
|
|
23561
23903
|
this.classType = 'types';
|
|
23562
23904
|
this.className = 'KeyboardButtonRequestGeoLocation';
|
|
23563
|
-
this.constructorId =
|
|
23905
|
+
this.constructorId = 0xaa40f94d;
|
|
23564
23906
|
this.subclassOfId = 0xbad74a3;
|
|
23565
|
-
this._slots = ['text'];
|
|
23907
|
+
this._slots = ['style', 'text'];
|
|
23908
|
+
this.style = params.style;
|
|
23566
23909
|
this.text = params.text;
|
|
23567
23910
|
}
|
|
23568
23911
|
static async read(_data, ..._args) {
|
|
23912
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
23913
|
+
let style = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
23569
23914
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23570
|
-
return new Raw.KeyboardButtonRequestGeoLocation({ text: text });
|
|
23915
|
+
return new Raw.KeyboardButtonRequestGeoLocation({ style: style, text: text });
|
|
23571
23916
|
}
|
|
23572
23917
|
write() {
|
|
23573
23918
|
const b = new deps_js_1.BytesIO();
|
|
23574
23919
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
23920
|
+
let flags = 0;
|
|
23921
|
+
flags |= this.style !== undefined ? 1 << 10 : 0;
|
|
23922
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
23923
|
+
if (this.style !== undefined) {
|
|
23924
|
+
b.write(this.style.write());
|
|
23925
|
+
}
|
|
23575
23926
|
if (this.text !== undefined) {
|
|
23576
23927
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23577
23928
|
}
|
|
@@ -23581,6 +23932,7 @@ var Raw;
|
|
|
23581
23932
|
Raw.KeyboardButtonRequestGeoLocation = KeyboardButtonRequestGeoLocation;
|
|
23582
23933
|
class KeyboardButtonSwitchInline extends index_js_1.TLObject {
|
|
23583
23934
|
samePeer;
|
|
23935
|
+
style;
|
|
23584
23936
|
text;
|
|
23585
23937
|
query;
|
|
23586
23938
|
peerTypes;
|
|
@@ -23588,10 +23940,11 @@ var Raw;
|
|
|
23588
23940
|
super();
|
|
23589
23941
|
this.classType = 'types';
|
|
23590
23942
|
this.className = 'KeyboardButtonSwitchInline';
|
|
23591
|
-
this.constructorId =
|
|
23943
|
+
this.constructorId = 0x991399fc;
|
|
23592
23944
|
this.subclassOfId = 0xbad74a3;
|
|
23593
|
-
this._slots = ['samePeer', 'text', 'query', 'peerTypes'];
|
|
23945
|
+
this._slots = ['samePeer', 'style', 'text', 'query', 'peerTypes'];
|
|
23594
23946
|
this.samePeer = params.samePeer;
|
|
23947
|
+
this.style = params.style;
|
|
23595
23948
|
this.text = params.text;
|
|
23596
23949
|
this.query = params.query;
|
|
23597
23950
|
this.peerTypes = params.peerTypes;
|
|
@@ -23599,11 +23952,13 @@ var Raw;
|
|
|
23599
23952
|
static async read(_data, ..._args) {
|
|
23600
23953
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
23601
23954
|
let samePeer = flags & (1 << 0) ? true : false;
|
|
23955
|
+
let style = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
23602
23956
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23603
23957
|
let query = await index_js_1.Primitive.String.read(_data);
|
|
23604
23958
|
let peerTypes = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : [];
|
|
23605
23959
|
return new Raw.KeyboardButtonSwitchInline({
|
|
23606
23960
|
samePeer: samePeer,
|
|
23961
|
+
style: style,
|
|
23607
23962
|
text: text,
|
|
23608
23963
|
query: query,
|
|
23609
23964
|
peerTypes: peerTypes,
|
|
@@ -23614,8 +23969,12 @@ var Raw;
|
|
|
23614
23969
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
23615
23970
|
let flags = 0;
|
|
23616
23971
|
flags |= this.samePeer ? 1 << 0 : 0;
|
|
23972
|
+
flags |= this.style !== undefined ? 1 << 10 : 0;
|
|
23617
23973
|
flags |= this.peerTypes ? 1 << 1 : 0;
|
|
23618
23974
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
23975
|
+
if (this.style !== undefined) {
|
|
23976
|
+
b.write(this.style.write());
|
|
23977
|
+
}
|
|
23619
23978
|
if (this.text !== undefined) {
|
|
23620
23979
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23621
23980
|
}
|
|
@@ -23630,23 +23989,33 @@ var Raw;
|
|
|
23630
23989
|
}
|
|
23631
23990
|
Raw.KeyboardButtonSwitchInline = KeyboardButtonSwitchInline;
|
|
23632
23991
|
class KeyboardButtonGame extends index_js_1.TLObject {
|
|
23992
|
+
style;
|
|
23633
23993
|
text;
|
|
23634
23994
|
constructor(params) {
|
|
23635
23995
|
super();
|
|
23636
23996
|
this.classType = 'types';
|
|
23637
23997
|
this.className = 'KeyboardButtonGame';
|
|
23638
|
-
this.constructorId =
|
|
23998
|
+
this.constructorId = 0x89c590f9;
|
|
23639
23999
|
this.subclassOfId = 0xbad74a3;
|
|
23640
|
-
this._slots = ['text'];
|
|
24000
|
+
this._slots = ['style', 'text'];
|
|
24001
|
+
this.style = params.style;
|
|
23641
24002
|
this.text = params.text;
|
|
23642
24003
|
}
|
|
23643
24004
|
static async read(_data, ..._args) {
|
|
24005
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
24006
|
+
let style = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
23644
24007
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23645
|
-
return new Raw.KeyboardButtonGame({ text: text });
|
|
24008
|
+
return new Raw.KeyboardButtonGame({ style: style, text: text });
|
|
23646
24009
|
}
|
|
23647
24010
|
write() {
|
|
23648
24011
|
const b = new deps_js_1.BytesIO();
|
|
23649
24012
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
24013
|
+
let flags = 0;
|
|
24014
|
+
flags |= this.style !== undefined ? 1 << 10 : 0;
|
|
24015
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
24016
|
+
if (this.style !== undefined) {
|
|
24017
|
+
b.write(this.style.write());
|
|
24018
|
+
}
|
|
23650
24019
|
if (this.text !== undefined) {
|
|
23651
24020
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23652
24021
|
}
|
|
@@ -23655,23 +24024,33 @@ var Raw;
|
|
|
23655
24024
|
}
|
|
23656
24025
|
Raw.KeyboardButtonGame = KeyboardButtonGame;
|
|
23657
24026
|
class KeyboardButtonBuy extends index_js_1.TLObject {
|
|
24027
|
+
style;
|
|
23658
24028
|
text;
|
|
23659
24029
|
constructor(params) {
|
|
23660
24030
|
super();
|
|
23661
24031
|
this.classType = 'types';
|
|
23662
24032
|
this.className = 'KeyboardButtonBuy';
|
|
23663
|
-
this.constructorId =
|
|
24033
|
+
this.constructorId = 0x3fa53905;
|
|
23664
24034
|
this.subclassOfId = 0xbad74a3;
|
|
23665
|
-
this._slots = ['text'];
|
|
24035
|
+
this._slots = ['style', 'text'];
|
|
24036
|
+
this.style = params.style;
|
|
23666
24037
|
this.text = params.text;
|
|
23667
24038
|
}
|
|
23668
24039
|
static async read(_data, ..._args) {
|
|
24040
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
24041
|
+
let style = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
23669
24042
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23670
|
-
return new Raw.KeyboardButtonBuy({ text: text });
|
|
24043
|
+
return new Raw.KeyboardButtonBuy({ style: style, text: text });
|
|
23671
24044
|
}
|
|
23672
24045
|
write() {
|
|
23673
24046
|
const b = new deps_js_1.BytesIO();
|
|
23674
24047
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
24048
|
+
let flags = 0;
|
|
24049
|
+
flags |= this.style !== undefined ? 1 << 10 : 0;
|
|
24050
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
24051
|
+
if (this.style !== undefined) {
|
|
24052
|
+
b.write(this.style.write());
|
|
24053
|
+
}
|
|
23675
24054
|
if (this.text !== undefined) {
|
|
23676
24055
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23677
24056
|
}
|
|
@@ -23680,6 +24059,7 @@ var Raw;
|
|
|
23680
24059
|
}
|
|
23681
24060
|
Raw.KeyboardButtonBuy = KeyboardButtonBuy;
|
|
23682
24061
|
class KeyboardButtonUrlAuth extends index_js_1.TLObject {
|
|
24062
|
+
style;
|
|
23683
24063
|
text;
|
|
23684
24064
|
fwdText;
|
|
23685
24065
|
url;
|
|
@@ -23688,9 +24068,10 @@ var Raw;
|
|
|
23688
24068
|
super();
|
|
23689
24069
|
this.classType = 'types';
|
|
23690
24070
|
this.className = 'KeyboardButtonUrlAuth';
|
|
23691
|
-
this.constructorId =
|
|
24071
|
+
this.constructorId = 0xf51006f9;
|
|
23692
24072
|
this.subclassOfId = 0xbad74a3;
|
|
23693
|
-
this._slots = ['text', 'fwdText', 'url', 'buttonId'];
|
|
24073
|
+
this._slots = ['style', 'text', 'fwdText', 'url', 'buttonId'];
|
|
24074
|
+
this.style = params.style;
|
|
23694
24075
|
this.text = params.text;
|
|
23695
24076
|
this.fwdText = params.fwdText;
|
|
23696
24077
|
this.url = params.url;
|
|
@@ -23698,11 +24079,13 @@ var Raw;
|
|
|
23698
24079
|
}
|
|
23699
24080
|
static async read(_data, ..._args) {
|
|
23700
24081
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
24082
|
+
let style = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
23701
24083
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23702
24084
|
let fwdText = flags & (1 << 0) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
23703
24085
|
let url = await index_js_1.Primitive.String.read(_data);
|
|
23704
24086
|
let buttonId = await index_js_1.Primitive.Int.read(_data);
|
|
23705
24087
|
return new Raw.KeyboardButtonUrlAuth({
|
|
24088
|
+
style: style,
|
|
23706
24089
|
text: text,
|
|
23707
24090
|
fwdText: fwdText,
|
|
23708
24091
|
url: url,
|
|
@@ -23713,8 +24096,12 @@ var Raw;
|
|
|
23713
24096
|
const b = new deps_js_1.BytesIO();
|
|
23714
24097
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
23715
24098
|
let flags = 0;
|
|
24099
|
+
flags |= this.style !== undefined ? 1 << 10 : 0;
|
|
23716
24100
|
flags |= this.fwdText !== undefined ? 1 << 0 : 0;
|
|
23717
24101
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
24102
|
+
if (this.style !== undefined) {
|
|
24103
|
+
b.write(this.style.write());
|
|
24104
|
+
}
|
|
23718
24105
|
if (this.text !== undefined) {
|
|
23719
24106
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23720
24107
|
}
|
|
@@ -23733,6 +24120,7 @@ var Raw;
|
|
|
23733
24120
|
Raw.KeyboardButtonUrlAuth = KeyboardButtonUrlAuth;
|
|
23734
24121
|
class InputKeyboardButtonUrlAuth extends index_js_1.TLObject {
|
|
23735
24122
|
requestWriteAccess;
|
|
24123
|
+
style;
|
|
23736
24124
|
text;
|
|
23737
24125
|
fwdText;
|
|
23738
24126
|
url;
|
|
@@ -23741,10 +24129,11 @@ var Raw;
|
|
|
23741
24129
|
super();
|
|
23742
24130
|
this.classType = 'types';
|
|
23743
24131
|
this.className = 'InputKeyboardButtonUrlAuth';
|
|
23744
|
-
this.constructorId =
|
|
24132
|
+
this.constructorId = 0x68013e72;
|
|
23745
24133
|
this.subclassOfId = 0xbad74a3;
|
|
23746
|
-
this._slots = ['requestWriteAccess', 'text', 'fwdText', 'url', 'bot'];
|
|
24134
|
+
this._slots = ['requestWriteAccess', 'style', 'text', 'fwdText', 'url', 'bot'];
|
|
23747
24135
|
this.requestWriteAccess = params.requestWriteAccess;
|
|
24136
|
+
this.style = params.style;
|
|
23748
24137
|
this.text = params.text;
|
|
23749
24138
|
this.fwdText = params.fwdText;
|
|
23750
24139
|
this.url = params.url;
|
|
@@ -23753,12 +24142,14 @@ var Raw;
|
|
|
23753
24142
|
static async read(_data, ..._args) {
|
|
23754
24143
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
23755
24144
|
let requestWriteAccess = flags & (1 << 0) ? true : false;
|
|
24145
|
+
let style = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
23756
24146
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23757
24147
|
let fwdText = flags & (1 << 1) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
23758
24148
|
let url = await index_js_1.Primitive.String.read(_data);
|
|
23759
24149
|
let bot = await index_js_1.TLObject.read(_data);
|
|
23760
24150
|
return new Raw.InputKeyboardButtonUrlAuth({
|
|
23761
24151
|
requestWriteAccess: requestWriteAccess,
|
|
24152
|
+
style: style,
|
|
23762
24153
|
text: text,
|
|
23763
24154
|
fwdText: fwdText,
|
|
23764
24155
|
url: url,
|
|
@@ -23770,8 +24161,12 @@ var Raw;
|
|
|
23770
24161
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
23771
24162
|
let flags = 0;
|
|
23772
24163
|
flags |= this.requestWriteAccess ? 1 << 0 : 0;
|
|
24164
|
+
flags |= this.style !== undefined ? 1 << 10 : 0;
|
|
23773
24165
|
flags |= this.fwdText !== undefined ? 1 << 1 : 0;
|
|
23774
24166
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
24167
|
+
if (this.style !== undefined) {
|
|
24168
|
+
b.write(this.style.write());
|
|
24169
|
+
}
|
|
23775
24170
|
if (this.text !== undefined) {
|
|
23776
24171
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23777
24172
|
}
|
|
@@ -23789,30 +24184,37 @@ var Raw;
|
|
|
23789
24184
|
}
|
|
23790
24185
|
Raw.InputKeyboardButtonUrlAuth = InputKeyboardButtonUrlAuth;
|
|
23791
24186
|
class KeyboardButtonRequestPoll extends index_js_1.TLObject {
|
|
24187
|
+
style;
|
|
23792
24188
|
quiz;
|
|
23793
24189
|
text;
|
|
23794
24190
|
constructor(params) {
|
|
23795
24191
|
super();
|
|
23796
24192
|
this.classType = 'types';
|
|
23797
24193
|
this.className = 'KeyboardButtonRequestPoll';
|
|
23798
|
-
this.constructorId =
|
|
24194
|
+
this.constructorId = 0x7a11d782;
|
|
23799
24195
|
this.subclassOfId = 0xbad74a3;
|
|
23800
|
-
this._slots = ['quiz', 'text'];
|
|
24196
|
+
this._slots = ['style', 'quiz', 'text'];
|
|
24197
|
+
this.style = params.style;
|
|
23801
24198
|
this.quiz = params.quiz;
|
|
23802
24199
|
this.text = params.text;
|
|
23803
24200
|
}
|
|
23804
24201
|
static async read(_data, ..._args) {
|
|
23805
24202
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
24203
|
+
let style = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
23806
24204
|
let quiz = flags & (1 << 0) ? await index_js_1.Primitive.Bool.read(_data) : undefined;
|
|
23807
24205
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23808
|
-
return new Raw.KeyboardButtonRequestPoll({ quiz: quiz, text: text });
|
|
24206
|
+
return new Raw.KeyboardButtonRequestPoll({ style: style, quiz: quiz, text: text });
|
|
23809
24207
|
}
|
|
23810
24208
|
write() {
|
|
23811
24209
|
const b = new deps_js_1.BytesIO();
|
|
23812
24210
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
23813
24211
|
let flags = 0;
|
|
24212
|
+
flags |= this.style !== undefined ? 1 << 10 : 0;
|
|
23814
24213
|
flags |= this.quiz !== undefined ? 1 << 0 : 0;
|
|
23815
24214
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
24215
|
+
if (this.style !== undefined) {
|
|
24216
|
+
b.write(this.style.write());
|
|
24217
|
+
}
|
|
23816
24218
|
if (this.quiz !== undefined) {
|
|
23817
24219
|
b.write(index_js_1.Primitive.Bool.write(this.quiz));
|
|
23818
24220
|
}
|
|
@@ -23824,26 +24226,36 @@ var Raw;
|
|
|
23824
24226
|
}
|
|
23825
24227
|
Raw.KeyboardButtonRequestPoll = KeyboardButtonRequestPoll;
|
|
23826
24228
|
class InputKeyboardButtonUserProfile extends index_js_1.TLObject {
|
|
24229
|
+
style;
|
|
23827
24230
|
text;
|
|
23828
24231
|
userId;
|
|
23829
24232
|
constructor(params) {
|
|
23830
24233
|
super();
|
|
23831
24234
|
this.classType = 'types';
|
|
23832
24235
|
this.className = 'InputKeyboardButtonUserProfile';
|
|
23833
|
-
this.constructorId =
|
|
24236
|
+
this.constructorId = 0x7d5e07c7;
|
|
23834
24237
|
this.subclassOfId = 0xbad74a3;
|
|
23835
|
-
this._slots = ['text', 'userId'];
|
|
24238
|
+
this._slots = ['style', 'text', 'userId'];
|
|
24239
|
+
this.style = params.style;
|
|
23836
24240
|
this.text = params.text;
|
|
23837
24241
|
this.userId = params.userId;
|
|
23838
24242
|
}
|
|
23839
24243
|
static async read(_data, ..._args) {
|
|
24244
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
24245
|
+
let style = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
23840
24246
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23841
24247
|
let userId = await index_js_1.TLObject.read(_data);
|
|
23842
|
-
return new Raw.InputKeyboardButtonUserProfile({ text: text, userId: userId });
|
|
24248
|
+
return new Raw.InputKeyboardButtonUserProfile({ style: style, text: text, userId: userId });
|
|
23843
24249
|
}
|
|
23844
24250
|
write() {
|
|
23845
24251
|
const b = new deps_js_1.BytesIO();
|
|
23846
24252
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
24253
|
+
let flags = 0;
|
|
24254
|
+
flags |= this.style !== undefined ? 1 << 10 : 0;
|
|
24255
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
24256
|
+
if (this.style !== undefined) {
|
|
24257
|
+
b.write(this.style.write());
|
|
24258
|
+
}
|
|
23847
24259
|
if (this.text !== undefined) {
|
|
23848
24260
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23849
24261
|
}
|
|
@@ -23855,26 +24267,36 @@ var Raw;
|
|
|
23855
24267
|
}
|
|
23856
24268
|
Raw.InputKeyboardButtonUserProfile = InputKeyboardButtonUserProfile;
|
|
23857
24269
|
class KeyboardButtonUserProfile extends index_js_1.TLObject {
|
|
24270
|
+
style;
|
|
23858
24271
|
text;
|
|
23859
24272
|
userId;
|
|
23860
24273
|
constructor(params) {
|
|
23861
24274
|
super();
|
|
23862
24275
|
this.classType = 'types';
|
|
23863
24276
|
this.className = 'KeyboardButtonUserProfile';
|
|
23864
|
-
this.constructorId =
|
|
24277
|
+
this.constructorId = 0xc0fd5d09;
|
|
23865
24278
|
this.subclassOfId = 0xbad74a3;
|
|
23866
|
-
this._slots = ['text', 'userId'];
|
|
24279
|
+
this._slots = ['style', 'text', 'userId'];
|
|
24280
|
+
this.style = params.style;
|
|
23867
24281
|
this.text = params.text;
|
|
23868
24282
|
this.userId = params.userId;
|
|
23869
24283
|
}
|
|
23870
24284
|
static async read(_data, ..._args) {
|
|
24285
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
24286
|
+
let style = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
23871
24287
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23872
24288
|
let userId = await index_js_1.Primitive.Long.read(_data);
|
|
23873
|
-
return new Raw.KeyboardButtonUserProfile({ text: text, userId: userId });
|
|
24289
|
+
return new Raw.KeyboardButtonUserProfile({ style: style, text: text, userId: userId });
|
|
23874
24290
|
}
|
|
23875
24291
|
write() {
|
|
23876
24292
|
const b = new deps_js_1.BytesIO();
|
|
23877
24293
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
24294
|
+
let flags = 0;
|
|
24295
|
+
flags |= this.style !== undefined ? 1 << 10 : 0;
|
|
24296
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
24297
|
+
if (this.style !== undefined) {
|
|
24298
|
+
b.write(this.style.write());
|
|
24299
|
+
}
|
|
23878
24300
|
if (this.text !== undefined) {
|
|
23879
24301
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23880
24302
|
}
|
|
@@ -23886,26 +24308,36 @@ var Raw;
|
|
|
23886
24308
|
}
|
|
23887
24309
|
Raw.KeyboardButtonUserProfile = KeyboardButtonUserProfile;
|
|
23888
24310
|
class KeyboardButtonWebView extends index_js_1.TLObject {
|
|
24311
|
+
style;
|
|
23889
24312
|
text;
|
|
23890
24313
|
url;
|
|
23891
24314
|
constructor(params) {
|
|
23892
24315
|
super();
|
|
23893
24316
|
this.classType = 'types';
|
|
23894
24317
|
this.className = 'KeyboardButtonWebView';
|
|
23895
|
-
this.constructorId =
|
|
24318
|
+
this.constructorId = 0xe846b1a0;
|
|
23896
24319
|
this.subclassOfId = 0xbad74a3;
|
|
23897
|
-
this._slots = ['text', 'url'];
|
|
24320
|
+
this._slots = ['style', 'text', 'url'];
|
|
24321
|
+
this.style = params.style;
|
|
23898
24322
|
this.text = params.text;
|
|
23899
24323
|
this.url = params.url;
|
|
23900
24324
|
}
|
|
23901
24325
|
static async read(_data, ..._args) {
|
|
24326
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
24327
|
+
let style = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
23902
24328
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23903
24329
|
let url = await index_js_1.Primitive.String.read(_data);
|
|
23904
|
-
return new Raw.KeyboardButtonWebView({ text: text, url: url });
|
|
24330
|
+
return new Raw.KeyboardButtonWebView({ style: style, text: text, url: url });
|
|
23905
24331
|
}
|
|
23906
24332
|
write() {
|
|
23907
24333
|
const b = new deps_js_1.BytesIO();
|
|
23908
24334
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
24335
|
+
let flags = 0;
|
|
24336
|
+
flags |= this.style !== undefined ? 1 << 10 : 0;
|
|
24337
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
24338
|
+
if (this.style !== undefined) {
|
|
24339
|
+
b.write(this.style.write());
|
|
24340
|
+
}
|
|
23909
24341
|
if (this.text !== undefined) {
|
|
23910
24342
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23911
24343
|
}
|
|
@@ -23917,26 +24349,36 @@ var Raw;
|
|
|
23917
24349
|
}
|
|
23918
24350
|
Raw.KeyboardButtonWebView = KeyboardButtonWebView;
|
|
23919
24351
|
class KeyboardButtonSimpleWebView extends index_js_1.TLObject {
|
|
24352
|
+
style;
|
|
23920
24353
|
text;
|
|
23921
24354
|
url;
|
|
23922
24355
|
constructor(params) {
|
|
23923
24356
|
super();
|
|
23924
24357
|
this.classType = 'types';
|
|
23925
24358
|
this.className = 'KeyboardButtonSimpleWebView';
|
|
23926
|
-
this.constructorId =
|
|
24359
|
+
this.constructorId = 0xe15c4370;
|
|
23927
24360
|
this.subclassOfId = 0xbad74a3;
|
|
23928
|
-
this._slots = ['text', 'url'];
|
|
24361
|
+
this._slots = ['style', 'text', 'url'];
|
|
24362
|
+
this.style = params.style;
|
|
23929
24363
|
this.text = params.text;
|
|
23930
24364
|
this.url = params.url;
|
|
23931
24365
|
}
|
|
23932
24366
|
static async read(_data, ..._args) {
|
|
24367
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
24368
|
+
let style = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
23933
24369
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23934
24370
|
let url = await index_js_1.Primitive.String.read(_data);
|
|
23935
|
-
return new Raw.KeyboardButtonSimpleWebView({ text: text, url: url });
|
|
24371
|
+
return new Raw.KeyboardButtonSimpleWebView({ style: style, text: text, url: url });
|
|
23936
24372
|
}
|
|
23937
24373
|
write() {
|
|
23938
24374
|
const b = new deps_js_1.BytesIO();
|
|
23939
24375
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
24376
|
+
let flags = 0;
|
|
24377
|
+
flags |= this.style !== undefined ? 1 << 10 : 0;
|
|
24378
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
24379
|
+
if (this.style !== undefined) {
|
|
24380
|
+
b.write(this.style.write());
|
|
24381
|
+
}
|
|
23940
24382
|
if (this.text !== undefined) {
|
|
23941
24383
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23942
24384
|
}
|
|
@@ -23948,6 +24390,7 @@ var Raw;
|
|
|
23948
24390
|
}
|
|
23949
24391
|
Raw.KeyboardButtonSimpleWebView = KeyboardButtonSimpleWebView;
|
|
23950
24392
|
class KeyboardButtonRequestPeer extends index_js_1.TLObject {
|
|
24393
|
+
style;
|
|
23951
24394
|
text;
|
|
23952
24395
|
buttonId;
|
|
23953
24396
|
peerType;
|
|
@@ -23956,20 +24399,24 @@ var Raw;
|
|
|
23956
24399
|
super();
|
|
23957
24400
|
this.classType = 'types';
|
|
23958
24401
|
this.className = 'KeyboardButtonRequestPeer';
|
|
23959
|
-
this.constructorId =
|
|
24402
|
+
this.constructorId = 0x5b0f15f5;
|
|
23960
24403
|
this.subclassOfId = 0xbad74a3;
|
|
23961
|
-
this._slots = ['text', 'buttonId', 'peerType', 'maxQuantity'];
|
|
24404
|
+
this._slots = ['style', 'text', 'buttonId', 'peerType', 'maxQuantity'];
|
|
24405
|
+
this.style = params.style;
|
|
23962
24406
|
this.text = params.text;
|
|
23963
24407
|
this.buttonId = params.buttonId;
|
|
23964
24408
|
this.peerType = params.peerType;
|
|
23965
24409
|
this.maxQuantity = params.maxQuantity;
|
|
23966
24410
|
}
|
|
23967
24411
|
static async read(_data, ..._args) {
|
|
24412
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
24413
|
+
let style = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
23968
24414
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23969
24415
|
let buttonId = await index_js_1.Primitive.Int.read(_data);
|
|
23970
24416
|
let peerType = await index_js_1.TLObject.read(_data);
|
|
23971
24417
|
let maxQuantity = await index_js_1.Primitive.Int.read(_data);
|
|
23972
24418
|
return new Raw.KeyboardButtonRequestPeer({
|
|
24419
|
+
style: style,
|
|
23973
24420
|
text: text,
|
|
23974
24421
|
buttonId: buttonId,
|
|
23975
24422
|
peerType: peerType,
|
|
@@ -23979,6 +24426,12 @@ var Raw;
|
|
|
23979
24426
|
write() {
|
|
23980
24427
|
const b = new deps_js_1.BytesIO();
|
|
23981
24428
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
24429
|
+
let flags = 0;
|
|
24430
|
+
flags |= this.style !== undefined ? 1 << 10 : 0;
|
|
24431
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
24432
|
+
if (this.style !== undefined) {
|
|
24433
|
+
b.write(this.style.write());
|
|
24434
|
+
}
|
|
23982
24435
|
if (this.text !== undefined) {
|
|
23983
24436
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23984
24437
|
}
|
|
@@ -23999,6 +24452,7 @@ var Raw;
|
|
|
23999
24452
|
nameRequested;
|
|
24000
24453
|
usernameRequested;
|
|
24001
24454
|
photoRequested;
|
|
24455
|
+
style;
|
|
24002
24456
|
text;
|
|
24003
24457
|
buttonId;
|
|
24004
24458
|
peerType;
|
|
@@ -24007,12 +24461,13 @@ var Raw;
|
|
|
24007
24461
|
super();
|
|
24008
24462
|
this.classType = 'types';
|
|
24009
24463
|
this.className = 'InputKeyboardButtonRequestPeer';
|
|
24010
|
-
this.constructorId =
|
|
24464
|
+
this.constructorId = 0x2b78156;
|
|
24011
24465
|
this.subclassOfId = 0xbad74a3;
|
|
24012
24466
|
this._slots = [
|
|
24013
24467
|
'nameRequested',
|
|
24014
24468
|
'usernameRequested',
|
|
24015
24469
|
'photoRequested',
|
|
24470
|
+
'style',
|
|
24016
24471
|
'text',
|
|
24017
24472
|
'buttonId',
|
|
24018
24473
|
'peerType',
|
|
@@ -24021,6 +24476,7 @@ var Raw;
|
|
|
24021
24476
|
this.nameRequested = params.nameRequested;
|
|
24022
24477
|
this.usernameRequested = params.usernameRequested;
|
|
24023
24478
|
this.photoRequested = params.photoRequested;
|
|
24479
|
+
this.style = params.style;
|
|
24024
24480
|
this.text = params.text;
|
|
24025
24481
|
this.buttonId = params.buttonId;
|
|
24026
24482
|
this.peerType = params.peerType;
|
|
@@ -24031,6 +24487,7 @@ var Raw;
|
|
|
24031
24487
|
let nameRequested = flags & (1 << 0) ? true : false;
|
|
24032
24488
|
let usernameRequested = flags & (1 << 1) ? true : false;
|
|
24033
24489
|
let photoRequested = flags & (1 << 2) ? true : false;
|
|
24490
|
+
let style = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
24034
24491
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
24035
24492
|
let buttonId = await index_js_1.Primitive.Int.read(_data);
|
|
24036
24493
|
let peerType = await index_js_1.TLObject.read(_data);
|
|
@@ -24039,6 +24496,7 @@ var Raw;
|
|
|
24039
24496
|
nameRequested: nameRequested,
|
|
24040
24497
|
usernameRequested: usernameRequested,
|
|
24041
24498
|
photoRequested: photoRequested,
|
|
24499
|
+
style: style,
|
|
24042
24500
|
text: text,
|
|
24043
24501
|
buttonId: buttonId,
|
|
24044
24502
|
peerType: peerType,
|
|
@@ -24052,7 +24510,11 @@ var Raw;
|
|
|
24052
24510
|
flags |= this.nameRequested ? 1 << 0 : 0;
|
|
24053
24511
|
flags |= this.usernameRequested ? 1 << 1 : 0;
|
|
24054
24512
|
flags |= this.photoRequested ? 1 << 2 : 0;
|
|
24513
|
+
flags |= this.style !== undefined ? 1 << 10 : 0;
|
|
24055
24514
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
24515
|
+
if (this.style !== undefined) {
|
|
24516
|
+
b.write(this.style.write());
|
|
24517
|
+
}
|
|
24056
24518
|
if (this.text !== undefined) {
|
|
24057
24519
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
24058
24520
|
}
|
|
@@ -24070,26 +24532,36 @@ var Raw;
|
|
|
24070
24532
|
}
|
|
24071
24533
|
Raw.InputKeyboardButtonRequestPeer = InputKeyboardButtonRequestPeer;
|
|
24072
24534
|
class KeyboardButtonCopy extends index_js_1.TLObject {
|
|
24535
|
+
style;
|
|
24073
24536
|
text;
|
|
24074
24537
|
copyText;
|
|
24075
24538
|
constructor(params) {
|
|
24076
24539
|
super();
|
|
24077
24540
|
this.classType = 'types';
|
|
24078
24541
|
this.className = 'KeyboardButtonCopy';
|
|
24079
|
-
this.constructorId =
|
|
24542
|
+
this.constructorId = 0xbcc4af10;
|
|
24080
24543
|
this.subclassOfId = 0xbad74a3;
|
|
24081
|
-
this._slots = ['text', 'copyText'];
|
|
24544
|
+
this._slots = ['style', 'text', 'copyText'];
|
|
24545
|
+
this.style = params.style;
|
|
24082
24546
|
this.text = params.text;
|
|
24083
24547
|
this.copyText = params.copyText;
|
|
24084
24548
|
}
|
|
24085
24549
|
static async read(_data, ..._args) {
|
|
24550
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
24551
|
+
let style = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
24086
24552
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
24087
24553
|
let copyText = await index_js_1.Primitive.String.read(_data);
|
|
24088
|
-
return new Raw.KeyboardButtonCopy({ text: text, copyText: copyText });
|
|
24554
|
+
return new Raw.KeyboardButtonCopy({ style: style, text: text, copyText: copyText });
|
|
24089
24555
|
}
|
|
24090
24556
|
write() {
|
|
24091
24557
|
const b = new deps_js_1.BytesIO();
|
|
24092
24558
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
24559
|
+
let flags = 0;
|
|
24560
|
+
flags |= this.style !== undefined ? 1 << 10 : 0;
|
|
24561
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
24562
|
+
if (this.style !== undefined) {
|
|
24563
|
+
b.write(this.style.write());
|
|
24564
|
+
}
|
|
24093
24565
|
if (this.text !== undefined) {
|
|
24094
24566
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
24095
24567
|
}
|
|
@@ -37138,28 +37610,57 @@ var Raw;
|
|
|
37138
37610
|
Raw.FolderPeer = FolderPeer;
|
|
37139
37611
|
class UrlAuthResultRequest extends index_js_1.TLObject {
|
|
37140
37612
|
requestWriteAccess;
|
|
37613
|
+
requestPhoneNumber;
|
|
37141
37614
|
bot;
|
|
37142
37615
|
domain;
|
|
37616
|
+
browser;
|
|
37617
|
+
platform;
|
|
37618
|
+
ip;
|
|
37619
|
+
region;
|
|
37143
37620
|
constructor(params) {
|
|
37144
37621
|
super();
|
|
37145
37622
|
this.classType = 'types';
|
|
37146
37623
|
this.className = 'UrlAuthResultRequest';
|
|
37147
|
-
this.constructorId =
|
|
37624
|
+
this.constructorId = 0x32fabf1a;
|
|
37148
37625
|
this.subclassOfId = 0x7765cb1e;
|
|
37149
|
-
this._slots = [
|
|
37626
|
+
this._slots = [
|
|
37627
|
+
'requestWriteAccess',
|
|
37628
|
+
'requestPhoneNumber',
|
|
37629
|
+
'bot',
|
|
37630
|
+
'domain',
|
|
37631
|
+
'browser',
|
|
37632
|
+
'platform',
|
|
37633
|
+
'ip',
|
|
37634
|
+
'region',
|
|
37635
|
+
];
|
|
37150
37636
|
this.requestWriteAccess = params.requestWriteAccess;
|
|
37637
|
+
this.requestPhoneNumber = params.requestPhoneNumber;
|
|
37151
37638
|
this.bot = params.bot;
|
|
37152
37639
|
this.domain = params.domain;
|
|
37640
|
+
this.browser = params.browser;
|
|
37641
|
+
this.platform = params.platform;
|
|
37642
|
+
this.ip = params.ip;
|
|
37643
|
+
this.region = params.region;
|
|
37153
37644
|
}
|
|
37154
37645
|
static async read(_data, ..._args) {
|
|
37155
37646
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
37156
37647
|
let requestWriteAccess = flags & (1 << 0) ? true : false;
|
|
37648
|
+
let requestPhoneNumber = flags & (1 << 1) ? true : false;
|
|
37157
37649
|
let bot = await index_js_1.TLObject.read(_data);
|
|
37158
37650
|
let domain = await index_js_1.Primitive.String.read(_data);
|
|
37651
|
+
let browser = flags & (1 << 2) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
37652
|
+
let platform = flags & (1 << 2) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
37653
|
+
let ip = flags & (1 << 2) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
37654
|
+
let region = flags & (1 << 2) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
37159
37655
|
return new Raw.UrlAuthResultRequest({
|
|
37160
37656
|
requestWriteAccess: requestWriteAccess,
|
|
37657
|
+
requestPhoneNumber: requestPhoneNumber,
|
|
37161
37658
|
bot: bot,
|
|
37162
37659
|
domain: domain,
|
|
37660
|
+
browser: browser,
|
|
37661
|
+
platform: platform,
|
|
37662
|
+
ip: ip,
|
|
37663
|
+
region: region,
|
|
37163
37664
|
});
|
|
37164
37665
|
}
|
|
37165
37666
|
write() {
|
|
@@ -37167,6 +37668,11 @@ var Raw;
|
|
|
37167
37668
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
37168
37669
|
let flags = 0;
|
|
37169
37670
|
flags |= this.requestWriteAccess ? 1 << 0 : 0;
|
|
37671
|
+
flags |= this.requestPhoneNumber ? 1 << 1 : 0;
|
|
37672
|
+
flags |= this.browser !== undefined ? 1 << 2 : 0;
|
|
37673
|
+
flags |= this.platform !== undefined ? 1 << 2 : 0;
|
|
37674
|
+
flags |= this.ip !== undefined ? 1 << 2 : 0;
|
|
37675
|
+
flags |= this.region !== undefined ? 1 << 2 : 0;
|
|
37170
37676
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
37171
37677
|
if (this.bot !== undefined) {
|
|
37172
37678
|
b.write(this.bot.write());
|
|
@@ -37174,6 +37680,18 @@ var Raw;
|
|
|
37174
37680
|
if (this.domain !== undefined) {
|
|
37175
37681
|
b.write(index_js_1.Primitive.String.write(this.domain));
|
|
37176
37682
|
}
|
|
37683
|
+
if (this.browser !== undefined) {
|
|
37684
|
+
b.write(index_js_1.Primitive.String.write(this.browser));
|
|
37685
|
+
}
|
|
37686
|
+
if (this.platform !== undefined) {
|
|
37687
|
+
b.write(index_js_1.Primitive.String.write(this.platform));
|
|
37688
|
+
}
|
|
37689
|
+
if (this.ip !== undefined) {
|
|
37690
|
+
b.write(index_js_1.Primitive.String.write(this.ip));
|
|
37691
|
+
}
|
|
37692
|
+
if (this.region !== undefined) {
|
|
37693
|
+
b.write(index_js_1.Primitive.String.write(this.region));
|
|
37694
|
+
}
|
|
37177
37695
|
return deps_js_1.Buffer.from(b.buffer);
|
|
37178
37696
|
}
|
|
37179
37697
|
}
|
|
@@ -37184,18 +37702,22 @@ var Raw;
|
|
|
37184
37702
|
super();
|
|
37185
37703
|
this.classType = 'types';
|
|
37186
37704
|
this.className = 'UrlAuthResultAccepted';
|
|
37187
|
-
this.constructorId =
|
|
37705
|
+
this.constructorId = 0x623a8fa0;
|
|
37188
37706
|
this.subclassOfId = 0x7765cb1e;
|
|
37189
37707
|
this._slots = ['url'];
|
|
37190
37708
|
this.url = params.url;
|
|
37191
37709
|
}
|
|
37192
37710
|
static async read(_data, ..._args) {
|
|
37193
|
-
let
|
|
37711
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
37712
|
+
let url = flags & (1 << 0) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
37194
37713
|
return new Raw.UrlAuthResultAccepted({ url: url });
|
|
37195
37714
|
}
|
|
37196
37715
|
write() {
|
|
37197
37716
|
const b = new deps_js_1.BytesIO();
|
|
37198
37717
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
37718
|
+
let flags = 0;
|
|
37719
|
+
flags |= this.url !== undefined ? 1 << 0 : 0;
|
|
37720
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
37199
37721
|
if (this.url !== undefined) {
|
|
37200
37722
|
b.write(index_js_1.Primitive.String.write(this.url));
|
|
37201
37723
|
}
|
|
@@ -37957,35 +38479,20 @@ var Raw;
|
|
|
37957
38479
|
class WebPageAttributeStarGiftAuction extends index_js_1.TLObject {
|
|
37958
38480
|
gift;
|
|
37959
38481
|
endDate;
|
|
37960
|
-
centerColor;
|
|
37961
|
-
edgeColor;
|
|
37962
|
-
textColor;
|
|
37963
38482
|
constructor(params) {
|
|
37964
38483
|
super();
|
|
37965
38484
|
this.classType = 'types';
|
|
37966
38485
|
this.className = 'WebPageAttributeStarGiftAuction';
|
|
37967
|
-
this.constructorId =
|
|
38486
|
+
this.constructorId = 0x1c641c2;
|
|
37968
38487
|
this.subclassOfId = 0xafcfe9c7;
|
|
37969
|
-
this._slots = ['gift', 'endDate'
|
|
38488
|
+
this._slots = ['gift', 'endDate'];
|
|
37970
38489
|
this.gift = params.gift;
|
|
37971
38490
|
this.endDate = params.endDate;
|
|
37972
|
-
this.centerColor = params.centerColor;
|
|
37973
|
-
this.edgeColor = params.edgeColor;
|
|
37974
|
-
this.textColor = params.textColor;
|
|
37975
38491
|
}
|
|
37976
38492
|
static async read(_data, ..._args) {
|
|
37977
38493
|
let gift = await index_js_1.TLObject.read(_data);
|
|
37978
38494
|
let endDate = await index_js_1.Primitive.Int.read(_data);
|
|
37979
|
-
|
|
37980
|
-
let edgeColor = await index_js_1.Primitive.Int.read(_data);
|
|
37981
|
-
let textColor = await index_js_1.Primitive.Int.read(_data);
|
|
37982
|
-
return new Raw.WebPageAttributeStarGiftAuction({
|
|
37983
|
-
gift: gift,
|
|
37984
|
-
endDate: endDate,
|
|
37985
|
-
centerColor: centerColor,
|
|
37986
|
-
edgeColor: edgeColor,
|
|
37987
|
-
textColor: textColor,
|
|
37988
|
-
});
|
|
38495
|
+
return new Raw.WebPageAttributeStarGiftAuction({ gift: gift, endDate: endDate });
|
|
37989
38496
|
}
|
|
37990
38497
|
write() {
|
|
37991
38498
|
const b = new deps_js_1.BytesIO();
|
|
@@ -37996,15 +38503,6 @@ var Raw;
|
|
|
37996
38503
|
if (this.endDate !== undefined) {
|
|
37997
38504
|
b.write(index_js_1.Primitive.Int.write(this.endDate));
|
|
37998
38505
|
}
|
|
37999
|
-
if (this.centerColor !== undefined) {
|
|
38000
|
-
b.write(index_js_1.Primitive.Int.write(this.centerColor));
|
|
38001
|
-
}
|
|
38002
|
-
if (this.edgeColor !== undefined) {
|
|
38003
|
-
b.write(index_js_1.Primitive.Int.write(this.edgeColor));
|
|
38004
|
-
}
|
|
38005
|
-
if (this.textColor !== undefined) {
|
|
38006
|
-
b.write(index_js_1.Primitive.Int.write(this.textColor));
|
|
38007
|
-
}
|
|
38008
38506
|
return deps_js_1.Buffer.from(b.buffer);
|
|
38009
38507
|
}
|
|
38010
38508
|
}
|
|
@@ -48238,6 +48736,7 @@ var Raw;
|
|
|
48238
48736
|
stargiftDropOriginalDetails;
|
|
48239
48737
|
phonegroupMessage;
|
|
48240
48738
|
stargiftAuctionBid;
|
|
48739
|
+
offer;
|
|
48241
48740
|
id;
|
|
48242
48741
|
amount;
|
|
48243
48742
|
date;
|
|
@@ -48281,6 +48780,7 @@ var Raw;
|
|
|
48281
48780
|
'stargiftDropOriginalDetails',
|
|
48282
48781
|
'phonegroupMessage',
|
|
48283
48782
|
'stargiftAuctionBid',
|
|
48783
|
+
'offer',
|
|
48284
48784
|
'id',
|
|
48285
48785
|
'amount',
|
|
48286
48786
|
'date',
|
|
@@ -48318,6 +48818,7 @@ var Raw;
|
|
|
48318
48818
|
this.stargiftDropOriginalDetails = params.stargiftDropOriginalDetails;
|
|
48319
48819
|
this.phonegroupMessage = params.phonegroupMessage;
|
|
48320
48820
|
this.stargiftAuctionBid = params.stargiftAuctionBid;
|
|
48821
|
+
this.offer = params.offer;
|
|
48321
48822
|
this.id = params.id;
|
|
48322
48823
|
this.amount = params.amount;
|
|
48323
48824
|
this.date = params.date;
|
|
@@ -48357,6 +48858,7 @@ var Raw;
|
|
|
48357
48858
|
let stargiftDropOriginalDetails = flags & (1 << 26) ? true : false;
|
|
48358
48859
|
let phonegroupMessage = flags & (1 << 27) ? true : false;
|
|
48359
48860
|
let stargiftAuctionBid = flags & (1 << 28) ? true : false;
|
|
48861
|
+
let offer = flags & (1 << 29) ? true : false;
|
|
48360
48862
|
let id = await index_js_1.Primitive.String.read(_data);
|
|
48361
48863
|
let amount = await index_js_1.TLObject.read(_data);
|
|
48362
48864
|
let date = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -48394,6 +48896,7 @@ var Raw;
|
|
|
48394
48896
|
stargiftDropOriginalDetails: stargiftDropOriginalDetails,
|
|
48395
48897
|
phonegroupMessage: phonegroupMessage,
|
|
48396
48898
|
stargiftAuctionBid: stargiftAuctionBid,
|
|
48899
|
+
offer: offer,
|
|
48397
48900
|
id: id,
|
|
48398
48901
|
amount: amount,
|
|
48399
48902
|
date: date,
|
|
@@ -48436,6 +48939,7 @@ var Raw;
|
|
|
48436
48939
|
flags |= this.stargiftDropOriginalDetails ? 1 << 26 : 0;
|
|
48437
48940
|
flags |= this.phonegroupMessage ? 1 << 27 : 0;
|
|
48438
48941
|
flags |= this.stargiftAuctionBid ? 1 << 28 : 0;
|
|
48942
|
+
flags |= this.offer ? 1 << 29 : 0;
|
|
48439
48943
|
flags |= this.title !== undefined ? 1 << 0 : 0;
|
|
48440
48944
|
flags |= this.description !== undefined ? 1 << 1 : 0;
|
|
48441
48945
|
flags |= this.photo !== undefined ? 1 << 2 : 0;
|
|
@@ -49150,11 +49654,14 @@ var Raw;
|
|
|
49150
49654
|
lockedUntilDate;
|
|
49151
49655
|
auctionSlug;
|
|
49152
49656
|
giftsPerRound;
|
|
49657
|
+
auctionStartDate;
|
|
49658
|
+
upgradeVariants;
|
|
49659
|
+
background;
|
|
49153
49660
|
constructor(params) {
|
|
49154
49661
|
super();
|
|
49155
49662
|
this.classType = 'types';
|
|
49156
49663
|
this.className = 'StarGift';
|
|
49157
|
-
this.constructorId =
|
|
49664
|
+
this.constructorId = 0x313a9547;
|
|
49158
49665
|
this.subclassOfId = 0xc31c590b;
|
|
49159
49666
|
this._slots = [
|
|
49160
49667
|
'limited',
|
|
@@ -49182,6 +49689,9 @@ var Raw;
|
|
|
49182
49689
|
'lockedUntilDate',
|
|
49183
49690
|
'auctionSlug',
|
|
49184
49691
|
'giftsPerRound',
|
|
49692
|
+
'auctionStartDate',
|
|
49693
|
+
'upgradeVariants',
|
|
49694
|
+
'background',
|
|
49185
49695
|
];
|
|
49186
49696
|
this.limited = params.limited;
|
|
49187
49697
|
this.soldOut = params.soldOut;
|
|
@@ -49208,6 +49718,9 @@ var Raw;
|
|
|
49208
49718
|
this.lockedUntilDate = params.lockedUntilDate;
|
|
49209
49719
|
this.auctionSlug = params.auctionSlug;
|
|
49210
49720
|
this.giftsPerRound = params.giftsPerRound;
|
|
49721
|
+
this.auctionStartDate = params.auctionStartDate;
|
|
49722
|
+
this.upgradeVariants = params.upgradeVariants;
|
|
49723
|
+
this.background = params.background;
|
|
49211
49724
|
}
|
|
49212
49725
|
static async read(_data, ..._args) {
|
|
49213
49726
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -49236,6 +49749,9 @@ var Raw;
|
|
|
49236
49749
|
let lockedUntilDate = flags & (1 << 9) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
49237
49750
|
let auctionSlug = flags & (1 << 11) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
49238
49751
|
let giftsPerRound = flags & (1 << 11) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
49752
|
+
let auctionStartDate = flags & (1 << 11) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
49753
|
+
let upgradeVariants = flags & (1 << 12) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
49754
|
+
let background = flags & (1 << 13) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
49239
49755
|
return new Raw.StarGift({
|
|
49240
49756
|
limited: limited,
|
|
49241
49757
|
soldOut: soldOut,
|
|
@@ -49262,6 +49778,9 @@ var Raw;
|
|
|
49262
49778
|
lockedUntilDate: lockedUntilDate,
|
|
49263
49779
|
auctionSlug: auctionSlug,
|
|
49264
49780
|
giftsPerRound: giftsPerRound,
|
|
49781
|
+
auctionStartDate: auctionStartDate,
|
|
49782
|
+
upgradeVariants: upgradeVariants,
|
|
49783
|
+
background: background,
|
|
49265
49784
|
});
|
|
49266
49785
|
}
|
|
49267
49786
|
write() {
|
|
@@ -49289,6 +49808,9 @@ var Raw;
|
|
|
49289
49808
|
flags |= this.lockedUntilDate !== undefined ? 1 << 9 : 0;
|
|
49290
49809
|
flags |= this.auctionSlug !== undefined ? 1 << 11 : 0;
|
|
49291
49810
|
flags |= this.giftsPerRound !== undefined ? 1 << 11 : 0;
|
|
49811
|
+
flags |= this.auctionStartDate !== undefined ? 1 << 11 : 0;
|
|
49812
|
+
flags |= this.upgradeVariants !== undefined ? 1 << 12 : 0;
|
|
49813
|
+
flags |= this.background !== undefined ? 1 << 13 : 0;
|
|
49292
49814
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
49293
49815
|
if (this.id !== undefined) {
|
|
49294
49816
|
b.write(index_js_1.Primitive.Long.write(this.id));
|
|
@@ -49344,6 +49866,15 @@ var Raw;
|
|
|
49344
49866
|
if (this.giftsPerRound !== undefined) {
|
|
49345
49867
|
b.write(index_js_1.Primitive.Int.write(this.giftsPerRound));
|
|
49346
49868
|
}
|
|
49869
|
+
if (this.auctionStartDate !== undefined) {
|
|
49870
|
+
b.write(index_js_1.Primitive.Int.write(this.auctionStartDate));
|
|
49871
|
+
}
|
|
49872
|
+
if (this.upgradeVariants !== undefined) {
|
|
49873
|
+
b.write(index_js_1.Primitive.Int.write(this.upgradeVariants));
|
|
49874
|
+
}
|
|
49875
|
+
if (this.background !== undefined) {
|
|
49876
|
+
b.write(this.background.write());
|
|
49877
|
+
}
|
|
49347
49878
|
return deps_js_1.Buffer.from(b.buffer);
|
|
49348
49879
|
}
|
|
49349
49880
|
}
|
|
@@ -49352,6 +49883,8 @@ var Raw;
|
|
|
49352
49883
|
requirePremium;
|
|
49353
49884
|
resaleTonOnly;
|
|
49354
49885
|
themeAvailable;
|
|
49886
|
+
burned;
|
|
49887
|
+
crafted;
|
|
49355
49888
|
id;
|
|
49356
49889
|
giftId;
|
|
49357
49890
|
title;
|
|
@@ -49368,19 +49901,24 @@ var Raw;
|
|
|
49368
49901
|
releasedBy;
|
|
49369
49902
|
valueAmount;
|
|
49370
49903
|
valueCurrency;
|
|
49904
|
+
valueUsdAmount;
|
|
49371
49905
|
themePeer;
|
|
49372
49906
|
peerColor;
|
|
49373
49907
|
hostId;
|
|
49908
|
+
offerMinStars;
|
|
49909
|
+
craftChancePermille;
|
|
49374
49910
|
constructor(params) {
|
|
49375
49911
|
super();
|
|
49376
49912
|
this.classType = 'types';
|
|
49377
49913
|
this.className = 'StarGiftUnique';
|
|
49378
|
-
this.constructorId =
|
|
49914
|
+
this.constructorId = 0x85f0a9cd;
|
|
49379
49915
|
this.subclassOfId = 0xc31c590b;
|
|
49380
49916
|
this._slots = [
|
|
49381
49917
|
'requirePremium',
|
|
49382
49918
|
'resaleTonOnly',
|
|
49383
49919
|
'themeAvailable',
|
|
49920
|
+
'burned',
|
|
49921
|
+
'crafted',
|
|
49384
49922
|
'id',
|
|
49385
49923
|
'giftId',
|
|
49386
49924
|
'title',
|
|
@@ -49397,13 +49935,18 @@ var Raw;
|
|
|
49397
49935
|
'releasedBy',
|
|
49398
49936
|
'valueAmount',
|
|
49399
49937
|
'valueCurrency',
|
|
49938
|
+
'valueUsdAmount',
|
|
49400
49939
|
'themePeer',
|
|
49401
49940
|
'peerColor',
|
|
49402
49941
|
'hostId',
|
|
49942
|
+
'offerMinStars',
|
|
49943
|
+
'craftChancePermille',
|
|
49403
49944
|
];
|
|
49404
49945
|
this.requirePremium = params.requirePremium;
|
|
49405
49946
|
this.resaleTonOnly = params.resaleTonOnly;
|
|
49406
49947
|
this.themeAvailable = params.themeAvailable;
|
|
49948
|
+
this.burned = params.burned;
|
|
49949
|
+
this.crafted = params.crafted;
|
|
49407
49950
|
this.id = params.id;
|
|
49408
49951
|
this.giftId = params.giftId;
|
|
49409
49952
|
this.title = params.title;
|
|
@@ -49420,15 +49963,20 @@ var Raw;
|
|
|
49420
49963
|
this.releasedBy = params.releasedBy;
|
|
49421
49964
|
this.valueAmount = params.valueAmount;
|
|
49422
49965
|
this.valueCurrency = params.valueCurrency;
|
|
49966
|
+
this.valueUsdAmount = params.valueUsdAmount;
|
|
49423
49967
|
this.themePeer = params.themePeer;
|
|
49424
49968
|
this.peerColor = params.peerColor;
|
|
49425
49969
|
this.hostId = params.hostId;
|
|
49970
|
+
this.offerMinStars = params.offerMinStars;
|
|
49971
|
+
this.craftChancePermille = params.craftChancePermille;
|
|
49426
49972
|
}
|
|
49427
49973
|
static async read(_data, ..._args) {
|
|
49428
49974
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
49429
49975
|
let requirePremium = flags & (1 << 6) ? true : false;
|
|
49430
49976
|
let resaleTonOnly = flags & (1 << 7) ? true : false;
|
|
49431
49977
|
let themeAvailable = flags & (1 << 9) ? true : false;
|
|
49978
|
+
let burned = flags & (1 << 14) ? true : false;
|
|
49979
|
+
let crafted = flags & (1 << 15) ? true : false;
|
|
49432
49980
|
let id = await index_js_1.Primitive.Long.read(_data);
|
|
49433
49981
|
let giftId = await index_js_1.Primitive.Long.read(_data);
|
|
49434
49982
|
let title = await index_js_1.Primitive.String.read(_data);
|
|
@@ -49445,13 +49993,18 @@ var Raw;
|
|
|
49445
49993
|
let releasedBy = flags & (1 << 5) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
49446
49994
|
let valueAmount = flags & (1 << 8) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
49447
49995
|
let valueCurrency = flags & (1 << 8) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
49996
|
+
let valueUsdAmount = flags & (1 << 8) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
49448
49997
|
let themePeer = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
49449
49998
|
let peerColor = flags & (1 << 11) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
49450
49999
|
let hostId = flags & (1 << 12) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
50000
|
+
let offerMinStars = flags & (1 << 13) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
50001
|
+
let craftChancePermille = flags & (1 << 16) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
49451
50002
|
return new Raw.StarGiftUnique({
|
|
49452
50003
|
requirePremium: requirePremium,
|
|
49453
50004
|
resaleTonOnly: resaleTonOnly,
|
|
49454
50005
|
themeAvailable: themeAvailable,
|
|
50006
|
+
burned: burned,
|
|
50007
|
+
crafted: crafted,
|
|
49455
50008
|
id: id,
|
|
49456
50009
|
giftId: giftId,
|
|
49457
50010
|
title: title,
|
|
@@ -49468,9 +50021,12 @@ var Raw;
|
|
|
49468
50021
|
releasedBy: releasedBy,
|
|
49469
50022
|
valueAmount: valueAmount,
|
|
49470
50023
|
valueCurrency: valueCurrency,
|
|
50024
|
+
valueUsdAmount: valueUsdAmount,
|
|
49471
50025
|
themePeer: themePeer,
|
|
49472
50026
|
peerColor: peerColor,
|
|
49473
50027
|
hostId: hostId,
|
|
50028
|
+
offerMinStars: offerMinStars,
|
|
50029
|
+
craftChancePermille: craftChancePermille,
|
|
49474
50030
|
});
|
|
49475
50031
|
}
|
|
49476
50032
|
write() {
|
|
@@ -49480,6 +50036,8 @@ var Raw;
|
|
|
49480
50036
|
flags |= this.requirePremium ? 1 << 6 : 0;
|
|
49481
50037
|
flags |= this.resaleTonOnly ? 1 << 7 : 0;
|
|
49482
50038
|
flags |= this.themeAvailable ? 1 << 9 : 0;
|
|
50039
|
+
flags |= this.burned ? 1 << 14 : 0;
|
|
50040
|
+
flags |= this.crafted ? 1 << 15 : 0;
|
|
49483
50041
|
flags |= this.ownerId !== undefined ? 1 << 0 : 0;
|
|
49484
50042
|
flags |= this.ownerName !== undefined ? 1 << 1 : 0;
|
|
49485
50043
|
flags |= this.ownerAddress !== undefined ? 1 << 2 : 0;
|
|
@@ -49488,9 +50046,12 @@ var Raw;
|
|
|
49488
50046
|
flags |= this.releasedBy !== undefined ? 1 << 5 : 0;
|
|
49489
50047
|
flags |= this.valueAmount !== undefined ? 1 << 8 : 0;
|
|
49490
50048
|
flags |= this.valueCurrency !== undefined ? 1 << 8 : 0;
|
|
50049
|
+
flags |= this.valueUsdAmount !== undefined ? 1 << 8 : 0;
|
|
49491
50050
|
flags |= this.themePeer !== undefined ? 1 << 10 : 0;
|
|
49492
50051
|
flags |= this.peerColor !== undefined ? 1 << 11 : 0;
|
|
49493
50052
|
flags |= this.hostId !== undefined ? 1 << 12 : 0;
|
|
50053
|
+
flags |= this.offerMinStars !== undefined ? 1 << 13 : 0;
|
|
50054
|
+
flags |= this.craftChancePermille !== undefined ? 1 << 16 : 0;
|
|
49494
50055
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
49495
50056
|
if (this.id !== undefined) {
|
|
49496
50057
|
b.write(index_js_1.Primitive.Long.write(this.id));
|
|
@@ -49540,6 +50101,9 @@ var Raw;
|
|
|
49540
50101
|
if (this.valueCurrency !== undefined) {
|
|
49541
50102
|
b.write(index_js_1.Primitive.String.write(this.valueCurrency));
|
|
49542
50103
|
}
|
|
50104
|
+
if (this.valueUsdAmount !== undefined) {
|
|
50105
|
+
b.write(index_js_1.Primitive.Long.write(this.valueUsdAmount));
|
|
50106
|
+
}
|
|
49543
50107
|
if (this.themePeer !== undefined) {
|
|
49544
50108
|
b.write(this.themePeer.write());
|
|
49545
50109
|
}
|
|
@@ -49549,6 +50113,12 @@ var Raw;
|
|
|
49549
50113
|
if (this.hostId !== undefined) {
|
|
49550
50114
|
b.write(this.hostId.write());
|
|
49551
50115
|
}
|
|
50116
|
+
if (this.offerMinStars !== undefined) {
|
|
50117
|
+
b.write(index_js_1.Primitive.Int.write(this.offerMinStars));
|
|
50118
|
+
}
|
|
50119
|
+
if (this.craftChancePermille !== undefined) {
|
|
50120
|
+
b.write(index_js_1.Primitive.Int.write(this.craftChancePermille));
|
|
50121
|
+
}
|
|
49552
50122
|
return deps_js_1.Buffer.from(b.buffer);
|
|
49553
50123
|
}
|
|
49554
50124
|
}
|
|
@@ -50033,41 +50603,49 @@ var Raw;
|
|
|
50033
50603
|
}
|
|
50034
50604
|
Raw.BotVerification = BotVerification;
|
|
50035
50605
|
class StarGiftAttributeModel extends index_js_1.TLObject {
|
|
50606
|
+
crafted;
|
|
50036
50607
|
name;
|
|
50037
50608
|
document;
|
|
50038
|
-
|
|
50609
|
+
rarity;
|
|
50039
50610
|
constructor(params) {
|
|
50040
50611
|
super();
|
|
50041
50612
|
this.classType = 'types';
|
|
50042
50613
|
this.className = 'StarGiftAttributeModel';
|
|
50043
|
-
this.constructorId =
|
|
50614
|
+
this.constructorId = 0x565251e2;
|
|
50044
50615
|
this.subclassOfId = 0x87b581c8;
|
|
50045
|
-
this._slots = ['name', 'document', '
|
|
50616
|
+
this._slots = ['crafted', 'name', 'document', 'rarity'];
|
|
50617
|
+
this.crafted = params.crafted;
|
|
50046
50618
|
this.name = params.name;
|
|
50047
50619
|
this.document = params.document;
|
|
50048
|
-
this.
|
|
50620
|
+
this.rarity = params.rarity;
|
|
50049
50621
|
}
|
|
50050
50622
|
static async read(_data, ..._args) {
|
|
50623
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
50624
|
+
let crafted = flags & (1 << 0) ? true : false;
|
|
50051
50625
|
let name = await index_js_1.Primitive.String.read(_data);
|
|
50052
50626
|
let document = await index_js_1.TLObject.read(_data);
|
|
50053
|
-
let
|
|
50627
|
+
let rarity = await index_js_1.TLObject.read(_data);
|
|
50054
50628
|
return new Raw.StarGiftAttributeModel({
|
|
50629
|
+
crafted: crafted,
|
|
50055
50630
|
name: name,
|
|
50056
50631
|
document: document,
|
|
50057
|
-
|
|
50632
|
+
rarity: rarity,
|
|
50058
50633
|
});
|
|
50059
50634
|
}
|
|
50060
50635
|
write() {
|
|
50061
50636
|
const b = new deps_js_1.BytesIO();
|
|
50062
50637
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
50638
|
+
let flags = 0;
|
|
50639
|
+
flags |= this.crafted ? 1 << 0 : 0;
|
|
50640
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
50063
50641
|
if (this.name !== undefined) {
|
|
50064
50642
|
b.write(index_js_1.Primitive.String.write(this.name));
|
|
50065
50643
|
}
|
|
50066
50644
|
if (this.document !== undefined) {
|
|
50067
50645
|
b.write(this.document.write());
|
|
50068
50646
|
}
|
|
50069
|
-
if (this.
|
|
50070
|
-
b.write(
|
|
50647
|
+
if (this.rarity !== undefined) {
|
|
50648
|
+
b.write(this.rarity.write());
|
|
50071
50649
|
}
|
|
50072
50650
|
return deps_js_1.Buffer.from(b.buffer);
|
|
50073
50651
|
}
|
|
@@ -50076,27 +50654,23 @@ var Raw;
|
|
|
50076
50654
|
class StarGiftAttributePattern extends index_js_1.TLObject {
|
|
50077
50655
|
name;
|
|
50078
50656
|
document;
|
|
50079
|
-
|
|
50657
|
+
rarity;
|
|
50080
50658
|
constructor(params) {
|
|
50081
50659
|
super();
|
|
50082
50660
|
this.classType = 'types';
|
|
50083
50661
|
this.className = 'StarGiftAttributePattern';
|
|
50084
|
-
this.constructorId =
|
|
50662
|
+
this.constructorId = 0x4e7085ea;
|
|
50085
50663
|
this.subclassOfId = 0x87b581c8;
|
|
50086
|
-
this._slots = ['name', 'document', '
|
|
50664
|
+
this._slots = ['name', 'document', 'rarity'];
|
|
50087
50665
|
this.name = params.name;
|
|
50088
50666
|
this.document = params.document;
|
|
50089
|
-
this.
|
|
50667
|
+
this.rarity = params.rarity;
|
|
50090
50668
|
}
|
|
50091
50669
|
static async read(_data, ..._args) {
|
|
50092
50670
|
let name = await index_js_1.Primitive.String.read(_data);
|
|
50093
50671
|
let document = await index_js_1.TLObject.read(_data);
|
|
50094
|
-
let
|
|
50095
|
-
return new Raw.StarGiftAttributePattern({
|
|
50096
|
-
name: name,
|
|
50097
|
-
document: document,
|
|
50098
|
-
rarityPermille: rarityPermille,
|
|
50099
|
-
});
|
|
50672
|
+
let rarity = await index_js_1.TLObject.read(_data);
|
|
50673
|
+
return new Raw.StarGiftAttributePattern({ name: name, document: document, rarity: rarity });
|
|
50100
50674
|
}
|
|
50101
50675
|
write() {
|
|
50102
50676
|
const b = new deps_js_1.BytesIO();
|
|
@@ -50107,8 +50681,8 @@ var Raw;
|
|
|
50107
50681
|
if (this.document !== undefined) {
|
|
50108
50682
|
b.write(this.document.write());
|
|
50109
50683
|
}
|
|
50110
|
-
if (this.
|
|
50111
|
-
b.write(
|
|
50684
|
+
if (this.rarity !== undefined) {
|
|
50685
|
+
b.write(this.rarity.write());
|
|
50112
50686
|
}
|
|
50113
50687
|
return deps_js_1.Buffer.from(b.buffer);
|
|
50114
50688
|
}
|
|
@@ -50121,12 +50695,12 @@ var Raw;
|
|
|
50121
50695
|
edgeColor;
|
|
50122
50696
|
patternColor;
|
|
50123
50697
|
textColor;
|
|
50124
|
-
|
|
50698
|
+
rarity;
|
|
50125
50699
|
constructor(params) {
|
|
50126
50700
|
super();
|
|
50127
50701
|
this.classType = 'types';
|
|
50128
50702
|
this.className = 'StarGiftAttributeBackdrop';
|
|
50129
|
-
this.constructorId =
|
|
50703
|
+
this.constructorId = 0x9f2504e4;
|
|
50130
50704
|
this.subclassOfId = 0x87b581c8;
|
|
50131
50705
|
this._slots = [
|
|
50132
50706
|
'name',
|
|
@@ -50135,7 +50709,7 @@ var Raw;
|
|
|
50135
50709
|
'edgeColor',
|
|
50136
50710
|
'patternColor',
|
|
50137
50711
|
'textColor',
|
|
50138
|
-
'
|
|
50712
|
+
'rarity',
|
|
50139
50713
|
];
|
|
50140
50714
|
this.name = params.name;
|
|
50141
50715
|
this.backdropId = params.backdropId;
|
|
@@ -50143,7 +50717,7 @@ var Raw;
|
|
|
50143
50717
|
this.edgeColor = params.edgeColor;
|
|
50144
50718
|
this.patternColor = params.patternColor;
|
|
50145
50719
|
this.textColor = params.textColor;
|
|
50146
|
-
this.
|
|
50720
|
+
this.rarity = params.rarity;
|
|
50147
50721
|
}
|
|
50148
50722
|
static async read(_data, ..._args) {
|
|
50149
50723
|
let name = await index_js_1.Primitive.String.read(_data);
|
|
@@ -50152,7 +50726,7 @@ var Raw;
|
|
|
50152
50726
|
let edgeColor = await index_js_1.Primitive.Int.read(_data);
|
|
50153
50727
|
let patternColor = await index_js_1.Primitive.Int.read(_data);
|
|
50154
50728
|
let textColor = await index_js_1.Primitive.Int.read(_data);
|
|
50155
|
-
let
|
|
50729
|
+
let rarity = await index_js_1.TLObject.read(_data);
|
|
50156
50730
|
return new Raw.StarGiftAttributeBackdrop({
|
|
50157
50731
|
name: name,
|
|
50158
50732
|
backdropId: backdropId,
|
|
@@ -50160,7 +50734,7 @@ var Raw;
|
|
|
50160
50734
|
edgeColor: edgeColor,
|
|
50161
50735
|
patternColor: patternColor,
|
|
50162
50736
|
textColor: textColor,
|
|
50163
|
-
|
|
50737
|
+
rarity: rarity,
|
|
50164
50738
|
});
|
|
50165
50739
|
}
|
|
50166
50740
|
write() {
|
|
@@ -50184,8 +50758,8 @@ var Raw;
|
|
|
50184
50758
|
if (this.textColor !== undefined) {
|
|
50185
50759
|
b.write(index_js_1.Primitive.Int.write(this.textColor));
|
|
50186
50760
|
}
|
|
50187
|
-
if (this.
|
|
50188
|
-
b.write(
|
|
50761
|
+
if (this.rarity !== undefined) {
|
|
50762
|
+
b.write(this.rarity.write());
|
|
50189
50763
|
}
|
|
50190
50764
|
return deps_js_1.Buffer.from(b.buffer);
|
|
50191
50765
|
}
|
|
@@ -50266,11 +50840,13 @@ var Raw;
|
|
|
50266
50840
|
collectionId;
|
|
50267
50841
|
prepaidUpgradeHash;
|
|
50268
50842
|
dropOriginalDetailsStars;
|
|
50843
|
+
giftNum;
|
|
50844
|
+
canCraftAt;
|
|
50269
50845
|
constructor(params) {
|
|
50270
50846
|
super();
|
|
50271
50847
|
this.classType = 'types';
|
|
50272
50848
|
this.className = 'SavedStarGift';
|
|
50273
|
-
this.constructorId =
|
|
50849
|
+
this.constructorId = 0x41df43fc;
|
|
50274
50850
|
this.subclassOfId = 0x8e2b3c14;
|
|
50275
50851
|
this._slots = [
|
|
50276
50852
|
'nameHidden',
|
|
@@ -50294,6 +50870,8 @@ var Raw;
|
|
|
50294
50870
|
'collectionId',
|
|
50295
50871
|
'prepaidUpgradeHash',
|
|
50296
50872
|
'dropOriginalDetailsStars',
|
|
50873
|
+
'giftNum',
|
|
50874
|
+
'canCraftAt',
|
|
50297
50875
|
];
|
|
50298
50876
|
this.nameHidden = params.nameHidden;
|
|
50299
50877
|
this.unsaved = params.unsaved;
|
|
@@ -50316,6 +50894,8 @@ var Raw;
|
|
|
50316
50894
|
this.collectionId = params.collectionId;
|
|
50317
50895
|
this.prepaidUpgradeHash = params.prepaidUpgradeHash;
|
|
50318
50896
|
this.dropOriginalDetailsStars = params.dropOriginalDetailsStars;
|
|
50897
|
+
this.giftNum = params.giftNum;
|
|
50898
|
+
this.canCraftAt = params.canCraftAt;
|
|
50319
50899
|
}
|
|
50320
50900
|
static async read(_data, ..._args) {
|
|
50321
50901
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -50340,6 +50920,8 @@ var Raw;
|
|
|
50340
50920
|
let collectionId = flags & (1 << 15) ? await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int) : [];
|
|
50341
50921
|
let prepaidUpgradeHash = flags & (1 << 16) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
50342
50922
|
let dropOriginalDetailsStars = flags & (1 << 18) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
50923
|
+
let giftNum = flags & (1 << 19) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
50924
|
+
let canCraftAt = flags & (1 << 20) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
50343
50925
|
return new Raw.SavedStarGift({
|
|
50344
50926
|
nameHidden: nameHidden,
|
|
50345
50927
|
unsaved: unsaved,
|
|
@@ -50362,6 +50944,8 @@ var Raw;
|
|
|
50362
50944
|
collectionId: collectionId,
|
|
50363
50945
|
prepaidUpgradeHash: prepaidUpgradeHash,
|
|
50364
50946
|
dropOriginalDetailsStars: dropOriginalDetailsStars,
|
|
50947
|
+
giftNum: giftNum,
|
|
50948
|
+
canCraftAt: canCraftAt,
|
|
50365
50949
|
});
|
|
50366
50950
|
}
|
|
50367
50951
|
write() {
|
|
@@ -50387,6 +50971,8 @@ var Raw;
|
|
|
50387
50971
|
flags |= this.collectionId ? 1 << 15 : 0;
|
|
50388
50972
|
flags |= this.prepaidUpgradeHash !== undefined ? 1 << 16 : 0;
|
|
50389
50973
|
flags |= this.dropOriginalDetailsStars !== undefined ? 1 << 18 : 0;
|
|
50974
|
+
flags |= this.giftNum !== undefined ? 1 << 19 : 0;
|
|
50975
|
+
flags |= this.canCraftAt !== undefined ? 1 << 20 : 0;
|
|
50390
50976
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
50391
50977
|
if (this.fromId !== undefined) {
|
|
50392
50978
|
b.write(this.fromId.write());
|
|
@@ -50433,6 +51019,12 @@ var Raw;
|
|
|
50433
51019
|
if (this.dropOriginalDetailsStars !== undefined) {
|
|
50434
51020
|
b.write(index_js_1.Primitive.Long.write(this.dropOriginalDetailsStars));
|
|
50435
51021
|
}
|
|
51022
|
+
if (this.giftNum !== undefined) {
|
|
51023
|
+
b.write(index_js_1.Primitive.Int.write(this.giftNum));
|
|
51024
|
+
}
|
|
51025
|
+
if (this.canCraftAt !== undefined) {
|
|
51026
|
+
b.write(index_js_1.Primitive.Int.write(this.canCraftAt));
|
|
51027
|
+
}
|
|
50436
51028
|
return deps_js_1.Buffer.from(b.buffer);
|
|
50437
51029
|
}
|
|
50438
51030
|
}
|
|
@@ -51717,7 +52309,6 @@ var Raw;
|
|
|
51717
52309
|
class GroupCallDonor extends index_js_1.TLObject {
|
|
51718
52310
|
top;
|
|
51719
52311
|
my;
|
|
51720
|
-
anonymous;
|
|
51721
52312
|
peerId;
|
|
51722
52313
|
stars;
|
|
51723
52314
|
constructor(params) {
|
|
@@ -51726,10 +52317,9 @@ var Raw;
|
|
|
51726
52317
|
this.className = 'GroupCallDonor';
|
|
51727
52318
|
this.constructorId = 0xee430c85;
|
|
51728
52319
|
this.subclassOfId = 0x14f28bb0;
|
|
51729
|
-
this._slots = ['top', 'my', '
|
|
52320
|
+
this._slots = ['top', 'my', 'peerId', 'stars'];
|
|
51730
52321
|
this.top = params.top;
|
|
51731
52322
|
this.my = params.my;
|
|
51732
|
-
this.anonymous = params.anonymous;
|
|
51733
52323
|
this.peerId = params.peerId;
|
|
51734
52324
|
this.stars = params.stars;
|
|
51735
52325
|
}
|
|
@@ -51737,16 +52327,9 @@ var Raw;
|
|
|
51737
52327
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
51738
52328
|
let top = flags & (1 << 0) ? true : false;
|
|
51739
52329
|
let my = flags & (1 << 1) ? true : false;
|
|
51740
|
-
let anonymous = flags & (1 << 2) ? true : false;
|
|
51741
52330
|
let peerId = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
51742
52331
|
let stars = await index_js_1.Primitive.Long.read(_data);
|
|
51743
|
-
return new Raw.GroupCallDonor({
|
|
51744
|
-
top: top,
|
|
51745
|
-
my: my,
|
|
51746
|
-
anonymous: anonymous,
|
|
51747
|
-
peerId: peerId,
|
|
51748
|
-
stars: stars,
|
|
51749
|
-
});
|
|
52332
|
+
return new Raw.GroupCallDonor({ top: top, my: my, peerId: peerId, stars: stars });
|
|
51750
52333
|
}
|
|
51751
52334
|
write() {
|
|
51752
52335
|
const b = new deps_js_1.BytesIO();
|
|
@@ -51754,7 +52337,6 @@ var Raw;
|
|
|
51754
52337
|
let flags = 0;
|
|
51755
52338
|
flags |= this.top ? 1 << 0 : 0;
|
|
51756
52339
|
flags |= this.my ? 1 << 1 : 0;
|
|
51757
|
-
flags |= this.anonymous ? 1 << 2 : 0;
|
|
51758
52340
|
flags |= this.peerId !== undefined ? 1 << 3 : 0;
|
|
51759
52341
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
51760
52342
|
if (this.peerId !== undefined) {
|
|
@@ -51864,14 +52446,16 @@ var Raw;
|
|
|
51864
52446
|
bidLevels;
|
|
51865
52447
|
topBidders;
|
|
51866
52448
|
nextRoundAt;
|
|
52449
|
+
lastGiftNum;
|
|
51867
52450
|
giftsLeft;
|
|
51868
52451
|
currentRound;
|
|
51869
52452
|
totalRounds;
|
|
52453
|
+
rounds;
|
|
51870
52454
|
constructor(params) {
|
|
51871
52455
|
super();
|
|
51872
52456
|
this.classType = 'types';
|
|
51873
52457
|
this.className = 'StarGiftAuctionState';
|
|
51874
|
-
this.constructorId =
|
|
52458
|
+
this.constructorId = 0x771a4e66;
|
|
51875
52459
|
this.subclassOfId = 0x229414fb;
|
|
51876
52460
|
this._slots = [
|
|
51877
52461
|
'version',
|
|
@@ -51881,9 +52465,11 @@ var Raw;
|
|
|
51881
52465
|
'bidLevels',
|
|
51882
52466
|
'topBidders',
|
|
51883
52467
|
'nextRoundAt',
|
|
52468
|
+
'lastGiftNum',
|
|
51884
52469
|
'giftsLeft',
|
|
51885
52470
|
'currentRound',
|
|
51886
52471
|
'totalRounds',
|
|
52472
|
+
'rounds',
|
|
51887
52473
|
];
|
|
51888
52474
|
this.version = params.version;
|
|
51889
52475
|
this.startDate = params.startDate;
|
|
@@ -51892,9 +52478,11 @@ var Raw;
|
|
|
51892
52478
|
this.bidLevels = params.bidLevels;
|
|
51893
52479
|
this.topBidders = params.topBidders;
|
|
51894
52480
|
this.nextRoundAt = params.nextRoundAt;
|
|
52481
|
+
this.lastGiftNum = params.lastGiftNum;
|
|
51895
52482
|
this.giftsLeft = params.giftsLeft;
|
|
51896
52483
|
this.currentRound = params.currentRound;
|
|
51897
52484
|
this.totalRounds = params.totalRounds;
|
|
52485
|
+
this.rounds = params.rounds;
|
|
51898
52486
|
}
|
|
51899
52487
|
static async read(_data, ..._args) {
|
|
51900
52488
|
let version = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -51904,9 +52492,11 @@ var Raw;
|
|
|
51904
52492
|
let bidLevels = await index_js_1.TLObject.read(_data);
|
|
51905
52493
|
let topBidders = await index_js_1.TLObject.read(_data, index_js_1.Primitive.Long);
|
|
51906
52494
|
let nextRoundAt = await index_js_1.Primitive.Int.read(_data);
|
|
52495
|
+
let lastGiftNum = await index_js_1.Primitive.Int.read(_data);
|
|
51907
52496
|
let giftsLeft = await index_js_1.Primitive.Int.read(_data);
|
|
51908
52497
|
let currentRound = await index_js_1.Primitive.Int.read(_data);
|
|
51909
52498
|
let totalRounds = await index_js_1.Primitive.Int.read(_data);
|
|
52499
|
+
let rounds = await index_js_1.TLObject.read(_data);
|
|
51910
52500
|
return new Raw.StarGiftAuctionState({
|
|
51911
52501
|
version: version,
|
|
51912
52502
|
startDate: startDate,
|
|
@@ -51915,9 +52505,11 @@ var Raw;
|
|
|
51915
52505
|
bidLevels: bidLevels,
|
|
51916
52506
|
topBidders: topBidders,
|
|
51917
52507
|
nextRoundAt: nextRoundAt,
|
|
52508
|
+
lastGiftNum: lastGiftNum,
|
|
51918
52509
|
giftsLeft: giftsLeft,
|
|
51919
52510
|
currentRound: currentRound,
|
|
51920
52511
|
totalRounds: totalRounds,
|
|
52512
|
+
rounds: rounds,
|
|
51921
52513
|
});
|
|
51922
52514
|
}
|
|
51923
52515
|
write() {
|
|
@@ -51944,6 +52536,9 @@ var Raw;
|
|
|
51944
52536
|
if (this.nextRoundAt !== undefined) {
|
|
51945
52537
|
b.write(index_js_1.Primitive.Int.write(this.nextRoundAt));
|
|
51946
52538
|
}
|
|
52539
|
+
if (this.lastGiftNum !== undefined) {
|
|
52540
|
+
b.write(index_js_1.Primitive.Int.write(this.lastGiftNum));
|
|
52541
|
+
}
|
|
51947
52542
|
if (this.giftsLeft !== undefined) {
|
|
51948
52543
|
b.write(index_js_1.Primitive.Int.write(this.giftsLeft));
|
|
51949
52544
|
}
|
|
@@ -51953,6 +52548,9 @@ var Raw;
|
|
|
51953
52548
|
if (this.totalRounds !== undefined) {
|
|
51954
52549
|
b.write(index_js_1.Primitive.Int.write(this.totalRounds));
|
|
51955
52550
|
}
|
|
52551
|
+
if (this.rounds) {
|
|
52552
|
+
b.write(index_js_1.Primitive.Vector.write(this.rounds));
|
|
52553
|
+
}
|
|
51956
52554
|
return deps_js_1.Buffer.from(b.buffer);
|
|
51957
52555
|
}
|
|
51958
52556
|
}
|
|
@@ -51961,30 +52559,55 @@ var Raw;
|
|
|
51961
52559
|
startDate;
|
|
51962
52560
|
endDate;
|
|
51963
52561
|
averagePrice;
|
|
52562
|
+
listedCount;
|
|
52563
|
+
fragmentListedCount;
|
|
52564
|
+
fragmentListedUrl;
|
|
51964
52565
|
constructor(params) {
|
|
51965
52566
|
super();
|
|
51966
52567
|
this.classType = 'types';
|
|
51967
52568
|
this.className = 'StarGiftAuctionStateFinished';
|
|
51968
|
-
this.constructorId =
|
|
52569
|
+
this.constructorId = 0x972dabbf;
|
|
51969
52570
|
this.subclassOfId = 0x229414fb;
|
|
51970
|
-
this._slots = [
|
|
52571
|
+
this._slots = [
|
|
52572
|
+
'startDate',
|
|
52573
|
+
'endDate',
|
|
52574
|
+
'averagePrice',
|
|
52575
|
+
'listedCount',
|
|
52576
|
+
'fragmentListedCount',
|
|
52577
|
+
'fragmentListedUrl',
|
|
52578
|
+
];
|
|
51971
52579
|
this.startDate = params.startDate;
|
|
51972
52580
|
this.endDate = params.endDate;
|
|
51973
52581
|
this.averagePrice = params.averagePrice;
|
|
52582
|
+
this.listedCount = params.listedCount;
|
|
52583
|
+
this.fragmentListedCount = params.fragmentListedCount;
|
|
52584
|
+
this.fragmentListedUrl = params.fragmentListedUrl;
|
|
51974
52585
|
}
|
|
51975
52586
|
static async read(_data, ..._args) {
|
|
52587
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
51976
52588
|
let startDate = await index_js_1.Primitive.Int.read(_data);
|
|
51977
52589
|
let endDate = await index_js_1.Primitive.Int.read(_data);
|
|
51978
52590
|
let averagePrice = await index_js_1.Primitive.Long.read(_data);
|
|
52591
|
+
let listedCount = flags & (1 << 0) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
52592
|
+
let fragmentListedCount = flags & (1 << 1) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
52593
|
+
let fragmentListedUrl = flags & (1 << 1) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
51979
52594
|
return new Raw.StarGiftAuctionStateFinished({
|
|
51980
52595
|
startDate: startDate,
|
|
51981
52596
|
endDate: endDate,
|
|
51982
52597
|
averagePrice: averagePrice,
|
|
52598
|
+
listedCount: listedCount,
|
|
52599
|
+
fragmentListedCount: fragmentListedCount,
|
|
52600
|
+
fragmentListedUrl: fragmentListedUrl,
|
|
51983
52601
|
});
|
|
51984
52602
|
}
|
|
51985
52603
|
write() {
|
|
51986
52604
|
const b = new deps_js_1.BytesIO();
|
|
51987
52605
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
52606
|
+
let flags = 0;
|
|
52607
|
+
flags |= this.listedCount !== undefined ? 1 << 0 : 0;
|
|
52608
|
+
flags |= this.fragmentListedCount !== undefined ? 1 << 1 : 0;
|
|
52609
|
+
flags |= this.fragmentListedUrl !== undefined ? 1 << 1 : 0;
|
|
52610
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
51988
52611
|
if (this.startDate !== undefined) {
|
|
51989
52612
|
b.write(index_js_1.Primitive.Int.write(this.startDate));
|
|
51990
52613
|
}
|
|
@@ -51994,6 +52617,15 @@ var Raw;
|
|
|
51994
52617
|
if (this.averagePrice !== undefined) {
|
|
51995
52618
|
b.write(index_js_1.Primitive.Long.write(this.averagePrice));
|
|
51996
52619
|
}
|
|
52620
|
+
if (this.listedCount !== undefined) {
|
|
52621
|
+
b.write(index_js_1.Primitive.Int.write(this.listedCount));
|
|
52622
|
+
}
|
|
52623
|
+
if (this.fragmentListedCount !== undefined) {
|
|
52624
|
+
b.write(index_js_1.Primitive.Int.write(this.fragmentListedCount));
|
|
52625
|
+
}
|
|
52626
|
+
if (this.fragmentListedUrl !== undefined) {
|
|
52627
|
+
b.write(index_js_1.Primitive.String.write(this.fragmentListedUrl));
|
|
52628
|
+
}
|
|
51997
52629
|
return deps_js_1.Buffer.from(b.buffer);
|
|
51998
52630
|
}
|
|
51999
52631
|
}
|
|
@@ -52080,13 +52712,23 @@ var Raw;
|
|
|
52080
52712
|
round;
|
|
52081
52713
|
pos;
|
|
52082
52714
|
message;
|
|
52715
|
+
giftNum;
|
|
52083
52716
|
constructor(params) {
|
|
52084
52717
|
super();
|
|
52085
52718
|
this.classType = 'types';
|
|
52086
52719
|
this.className = 'StarGiftAuctionAcquiredGift';
|
|
52087
|
-
this.constructorId =
|
|
52720
|
+
this.constructorId = 0x42b00348;
|
|
52088
52721
|
this.subclassOfId = 0x270d5233;
|
|
52089
|
-
this._slots = [
|
|
52722
|
+
this._slots = [
|
|
52723
|
+
'nameHidden',
|
|
52724
|
+
'peer',
|
|
52725
|
+
'date',
|
|
52726
|
+
'bidAmount',
|
|
52727
|
+
'round',
|
|
52728
|
+
'pos',
|
|
52729
|
+
'message',
|
|
52730
|
+
'giftNum',
|
|
52731
|
+
];
|
|
52090
52732
|
this.nameHidden = params.nameHidden;
|
|
52091
52733
|
this.peer = params.peer;
|
|
52092
52734
|
this.date = params.date;
|
|
@@ -52094,6 +52736,7 @@ var Raw;
|
|
|
52094
52736
|
this.round = params.round;
|
|
52095
52737
|
this.pos = params.pos;
|
|
52096
52738
|
this.message = params.message;
|
|
52739
|
+
this.giftNum = params.giftNum;
|
|
52097
52740
|
}
|
|
52098
52741
|
static async read(_data, ..._args) {
|
|
52099
52742
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -52104,6 +52747,7 @@ var Raw;
|
|
|
52104
52747
|
let round = await index_js_1.Primitive.Int.read(_data);
|
|
52105
52748
|
let pos = await index_js_1.Primitive.Int.read(_data);
|
|
52106
52749
|
let message = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
52750
|
+
let giftNum = flags & (1 << 2) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
52107
52751
|
return new Raw.StarGiftAuctionAcquiredGift({
|
|
52108
52752
|
nameHidden: nameHidden,
|
|
52109
52753
|
peer: peer,
|
|
@@ -52112,6 +52756,7 @@ var Raw;
|
|
|
52112
52756
|
round: round,
|
|
52113
52757
|
pos: pos,
|
|
52114
52758
|
message: message,
|
|
52759
|
+
giftNum: giftNum,
|
|
52115
52760
|
});
|
|
52116
52761
|
}
|
|
52117
52762
|
write() {
|
|
@@ -52120,6 +52765,7 @@ var Raw;
|
|
|
52120
52765
|
let flags = 0;
|
|
52121
52766
|
flags |= this.nameHidden ? 1 << 0 : 0;
|
|
52122
52767
|
flags |= this.message !== undefined ? 1 << 1 : 0;
|
|
52768
|
+
flags |= this.giftNum !== undefined ? 1 << 2 : 0;
|
|
52123
52769
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
52124
52770
|
if (this.peer !== undefined) {
|
|
52125
52771
|
b.write(this.peer.write());
|
|
@@ -52139,6 +52785,9 @@ var Raw;
|
|
|
52139
52785
|
if (this.message !== undefined) {
|
|
52140
52786
|
b.write(this.message.write());
|
|
52141
52787
|
}
|
|
52788
|
+
if (this.giftNum !== undefined) {
|
|
52789
|
+
b.write(index_js_1.Primitive.Int.write(this.giftNum));
|
|
52790
|
+
}
|
|
52142
52791
|
return deps_js_1.Buffer.from(b.buffer);
|
|
52143
52792
|
}
|
|
52144
52793
|
}
|
|
@@ -52230,6 +52879,477 @@ var Raw;
|
|
|
52230
52879
|
}
|
|
52231
52880
|
}
|
|
52232
52881
|
Raw.InputStarGiftAuctionSlug = InputStarGiftAuctionSlug;
|
|
52882
|
+
class Passkey extends index_js_1.TLObject {
|
|
52883
|
+
id;
|
|
52884
|
+
name;
|
|
52885
|
+
date;
|
|
52886
|
+
softwareEmojiId;
|
|
52887
|
+
lastUsageDate;
|
|
52888
|
+
constructor(params) {
|
|
52889
|
+
super();
|
|
52890
|
+
this.classType = 'types';
|
|
52891
|
+
this.className = 'Passkey';
|
|
52892
|
+
this.constructorId = 0x98613ebf;
|
|
52893
|
+
this.subclassOfId = 0xcf380de0;
|
|
52894
|
+
this._slots = ['id', 'name', 'date', 'softwareEmojiId', 'lastUsageDate'];
|
|
52895
|
+
this.id = params.id;
|
|
52896
|
+
this.name = params.name;
|
|
52897
|
+
this.date = params.date;
|
|
52898
|
+
this.softwareEmojiId = params.softwareEmojiId;
|
|
52899
|
+
this.lastUsageDate = params.lastUsageDate;
|
|
52900
|
+
}
|
|
52901
|
+
static async read(_data, ..._args) {
|
|
52902
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
52903
|
+
let id = await index_js_1.Primitive.String.read(_data);
|
|
52904
|
+
let name = await index_js_1.Primitive.String.read(_data);
|
|
52905
|
+
let date = await index_js_1.Primitive.Int.read(_data);
|
|
52906
|
+
let softwareEmojiId = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
52907
|
+
let lastUsageDate = flags & (1 << 1) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
52908
|
+
return new Raw.Passkey({
|
|
52909
|
+
id: id,
|
|
52910
|
+
name: name,
|
|
52911
|
+
date: date,
|
|
52912
|
+
softwareEmojiId: softwareEmojiId,
|
|
52913
|
+
lastUsageDate: lastUsageDate,
|
|
52914
|
+
});
|
|
52915
|
+
}
|
|
52916
|
+
write() {
|
|
52917
|
+
const b = new deps_js_1.BytesIO();
|
|
52918
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
52919
|
+
let flags = 0;
|
|
52920
|
+
flags |= this.softwareEmojiId !== undefined ? 1 << 0 : 0;
|
|
52921
|
+
flags |= this.lastUsageDate !== undefined ? 1 << 1 : 0;
|
|
52922
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
52923
|
+
if (this.id !== undefined) {
|
|
52924
|
+
b.write(index_js_1.Primitive.String.write(this.id));
|
|
52925
|
+
}
|
|
52926
|
+
if (this.name !== undefined) {
|
|
52927
|
+
b.write(index_js_1.Primitive.String.write(this.name));
|
|
52928
|
+
}
|
|
52929
|
+
if (this.date !== undefined) {
|
|
52930
|
+
b.write(index_js_1.Primitive.Int.write(this.date));
|
|
52931
|
+
}
|
|
52932
|
+
if (this.softwareEmojiId !== undefined) {
|
|
52933
|
+
b.write(index_js_1.Primitive.Long.write(this.softwareEmojiId));
|
|
52934
|
+
}
|
|
52935
|
+
if (this.lastUsageDate !== undefined) {
|
|
52936
|
+
b.write(index_js_1.Primitive.Int.write(this.lastUsageDate));
|
|
52937
|
+
}
|
|
52938
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
52939
|
+
}
|
|
52940
|
+
}
|
|
52941
|
+
Raw.Passkey = Passkey;
|
|
52942
|
+
class InputPasskeyResponseRegister extends index_js_1.TLObject {
|
|
52943
|
+
clientData;
|
|
52944
|
+
attestationData;
|
|
52945
|
+
constructor(params) {
|
|
52946
|
+
super();
|
|
52947
|
+
this.classType = 'types';
|
|
52948
|
+
this.className = 'InputPasskeyResponseRegister';
|
|
52949
|
+
this.constructorId = 0x3e63935c;
|
|
52950
|
+
this.subclassOfId = 0x1ef0c7cd;
|
|
52951
|
+
this._slots = ['clientData', 'attestationData'];
|
|
52952
|
+
this.clientData = params.clientData;
|
|
52953
|
+
this.attestationData = params.attestationData;
|
|
52954
|
+
}
|
|
52955
|
+
static async read(_data, ..._args) {
|
|
52956
|
+
let clientData = await index_js_1.TLObject.read(_data);
|
|
52957
|
+
let attestationData = await index_js_1.Primitive.Bytes.read(_data);
|
|
52958
|
+
return new Raw.InputPasskeyResponseRegister({
|
|
52959
|
+
clientData: clientData,
|
|
52960
|
+
attestationData: attestationData,
|
|
52961
|
+
});
|
|
52962
|
+
}
|
|
52963
|
+
write() {
|
|
52964
|
+
const b = new deps_js_1.BytesIO();
|
|
52965
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
52966
|
+
if (this.clientData !== undefined) {
|
|
52967
|
+
b.write(this.clientData.write());
|
|
52968
|
+
}
|
|
52969
|
+
if (this.attestationData !== undefined) {
|
|
52970
|
+
b.write(index_js_1.Primitive.Bytes.write(this.attestationData));
|
|
52971
|
+
}
|
|
52972
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
52973
|
+
}
|
|
52974
|
+
}
|
|
52975
|
+
Raw.InputPasskeyResponseRegister = InputPasskeyResponseRegister;
|
|
52976
|
+
class InputPasskeyResponseLogin extends index_js_1.TLObject {
|
|
52977
|
+
clientData;
|
|
52978
|
+
authenticatorData;
|
|
52979
|
+
signature;
|
|
52980
|
+
userHandle;
|
|
52981
|
+
constructor(params) {
|
|
52982
|
+
super();
|
|
52983
|
+
this.classType = 'types';
|
|
52984
|
+
this.className = 'InputPasskeyResponseLogin';
|
|
52985
|
+
this.constructorId = 0xc31fc14a;
|
|
52986
|
+
this.subclassOfId = 0x1ef0c7cd;
|
|
52987
|
+
this._slots = ['clientData', 'authenticatorData', 'signature', 'userHandle'];
|
|
52988
|
+
this.clientData = params.clientData;
|
|
52989
|
+
this.authenticatorData = params.authenticatorData;
|
|
52990
|
+
this.signature = params.signature;
|
|
52991
|
+
this.userHandle = params.userHandle;
|
|
52992
|
+
}
|
|
52993
|
+
static async read(_data, ..._args) {
|
|
52994
|
+
let clientData = await index_js_1.TLObject.read(_data);
|
|
52995
|
+
let authenticatorData = await index_js_1.Primitive.Bytes.read(_data);
|
|
52996
|
+
let signature = await index_js_1.Primitive.Bytes.read(_data);
|
|
52997
|
+
let userHandle = await index_js_1.Primitive.String.read(_data);
|
|
52998
|
+
return new Raw.InputPasskeyResponseLogin({
|
|
52999
|
+
clientData: clientData,
|
|
53000
|
+
authenticatorData: authenticatorData,
|
|
53001
|
+
signature: signature,
|
|
53002
|
+
userHandle: userHandle,
|
|
53003
|
+
});
|
|
53004
|
+
}
|
|
53005
|
+
write() {
|
|
53006
|
+
const b = new deps_js_1.BytesIO();
|
|
53007
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
53008
|
+
if (this.clientData !== undefined) {
|
|
53009
|
+
b.write(this.clientData.write());
|
|
53010
|
+
}
|
|
53011
|
+
if (this.authenticatorData !== undefined) {
|
|
53012
|
+
b.write(index_js_1.Primitive.Bytes.write(this.authenticatorData));
|
|
53013
|
+
}
|
|
53014
|
+
if (this.signature !== undefined) {
|
|
53015
|
+
b.write(index_js_1.Primitive.Bytes.write(this.signature));
|
|
53016
|
+
}
|
|
53017
|
+
if (this.userHandle !== undefined) {
|
|
53018
|
+
b.write(index_js_1.Primitive.String.write(this.userHandle));
|
|
53019
|
+
}
|
|
53020
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
53021
|
+
}
|
|
53022
|
+
}
|
|
53023
|
+
Raw.InputPasskeyResponseLogin = InputPasskeyResponseLogin;
|
|
53024
|
+
class InputPasskeyCredentialPublicKey extends index_js_1.TLObject {
|
|
53025
|
+
id;
|
|
53026
|
+
rawId;
|
|
53027
|
+
response;
|
|
53028
|
+
constructor(params) {
|
|
53029
|
+
super();
|
|
53030
|
+
this.classType = 'types';
|
|
53031
|
+
this.className = 'InputPasskeyCredentialPublicKey';
|
|
53032
|
+
this.constructorId = 0x3c27b78f;
|
|
53033
|
+
this.subclassOfId = 0x1eb1222e;
|
|
53034
|
+
this._slots = ['id', 'rawId', 'response'];
|
|
53035
|
+
this.id = params.id;
|
|
53036
|
+
this.rawId = params.rawId;
|
|
53037
|
+
this.response = params.response;
|
|
53038
|
+
}
|
|
53039
|
+
static async read(_data, ..._args) {
|
|
53040
|
+
let id = await index_js_1.Primitive.String.read(_data);
|
|
53041
|
+
let rawId = await index_js_1.Primitive.String.read(_data);
|
|
53042
|
+
let response = await index_js_1.TLObject.read(_data);
|
|
53043
|
+
return new Raw.InputPasskeyCredentialPublicKey({ id: id, rawId: rawId, response: response });
|
|
53044
|
+
}
|
|
53045
|
+
write() {
|
|
53046
|
+
const b = new deps_js_1.BytesIO();
|
|
53047
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
53048
|
+
if (this.id !== undefined) {
|
|
53049
|
+
b.write(index_js_1.Primitive.String.write(this.id));
|
|
53050
|
+
}
|
|
53051
|
+
if (this.rawId !== undefined) {
|
|
53052
|
+
b.write(index_js_1.Primitive.String.write(this.rawId));
|
|
53053
|
+
}
|
|
53054
|
+
if (this.response !== undefined) {
|
|
53055
|
+
b.write(this.response.write());
|
|
53056
|
+
}
|
|
53057
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
53058
|
+
}
|
|
53059
|
+
}
|
|
53060
|
+
Raw.InputPasskeyCredentialPublicKey = InputPasskeyCredentialPublicKey;
|
|
53061
|
+
class InputPasskeyCredentialFirebasePNV extends index_js_1.TLObject {
|
|
53062
|
+
pnvToken;
|
|
53063
|
+
constructor(params) {
|
|
53064
|
+
super();
|
|
53065
|
+
this.classType = 'types';
|
|
53066
|
+
this.className = 'InputPasskeyCredentialFirebasePNV';
|
|
53067
|
+
this.constructorId = 0x5b1ccb28;
|
|
53068
|
+
this.subclassOfId = 0x1eb1222e;
|
|
53069
|
+
this._slots = ['pnvToken'];
|
|
53070
|
+
this.pnvToken = params.pnvToken;
|
|
53071
|
+
}
|
|
53072
|
+
static async read(_data, ..._args) {
|
|
53073
|
+
let pnvToken = await index_js_1.Primitive.String.read(_data);
|
|
53074
|
+
return new Raw.InputPasskeyCredentialFirebasePNV({ pnvToken: pnvToken });
|
|
53075
|
+
}
|
|
53076
|
+
write() {
|
|
53077
|
+
const b = new deps_js_1.BytesIO();
|
|
53078
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
53079
|
+
if (this.pnvToken !== undefined) {
|
|
53080
|
+
b.write(index_js_1.Primitive.String.write(this.pnvToken));
|
|
53081
|
+
}
|
|
53082
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
53083
|
+
}
|
|
53084
|
+
}
|
|
53085
|
+
Raw.InputPasskeyCredentialFirebasePNV = InputPasskeyCredentialFirebasePNV;
|
|
53086
|
+
class StarGiftBackground extends index_js_1.TLObject {
|
|
53087
|
+
centerColor;
|
|
53088
|
+
edgeColor;
|
|
53089
|
+
textColor;
|
|
53090
|
+
constructor(params) {
|
|
53091
|
+
super();
|
|
53092
|
+
this.classType = 'types';
|
|
53093
|
+
this.className = 'StarGiftBackground';
|
|
53094
|
+
this.constructorId = 0xaff56398;
|
|
53095
|
+
this.subclassOfId = 0x3c51a28;
|
|
53096
|
+
this._slots = ['centerColor', 'edgeColor', 'textColor'];
|
|
53097
|
+
this.centerColor = params.centerColor;
|
|
53098
|
+
this.edgeColor = params.edgeColor;
|
|
53099
|
+
this.textColor = params.textColor;
|
|
53100
|
+
}
|
|
53101
|
+
static async read(_data, ..._args) {
|
|
53102
|
+
let centerColor = await index_js_1.Primitive.Int.read(_data);
|
|
53103
|
+
let edgeColor = await index_js_1.Primitive.Int.read(_data);
|
|
53104
|
+
let textColor = await index_js_1.Primitive.Int.read(_data);
|
|
53105
|
+
return new Raw.StarGiftBackground({
|
|
53106
|
+
centerColor: centerColor,
|
|
53107
|
+
edgeColor: edgeColor,
|
|
53108
|
+
textColor: textColor,
|
|
53109
|
+
});
|
|
53110
|
+
}
|
|
53111
|
+
write() {
|
|
53112
|
+
const b = new deps_js_1.BytesIO();
|
|
53113
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
53114
|
+
if (this.centerColor !== undefined) {
|
|
53115
|
+
b.write(index_js_1.Primitive.Int.write(this.centerColor));
|
|
53116
|
+
}
|
|
53117
|
+
if (this.edgeColor !== undefined) {
|
|
53118
|
+
b.write(index_js_1.Primitive.Int.write(this.edgeColor));
|
|
53119
|
+
}
|
|
53120
|
+
if (this.textColor !== undefined) {
|
|
53121
|
+
b.write(index_js_1.Primitive.Int.write(this.textColor));
|
|
53122
|
+
}
|
|
53123
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
53124
|
+
}
|
|
53125
|
+
}
|
|
53126
|
+
Raw.StarGiftBackground = StarGiftBackground;
|
|
53127
|
+
class StarGiftAuctionRound extends index_js_1.TLObject {
|
|
53128
|
+
num;
|
|
53129
|
+
duration;
|
|
53130
|
+
constructor(params) {
|
|
53131
|
+
super();
|
|
53132
|
+
this.classType = 'types';
|
|
53133
|
+
this.className = 'StarGiftAuctionRound';
|
|
53134
|
+
this.constructorId = 0x3aae0528;
|
|
53135
|
+
this.subclassOfId = 0x44e92c34;
|
|
53136
|
+
this._slots = ['num', 'duration'];
|
|
53137
|
+
this.num = params.num;
|
|
53138
|
+
this.duration = params.duration;
|
|
53139
|
+
}
|
|
53140
|
+
static async read(_data, ..._args) {
|
|
53141
|
+
let num = await index_js_1.Primitive.Int.read(_data);
|
|
53142
|
+
let duration = await index_js_1.Primitive.Int.read(_data);
|
|
53143
|
+
return new Raw.StarGiftAuctionRound({ num: num, duration: duration });
|
|
53144
|
+
}
|
|
53145
|
+
write() {
|
|
53146
|
+
const b = new deps_js_1.BytesIO();
|
|
53147
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
53148
|
+
if (this.num !== undefined) {
|
|
53149
|
+
b.write(index_js_1.Primitive.Int.write(this.num));
|
|
53150
|
+
}
|
|
53151
|
+
if (this.duration !== undefined) {
|
|
53152
|
+
b.write(index_js_1.Primitive.Int.write(this.duration));
|
|
53153
|
+
}
|
|
53154
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
53155
|
+
}
|
|
53156
|
+
}
|
|
53157
|
+
Raw.StarGiftAuctionRound = StarGiftAuctionRound;
|
|
53158
|
+
class StarGiftAuctionRoundExtendable extends index_js_1.TLObject {
|
|
53159
|
+
num;
|
|
53160
|
+
duration;
|
|
53161
|
+
extendTop;
|
|
53162
|
+
extendWindow;
|
|
53163
|
+
constructor(params) {
|
|
53164
|
+
super();
|
|
53165
|
+
this.classType = 'types';
|
|
53166
|
+
this.className = 'StarGiftAuctionRoundExtendable';
|
|
53167
|
+
this.constructorId = 0xaa021e5;
|
|
53168
|
+
this.subclassOfId = 0x44e92c34;
|
|
53169
|
+
this._slots = ['num', 'duration', 'extendTop', 'extendWindow'];
|
|
53170
|
+
this.num = params.num;
|
|
53171
|
+
this.duration = params.duration;
|
|
53172
|
+
this.extendTop = params.extendTop;
|
|
53173
|
+
this.extendWindow = params.extendWindow;
|
|
53174
|
+
}
|
|
53175
|
+
static async read(_data, ..._args) {
|
|
53176
|
+
let num = await index_js_1.Primitive.Int.read(_data);
|
|
53177
|
+
let duration = await index_js_1.Primitive.Int.read(_data);
|
|
53178
|
+
let extendTop = await index_js_1.Primitive.Int.read(_data);
|
|
53179
|
+
let extendWindow = await index_js_1.Primitive.Int.read(_data);
|
|
53180
|
+
return new Raw.StarGiftAuctionRoundExtendable({
|
|
53181
|
+
num: num,
|
|
53182
|
+
duration: duration,
|
|
53183
|
+
extendTop: extendTop,
|
|
53184
|
+
extendWindow: extendWindow,
|
|
53185
|
+
});
|
|
53186
|
+
}
|
|
53187
|
+
write() {
|
|
53188
|
+
const b = new deps_js_1.BytesIO();
|
|
53189
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
53190
|
+
if (this.num !== undefined) {
|
|
53191
|
+
b.write(index_js_1.Primitive.Int.write(this.num));
|
|
53192
|
+
}
|
|
53193
|
+
if (this.duration !== undefined) {
|
|
53194
|
+
b.write(index_js_1.Primitive.Int.write(this.duration));
|
|
53195
|
+
}
|
|
53196
|
+
if (this.extendTop !== undefined) {
|
|
53197
|
+
b.write(index_js_1.Primitive.Int.write(this.extendTop));
|
|
53198
|
+
}
|
|
53199
|
+
if (this.extendWindow !== undefined) {
|
|
53200
|
+
b.write(index_js_1.Primitive.Int.write(this.extendWindow));
|
|
53201
|
+
}
|
|
53202
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
53203
|
+
}
|
|
53204
|
+
}
|
|
53205
|
+
Raw.StarGiftAuctionRoundExtendable = StarGiftAuctionRoundExtendable;
|
|
53206
|
+
class StarGiftAttributeRarity extends index_js_1.TLObject {
|
|
53207
|
+
permille;
|
|
53208
|
+
constructor(params) {
|
|
53209
|
+
super();
|
|
53210
|
+
this.classType = 'types';
|
|
53211
|
+
this.className = 'StarGiftAttributeRarity';
|
|
53212
|
+
this.constructorId = 0x36437737;
|
|
53213
|
+
this.subclassOfId = 0xf870d26;
|
|
53214
|
+
this._slots = ['permille'];
|
|
53215
|
+
this.permille = params.permille;
|
|
53216
|
+
}
|
|
53217
|
+
static async read(_data, ..._args) {
|
|
53218
|
+
let permille = await index_js_1.Primitive.Int.read(_data);
|
|
53219
|
+
return new Raw.StarGiftAttributeRarity({ permille: permille });
|
|
53220
|
+
}
|
|
53221
|
+
write() {
|
|
53222
|
+
const b = new deps_js_1.BytesIO();
|
|
53223
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
53224
|
+
if (this.permille !== undefined) {
|
|
53225
|
+
b.write(index_js_1.Primitive.Int.write(this.permille));
|
|
53226
|
+
}
|
|
53227
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
53228
|
+
}
|
|
53229
|
+
}
|
|
53230
|
+
Raw.StarGiftAttributeRarity = StarGiftAttributeRarity;
|
|
53231
|
+
class StarGiftAttributeRarityUncommon extends index_js_1.TLObject {
|
|
53232
|
+
constructor() {
|
|
53233
|
+
super();
|
|
53234
|
+
this.classType = 'types';
|
|
53235
|
+
this.className = 'StarGiftAttributeRarityUncommon';
|
|
53236
|
+
this.constructorId = 0xdbce6389;
|
|
53237
|
+
this.subclassOfId = 0xf870d26;
|
|
53238
|
+
this._slots = [];
|
|
53239
|
+
}
|
|
53240
|
+
static async read(_data, ..._args) {
|
|
53241
|
+
return new Raw.StarGiftAttributeRarityUncommon();
|
|
53242
|
+
}
|
|
53243
|
+
write() {
|
|
53244
|
+
const b = new deps_js_1.BytesIO();
|
|
53245
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
53246
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
53247
|
+
}
|
|
53248
|
+
}
|
|
53249
|
+
Raw.StarGiftAttributeRarityUncommon = StarGiftAttributeRarityUncommon;
|
|
53250
|
+
class StarGiftAttributeRarityRare extends index_js_1.TLObject {
|
|
53251
|
+
constructor() {
|
|
53252
|
+
super();
|
|
53253
|
+
this.classType = 'types';
|
|
53254
|
+
this.className = 'StarGiftAttributeRarityRare';
|
|
53255
|
+
this.constructorId = 0xf08d516b;
|
|
53256
|
+
this.subclassOfId = 0xf870d26;
|
|
53257
|
+
this._slots = [];
|
|
53258
|
+
}
|
|
53259
|
+
static async read(_data, ..._args) {
|
|
53260
|
+
return new Raw.StarGiftAttributeRarityRare();
|
|
53261
|
+
}
|
|
53262
|
+
write() {
|
|
53263
|
+
const b = new deps_js_1.BytesIO();
|
|
53264
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
53265
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
53266
|
+
}
|
|
53267
|
+
}
|
|
53268
|
+
Raw.StarGiftAttributeRarityRare = StarGiftAttributeRarityRare;
|
|
53269
|
+
class StarGiftAttributeRarityEpic extends index_js_1.TLObject {
|
|
53270
|
+
constructor() {
|
|
53271
|
+
super();
|
|
53272
|
+
this.classType = 'types';
|
|
53273
|
+
this.className = 'StarGiftAttributeRarityEpic';
|
|
53274
|
+
this.constructorId = 0x78fbf3a8;
|
|
53275
|
+
this.subclassOfId = 0xf870d26;
|
|
53276
|
+
this._slots = [];
|
|
53277
|
+
}
|
|
53278
|
+
static async read(_data, ..._args) {
|
|
53279
|
+
return new Raw.StarGiftAttributeRarityEpic();
|
|
53280
|
+
}
|
|
53281
|
+
write() {
|
|
53282
|
+
const b = new deps_js_1.BytesIO();
|
|
53283
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
53284
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
53285
|
+
}
|
|
53286
|
+
}
|
|
53287
|
+
Raw.StarGiftAttributeRarityEpic = StarGiftAttributeRarityEpic;
|
|
53288
|
+
class StarGiftAttributeRarityLegendary extends index_js_1.TLObject {
|
|
53289
|
+
constructor() {
|
|
53290
|
+
super();
|
|
53291
|
+
this.classType = 'types';
|
|
53292
|
+
this.className = 'StarGiftAttributeRarityLegendary';
|
|
53293
|
+
this.constructorId = 0xcef7e7a8;
|
|
53294
|
+
this.subclassOfId = 0xf870d26;
|
|
53295
|
+
this._slots = [];
|
|
53296
|
+
}
|
|
53297
|
+
static async read(_data, ..._args) {
|
|
53298
|
+
return new Raw.StarGiftAttributeRarityLegendary();
|
|
53299
|
+
}
|
|
53300
|
+
write() {
|
|
53301
|
+
const b = new deps_js_1.BytesIO();
|
|
53302
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
53303
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
53304
|
+
}
|
|
53305
|
+
}
|
|
53306
|
+
Raw.StarGiftAttributeRarityLegendary = StarGiftAttributeRarityLegendary;
|
|
53307
|
+
class KeyboardButtonStyle extends index_js_1.TLObject {
|
|
53308
|
+
bgPrimary;
|
|
53309
|
+
bgDanger;
|
|
53310
|
+
bgSuccess;
|
|
53311
|
+
icon;
|
|
53312
|
+
constructor(params) {
|
|
53313
|
+
super();
|
|
53314
|
+
this.classType = 'types';
|
|
53315
|
+
this.className = 'KeyboardButtonStyle';
|
|
53316
|
+
this.constructorId = 0x4fdd3430;
|
|
53317
|
+
this.subclassOfId = 0x13f2521b;
|
|
53318
|
+
this._slots = ['bgPrimary', 'bgDanger', 'bgSuccess', 'icon'];
|
|
53319
|
+
this.bgPrimary = params.bgPrimary;
|
|
53320
|
+
this.bgDanger = params.bgDanger;
|
|
53321
|
+
this.bgSuccess = params.bgSuccess;
|
|
53322
|
+
this.icon = params.icon;
|
|
53323
|
+
}
|
|
53324
|
+
static async read(_data, ..._args) {
|
|
53325
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
53326
|
+
let bgPrimary = flags & (1 << 0) ? true : false;
|
|
53327
|
+
let bgDanger = flags & (1 << 1) ? true : false;
|
|
53328
|
+
let bgSuccess = flags & (1 << 2) ? true : false;
|
|
53329
|
+
let icon = flags & (1 << 3) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
53330
|
+
return new Raw.KeyboardButtonStyle({
|
|
53331
|
+
bgPrimary: bgPrimary,
|
|
53332
|
+
bgDanger: bgDanger,
|
|
53333
|
+
bgSuccess: bgSuccess,
|
|
53334
|
+
icon: icon,
|
|
53335
|
+
});
|
|
53336
|
+
}
|
|
53337
|
+
write() {
|
|
53338
|
+
const b = new deps_js_1.BytesIO();
|
|
53339
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
53340
|
+
let flags = 0;
|
|
53341
|
+
flags |= this.bgPrimary ? 1 << 0 : 0;
|
|
53342
|
+
flags |= this.bgDanger ? 1 << 1 : 0;
|
|
53343
|
+
flags |= this.bgSuccess ? 1 << 2 : 0;
|
|
53344
|
+
flags |= this.icon !== undefined ? 1 << 3 : 0;
|
|
53345
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
53346
|
+
if (this.icon !== undefined) {
|
|
53347
|
+
b.write(index_js_1.Primitive.Long.write(this.icon));
|
|
53348
|
+
}
|
|
53349
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
53350
|
+
}
|
|
53351
|
+
}
|
|
53352
|
+
Raw.KeyboardButtonStyle = KeyboardButtonStyle;
|
|
52233
53353
|
class InvokeAfterMsg extends index_js_1.TLObject {
|
|
52234
53354
|
__response__;
|
|
52235
53355
|
msgId;
|
|
@@ -57960,6 +59080,31 @@ var Raw;
|
|
|
57960
59080
|
}
|
|
57961
59081
|
}
|
|
57962
59082
|
auth.LoggedOut = LoggedOut;
|
|
59083
|
+
class PasskeyLoginOptions extends index_js_1.TLObject {
|
|
59084
|
+
options;
|
|
59085
|
+
constructor(params) {
|
|
59086
|
+
super();
|
|
59087
|
+
this.classType = 'types';
|
|
59088
|
+
this.className = 'auth.PasskeyLoginOptions';
|
|
59089
|
+
this.constructorId = 0xe2037789;
|
|
59090
|
+
this.subclassOfId = 0xd9793032;
|
|
59091
|
+
this._slots = ['options'];
|
|
59092
|
+
this.options = params.options;
|
|
59093
|
+
}
|
|
59094
|
+
static async read(_data, ..._args) {
|
|
59095
|
+
let options = await index_js_1.TLObject.read(_data);
|
|
59096
|
+
return new Raw.auth.PasskeyLoginOptions({ options: options });
|
|
59097
|
+
}
|
|
59098
|
+
write() {
|
|
59099
|
+
const b = new deps_js_1.BytesIO();
|
|
59100
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
59101
|
+
if (this.options !== undefined) {
|
|
59102
|
+
b.write(this.options.write());
|
|
59103
|
+
}
|
|
59104
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
59105
|
+
}
|
|
59106
|
+
}
|
|
59107
|
+
auth.PasskeyLoginOptions = PasskeyLoginOptions;
|
|
57963
59108
|
class SendCode extends index_js_1.TLObject {
|
|
57964
59109
|
__response__;
|
|
57965
59110
|
phoneNumber;
|
|
@@ -58857,6 +60002,85 @@ var Raw;
|
|
|
58857
60002
|
}
|
|
58858
60003
|
}
|
|
58859
60004
|
auth.CheckPaidAuth = CheckPaidAuth;
|
|
60005
|
+
class InitPasskeyLogin extends index_js_1.TLObject {
|
|
60006
|
+
__response__;
|
|
60007
|
+
apiId;
|
|
60008
|
+
apiHash;
|
|
60009
|
+
constructor(params) {
|
|
60010
|
+
super();
|
|
60011
|
+
this.classType = 'functions';
|
|
60012
|
+
this.className = 'auth.InitPasskeyLogin';
|
|
60013
|
+
this.constructorId = 0x518ad0b7;
|
|
60014
|
+
this.subclassOfId = 0xd9793032;
|
|
60015
|
+
this._slots = ['apiId', 'apiHash'];
|
|
60016
|
+
this.apiId = params.apiId;
|
|
60017
|
+
this.apiHash = params.apiHash;
|
|
60018
|
+
}
|
|
60019
|
+
static async read(_data, ..._args) {
|
|
60020
|
+
let apiId = await index_js_1.Primitive.Int.read(_data);
|
|
60021
|
+
let apiHash = await index_js_1.Primitive.String.read(_data);
|
|
60022
|
+
return new Raw.auth.InitPasskeyLogin({ apiId: apiId, apiHash: apiHash });
|
|
60023
|
+
}
|
|
60024
|
+
write() {
|
|
60025
|
+
const b = new deps_js_1.BytesIO();
|
|
60026
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
60027
|
+
if (this.apiId !== undefined) {
|
|
60028
|
+
b.write(index_js_1.Primitive.Int.write(this.apiId));
|
|
60029
|
+
}
|
|
60030
|
+
if (this.apiHash !== undefined) {
|
|
60031
|
+
b.write(index_js_1.Primitive.String.write(this.apiHash));
|
|
60032
|
+
}
|
|
60033
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
60034
|
+
}
|
|
60035
|
+
}
|
|
60036
|
+
auth.InitPasskeyLogin = InitPasskeyLogin;
|
|
60037
|
+
class FinishPasskeyLogin extends index_js_1.TLObject {
|
|
60038
|
+
__response__;
|
|
60039
|
+
credential;
|
|
60040
|
+
fromDcId;
|
|
60041
|
+
fromAuthKeyId;
|
|
60042
|
+
constructor(params) {
|
|
60043
|
+
super();
|
|
60044
|
+
this.classType = 'functions';
|
|
60045
|
+
this.className = 'auth.FinishPasskeyLogin';
|
|
60046
|
+
this.constructorId = 0x9857ad07;
|
|
60047
|
+
this.subclassOfId = 0xb9e04e39;
|
|
60048
|
+
this._slots = ['credential', 'fromDcId', 'fromAuthKeyId'];
|
|
60049
|
+
this.credential = params.credential;
|
|
60050
|
+
this.fromDcId = params.fromDcId;
|
|
60051
|
+
this.fromAuthKeyId = params.fromAuthKeyId;
|
|
60052
|
+
}
|
|
60053
|
+
static async read(_data, ..._args) {
|
|
60054
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
60055
|
+
let credential = await index_js_1.TLObject.read(_data);
|
|
60056
|
+
let fromDcId = flags & (1 << 0) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
60057
|
+
let fromAuthKeyId = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
60058
|
+
return new Raw.auth.FinishPasskeyLogin({
|
|
60059
|
+
credential: credential,
|
|
60060
|
+
fromDcId: fromDcId,
|
|
60061
|
+
fromAuthKeyId: fromAuthKeyId,
|
|
60062
|
+
});
|
|
60063
|
+
}
|
|
60064
|
+
write() {
|
|
60065
|
+
const b = new deps_js_1.BytesIO();
|
|
60066
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
60067
|
+
let flags = 0;
|
|
60068
|
+
flags |= this.fromDcId !== undefined ? 1 << 0 : 0;
|
|
60069
|
+
flags |= this.fromAuthKeyId !== undefined ? 1 << 0 : 0;
|
|
60070
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
60071
|
+
if (this.credential !== undefined) {
|
|
60072
|
+
b.write(this.credential.write());
|
|
60073
|
+
}
|
|
60074
|
+
if (this.fromDcId !== undefined) {
|
|
60075
|
+
b.write(index_js_1.Primitive.Int.write(this.fromDcId));
|
|
60076
|
+
}
|
|
60077
|
+
if (this.fromAuthKeyId !== undefined) {
|
|
60078
|
+
b.write(index_js_1.Primitive.Long.write(this.fromAuthKeyId));
|
|
60079
|
+
}
|
|
60080
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
60081
|
+
}
|
|
60082
|
+
}
|
|
60083
|
+
auth.FinishPasskeyLogin = FinishPasskeyLogin;
|
|
58860
60084
|
})(auth = Raw.auth || (Raw.auth = {}));
|
|
58861
60085
|
let contacts;
|
|
58862
60086
|
(function (contacts_1) {
|
|
@@ -63578,6 +64802,125 @@ var Raw;
|
|
|
63578
64802
|
}
|
|
63579
64803
|
}
|
|
63580
64804
|
messages_1.WebPagePreview = WebPagePreview;
|
|
64805
|
+
class EmojiGameOutcome extends index_js_1.TLObject {
|
|
64806
|
+
seed;
|
|
64807
|
+
stakeTonAmount;
|
|
64808
|
+
tonAmount;
|
|
64809
|
+
constructor(params) {
|
|
64810
|
+
super();
|
|
64811
|
+
this.classType = 'types';
|
|
64812
|
+
this.className = 'messages.EmojiGameOutcome';
|
|
64813
|
+
this.constructorId = 0xda2ad647;
|
|
64814
|
+
this.subclassOfId = 0xef75569;
|
|
64815
|
+
this._slots = ['seed', 'stakeTonAmount', 'tonAmount'];
|
|
64816
|
+
this.seed = params.seed;
|
|
64817
|
+
this.stakeTonAmount = params.stakeTonAmount;
|
|
64818
|
+
this.tonAmount = params.tonAmount;
|
|
64819
|
+
}
|
|
64820
|
+
static async read(_data, ..._args) {
|
|
64821
|
+
let seed = await index_js_1.Primitive.Bytes.read(_data);
|
|
64822
|
+
let stakeTonAmount = await index_js_1.Primitive.Long.read(_data);
|
|
64823
|
+
let tonAmount = await index_js_1.Primitive.Long.read(_data);
|
|
64824
|
+
return new Raw.messages.EmojiGameOutcome({
|
|
64825
|
+
seed: seed,
|
|
64826
|
+
stakeTonAmount: stakeTonAmount,
|
|
64827
|
+
tonAmount: tonAmount,
|
|
64828
|
+
});
|
|
64829
|
+
}
|
|
64830
|
+
write() {
|
|
64831
|
+
const b = new deps_js_1.BytesIO();
|
|
64832
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
64833
|
+
if (this.seed !== undefined) {
|
|
64834
|
+
b.write(index_js_1.Primitive.Bytes.write(this.seed));
|
|
64835
|
+
}
|
|
64836
|
+
if (this.stakeTonAmount !== undefined) {
|
|
64837
|
+
b.write(index_js_1.Primitive.Long.write(this.stakeTonAmount));
|
|
64838
|
+
}
|
|
64839
|
+
if (this.tonAmount !== undefined) {
|
|
64840
|
+
b.write(index_js_1.Primitive.Long.write(this.tonAmount));
|
|
64841
|
+
}
|
|
64842
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
64843
|
+
}
|
|
64844
|
+
}
|
|
64845
|
+
messages_1.EmojiGameOutcome = EmojiGameOutcome;
|
|
64846
|
+
class EmojiGameUnavailable extends index_js_1.TLObject {
|
|
64847
|
+
constructor() {
|
|
64848
|
+
super();
|
|
64849
|
+
this.classType = 'types';
|
|
64850
|
+
this.className = 'messages.EmojiGameUnavailable';
|
|
64851
|
+
this.constructorId = 0x59e65335;
|
|
64852
|
+
this.subclassOfId = 0x64b3022;
|
|
64853
|
+
this._slots = [];
|
|
64854
|
+
}
|
|
64855
|
+
static async read(_data, ..._args) {
|
|
64856
|
+
return new Raw.messages.EmojiGameUnavailable();
|
|
64857
|
+
}
|
|
64858
|
+
write() {
|
|
64859
|
+
const b = new deps_js_1.BytesIO();
|
|
64860
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
64861
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
64862
|
+
}
|
|
64863
|
+
}
|
|
64864
|
+
messages_1.EmojiGameUnavailable = EmojiGameUnavailable;
|
|
64865
|
+
class EmojiGameDiceInfo extends index_js_1.TLObject {
|
|
64866
|
+
gameHash;
|
|
64867
|
+
prevStake;
|
|
64868
|
+
currentStreak;
|
|
64869
|
+
params;
|
|
64870
|
+
playsLeft;
|
|
64871
|
+
constructor(params) {
|
|
64872
|
+
super();
|
|
64873
|
+
this.classType = 'types';
|
|
64874
|
+
this.className = 'messages.EmojiGameDiceInfo';
|
|
64875
|
+
this.constructorId = 0x44e56023;
|
|
64876
|
+
this.subclassOfId = 0x64b3022;
|
|
64877
|
+
this._slots = ['gameHash', 'prevStake', 'currentStreak', 'params', 'playsLeft'];
|
|
64878
|
+
this.gameHash = params.gameHash;
|
|
64879
|
+
this.prevStake = params.prevStake;
|
|
64880
|
+
this.currentStreak = params.currentStreak;
|
|
64881
|
+
this.params = params.params;
|
|
64882
|
+
this.playsLeft = params.playsLeft;
|
|
64883
|
+
}
|
|
64884
|
+
static async read(_data, ..._args) {
|
|
64885
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
64886
|
+
let gameHash = await index_js_1.Primitive.String.read(_data);
|
|
64887
|
+
let prevStake = await index_js_1.Primitive.Long.read(_data);
|
|
64888
|
+
let currentStreak = await index_js_1.Primitive.Int.read(_data);
|
|
64889
|
+
let params = await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int);
|
|
64890
|
+
let playsLeft = flags & (1 << 0) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
64891
|
+
return new Raw.messages.EmojiGameDiceInfo({
|
|
64892
|
+
gameHash: gameHash,
|
|
64893
|
+
prevStake: prevStake,
|
|
64894
|
+
currentStreak: currentStreak,
|
|
64895
|
+
params: params,
|
|
64896
|
+
playsLeft: playsLeft,
|
|
64897
|
+
});
|
|
64898
|
+
}
|
|
64899
|
+
write() {
|
|
64900
|
+
const b = new deps_js_1.BytesIO();
|
|
64901
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
64902
|
+
let flags = 0;
|
|
64903
|
+
flags |= this.playsLeft !== undefined ? 1 << 0 : 0;
|
|
64904
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
64905
|
+
if (this.gameHash !== undefined) {
|
|
64906
|
+
b.write(index_js_1.Primitive.String.write(this.gameHash));
|
|
64907
|
+
}
|
|
64908
|
+
if (this.prevStake !== undefined) {
|
|
64909
|
+
b.write(index_js_1.Primitive.Long.write(this.prevStake));
|
|
64910
|
+
}
|
|
64911
|
+
if (this.currentStreak !== undefined) {
|
|
64912
|
+
b.write(index_js_1.Primitive.Int.write(this.currentStreak));
|
|
64913
|
+
}
|
|
64914
|
+
if (this.params) {
|
|
64915
|
+
b.write(index_js_1.Primitive.Vector.write(this.params, index_js_1.Primitive.Int));
|
|
64916
|
+
}
|
|
64917
|
+
if (this.playsLeft !== undefined) {
|
|
64918
|
+
b.write(index_js_1.Primitive.Int.write(this.playsLeft));
|
|
64919
|
+
}
|
|
64920
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
64921
|
+
}
|
|
64922
|
+
}
|
|
64923
|
+
messages_1.EmojiGameDiceInfo = EmojiGameDiceInfo;
|
|
63581
64924
|
class GetMessages extends index_js_1.TLObject {
|
|
63582
64925
|
__response__;
|
|
63583
64926
|
id;
|
|
@@ -64511,6 +65854,7 @@ var Raw;
|
|
|
64511
65854
|
scheduleRepeatPeriod;
|
|
64512
65855
|
sendAs;
|
|
64513
65856
|
quickReplyShortcut;
|
|
65857
|
+
effect;
|
|
64514
65858
|
videoTimestamp;
|
|
64515
65859
|
allowPaidStars;
|
|
64516
65860
|
suggestedPost;
|
|
@@ -64518,7 +65862,7 @@ var Raw;
|
|
|
64518
65862
|
super();
|
|
64519
65863
|
this.classType = 'functions';
|
|
64520
65864
|
this.className = 'messages.ForwardMessages';
|
|
64521
|
-
this.constructorId =
|
|
65865
|
+
this.constructorId = 0x13704a7c;
|
|
64522
65866
|
this.subclassOfId = 0x8af52aac;
|
|
64523
65867
|
this._slots = [
|
|
64524
65868
|
'silent',
|
|
@@ -64538,6 +65882,7 @@ var Raw;
|
|
|
64538
65882
|
'scheduleRepeatPeriod',
|
|
64539
65883
|
'sendAs',
|
|
64540
65884
|
'quickReplyShortcut',
|
|
65885
|
+
'effect',
|
|
64541
65886
|
'videoTimestamp',
|
|
64542
65887
|
'allowPaidStars',
|
|
64543
65888
|
'suggestedPost',
|
|
@@ -64559,6 +65904,7 @@ var Raw;
|
|
|
64559
65904
|
this.scheduleRepeatPeriod = params.scheduleRepeatPeriod;
|
|
64560
65905
|
this.sendAs = params.sendAs;
|
|
64561
65906
|
this.quickReplyShortcut = params.quickReplyShortcut;
|
|
65907
|
+
this.effect = params.effect;
|
|
64562
65908
|
this.videoTimestamp = params.videoTimestamp;
|
|
64563
65909
|
this.allowPaidStars = params.allowPaidStars;
|
|
64564
65910
|
this.suggestedPost = params.suggestedPost;
|
|
@@ -64582,6 +65928,7 @@ var Raw;
|
|
|
64582
65928
|
let scheduleRepeatPeriod = flags & (1 << 24) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
64583
65929
|
let sendAs = flags & (1 << 13) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
64584
65930
|
let quickReplyShortcut = flags & (1 << 17) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
65931
|
+
let effect = flags & (1 << 18) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
64585
65932
|
let videoTimestamp = flags & (1 << 20) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
64586
65933
|
let allowPaidStars = flags & (1 << 21) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
64587
65934
|
let suggestedPost = flags & (1 << 23) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
@@ -64603,6 +65950,7 @@ var Raw;
|
|
|
64603
65950
|
scheduleRepeatPeriod: scheduleRepeatPeriod,
|
|
64604
65951
|
sendAs: sendAs,
|
|
64605
65952
|
quickReplyShortcut: quickReplyShortcut,
|
|
65953
|
+
effect: effect,
|
|
64606
65954
|
videoTimestamp: videoTimestamp,
|
|
64607
65955
|
allowPaidStars: allowPaidStars,
|
|
64608
65956
|
suggestedPost: suggestedPost,
|
|
@@ -64625,6 +65973,7 @@ var Raw;
|
|
|
64625
65973
|
flags |= this.scheduleRepeatPeriod !== undefined ? 1 << 24 : 0;
|
|
64626
65974
|
flags |= this.sendAs !== undefined ? 1 << 13 : 0;
|
|
64627
65975
|
flags |= this.quickReplyShortcut !== undefined ? 1 << 17 : 0;
|
|
65976
|
+
flags |= this.effect !== undefined ? 1 << 18 : 0;
|
|
64628
65977
|
flags |= this.videoTimestamp !== undefined ? 1 << 20 : 0;
|
|
64629
65978
|
flags |= this.allowPaidStars !== undefined ? 1 << 21 : 0;
|
|
64630
65979
|
flags |= this.suggestedPost !== undefined ? 1 << 23 : 0;
|
|
@@ -64659,6 +66008,9 @@ var Raw;
|
|
|
64659
66008
|
if (this.quickReplyShortcut !== undefined) {
|
|
64660
66009
|
b.write(this.quickReplyShortcut.write());
|
|
64661
66010
|
}
|
|
66011
|
+
if (this.effect !== undefined) {
|
|
66012
|
+
b.write(index_js_1.Primitive.Long.write(this.effect));
|
|
66013
|
+
}
|
|
64662
66014
|
if (this.videoTimestamp !== undefined) {
|
|
64663
66015
|
b.write(index_js_1.Primitive.Int.write(this.videoTimestamp));
|
|
64664
66016
|
}
|
|
@@ -68692,6 +70044,7 @@ var Raw;
|
|
|
68692
70044
|
class AcceptUrlAuth extends index_js_1.TLObject {
|
|
68693
70045
|
__response__;
|
|
68694
70046
|
writeAllowed;
|
|
70047
|
+
sharePhoneNumber;
|
|
68695
70048
|
peer;
|
|
68696
70049
|
msgId;
|
|
68697
70050
|
buttonId;
|
|
@@ -68702,8 +70055,9 @@ var Raw;
|
|
|
68702
70055
|
this.className = 'messages.AcceptUrlAuth';
|
|
68703
70056
|
this.constructorId = 0xb12c7125;
|
|
68704
70057
|
this.subclassOfId = 0x7765cb1e;
|
|
68705
|
-
this._slots = ['writeAllowed', 'peer', 'msgId', 'buttonId', 'url'];
|
|
70058
|
+
this._slots = ['writeAllowed', 'sharePhoneNumber', 'peer', 'msgId', 'buttonId', 'url'];
|
|
68706
70059
|
this.writeAllowed = params.writeAllowed;
|
|
70060
|
+
this.sharePhoneNumber = params.sharePhoneNumber;
|
|
68707
70061
|
this.peer = params.peer;
|
|
68708
70062
|
this.msgId = params.msgId;
|
|
68709
70063
|
this.buttonId = params.buttonId;
|
|
@@ -68712,12 +70066,14 @@ var Raw;
|
|
|
68712
70066
|
static async read(_data, ..._args) {
|
|
68713
70067
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
68714
70068
|
let writeAllowed = flags & (1 << 0) ? true : false;
|
|
70069
|
+
let sharePhoneNumber = flags & (1 << 3) ? true : false;
|
|
68715
70070
|
let peer = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
68716
70071
|
let msgId = flags & (1 << 1) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
68717
70072
|
let buttonId = flags & (1 << 1) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
68718
70073
|
let url = flags & (1 << 2) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
68719
70074
|
return new Raw.messages.AcceptUrlAuth({
|
|
68720
70075
|
writeAllowed: writeAllowed,
|
|
70076
|
+
sharePhoneNumber: sharePhoneNumber,
|
|
68721
70077
|
peer: peer,
|
|
68722
70078
|
msgId: msgId,
|
|
68723
70079
|
buttonId: buttonId,
|
|
@@ -68729,6 +70085,7 @@ var Raw;
|
|
|
68729
70085
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
68730
70086
|
let flags = 0;
|
|
68731
70087
|
flags |= this.writeAllowed ? 1 << 0 : 0;
|
|
70088
|
+
flags |= this.sharePhoneNumber ? 1 << 3 : 0;
|
|
68732
70089
|
flags |= this.peer !== undefined ? 1 << 1 : 0;
|
|
68733
70090
|
flags |= this.msgId !== undefined ? 1 << 1 : 0;
|
|
68734
70091
|
flags |= this.buttonId !== undefined ? 1 << 1 : 0;
|
|
@@ -74081,6 +75438,68 @@ var Raw;
|
|
|
74081
75438
|
}
|
|
74082
75439
|
}
|
|
74083
75440
|
messages_1.DeleteTopicHistory = DeleteTopicHistory;
|
|
75441
|
+
class GetEmojiGameInfo extends index_js_1.TLObject {
|
|
75442
|
+
__response__;
|
|
75443
|
+
constructor() {
|
|
75444
|
+
super();
|
|
75445
|
+
this.classType = 'functions';
|
|
75446
|
+
this.className = 'messages.GetEmojiGameInfo';
|
|
75447
|
+
this.constructorId = 0xfb7e8ca7;
|
|
75448
|
+
this.subclassOfId = 0x64b3022;
|
|
75449
|
+
this._slots = [];
|
|
75450
|
+
}
|
|
75451
|
+
static async read(_data, ..._args) {
|
|
75452
|
+
return new Raw.messages.GetEmojiGameInfo();
|
|
75453
|
+
}
|
|
75454
|
+
write() {
|
|
75455
|
+
const b = new deps_js_1.BytesIO();
|
|
75456
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
75457
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
75458
|
+
}
|
|
75459
|
+
}
|
|
75460
|
+
messages_1.GetEmojiGameInfo = GetEmojiGameInfo;
|
|
75461
|
+
class SummarizeText extends index_js_1.TLObject {
|
|
75462
|
+
__response__;
|
|
75463
|
+
peer;
|
|
75464
|
+
id;
|
|
75465
|
+
toLang;
|
|
75466
|
+
constructor(params) {
|
|
75467
|
+
super();
|
|
75468
|
+
this.classType = 'functions';
|
|
75469
|
+
this.className = 'messages.SummarizeText';
|
|
75470
|
+
this.constructorId = 0x9d4104e2;
|
|
75471
|
+
this.subclassOfId = 0x95ca4b05;
|
|
75472
|
+
this._slots = ['peer', 'id', 'toLang'];
|
|
75473
|
+
this.peer = params.peer;
|
|
75474
|
+
this.id = params.id;
|
|
75475
|
+
this.toLang = params.toLang;
|
|
75476
|
+
}
|
|
75477
|
+
static async read(_data, ..._args) {
|
|
75478
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
75479
|
+
let peer = await index_js_1.TLObject.read(_data);
|
|
75480
|
+
let id = await index_js_1.Primitive.Int.read(_data);
|
|
75481
|
+
let toLang = flags & (1 << 0) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
75482
|
+
return new Raw.messages.SummarizeText({ peer: peer, id: id, toLang: toLang });
|
|
75483
|
+
}
|
|
75484
|
+
write() {
|
|
75485
|
+
const b = new deps_js_1.BytesIO();
|
|
75486
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
75487
|
+
let flags = 0;
|
|
75488
|
+
flags |= this.toLang !== undefined ? 1 << 0 : 0;
|
|
75489
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
75490
|
+
if (this.peer !== undefined) {
|
|
75491
|
+
b.write(this.peer.write());
|
|
75492
|
+
}
|
|
75493
|
+
if (this.id !== undefined) {
|
|
75494
|
+
b.write(index_js_1.Primitive.Int.write(this.id));
|
|
75495
|
+
}
|
|
75496
|
+
if (this.toLang !== undefined) {
|
|
75497
|
+
b.write(index_js_1.Primitive.String.write(this.toLang));
|
|
75498
|
+
}
|
|
75499
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
75500
|
+
}
|
|
75501
|
+
}
|
|
75502
|
+
messages_1.SummarizeText = SummarizeText;
|
|
74084
75503
|
})(messages = Raw.messages || (Raw.messages = {}));
|
|
74085
75504
|
let updates;
|
|
74086
75505
|
(function (updates) {
|
|
@@ -76795,6 +78214,56 @@ var Raw;
|
|
|
76795
78214
|
}
|
|
76796
78215
|
}
|
|
76797
78216
|
account.SavedMusicIds = SavedMusicIds;
|
|
78217
|
+
class Passkeys extends index_js_1.TLObject {
|
|
78218
|
+
passkeys;
|
|
78219
|
+
constructor(params) {
|
|
78220
|
+
super();
|
|
78221
|
+
this.classType = 'types';
|
|
78222
|
+
this.className = 'account.Passkeys';
|
|
78223
|
+
this.constructorId = 0xf8e0aa1c;
|
|
78224
|
+
this.subclassOfId = 0x24dd205e;
|
|
78225
|
+
this._slots = ['passkeys'];
|
|
78226
|
+
this.passkeys = params.passkeys;
|
|
78227
|
+
}
|
|
78228
|
+
static async read(_data, ..._args) {
|
|
78229
|
+
let passkeys = await index_js_1.TLObject.read(_data);
|
|
78230
|
+
return new Raw.account.Passkeys({ passkeys: passkeys });
|
|
78231
|
+
}
|
|
78232
|
+
write() {
|
|
78233
|
+
const b = new deps_js_1.BytesIO();
|
|
78234
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
78235
|
+
if (this.passkeys) {
|
|
78236
|
+
b.write(index_js_1.Primitive.Vector.write(this.passkeys));
|
|
78237
|
+
}
|
|
78238
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
78239
|
+
}
|
|
78240
|
+
}
|
|
78241
|
+
account.Passkeys = Passkeys;
|
|
78242
|
+
class PasskeyRegistrationOptions extends index_js_1.TLObject {
|
|
78243
|
+
options;
|
|
78244
|
+
constructor(params) {
|
|
78245
|
+
super();
|
|
78246
|
+
this.classType = 'types';
|
|
78247
|
+
this.className = 'account.PasskeyRegistrationOptions';
|
|
78248
|
+
this.constructorId = 0xe16b5ce1;
|
|
78249
|
+
this.subclassOfId = 0x341d83e4;
|
|
78250
|
+
this._slots = ['options'];
|
|
78251
|
+
this.options = params.options;
|
|
78252
|
+
}
|
|
78253
|
+
static async read(_data, ..._args) {
|
|
78254
|
+
let options = await index_js_1.TLObject.read(_data);
|
|
78255
|
+
return new Raw.account.PasskeyRegistrationOptions({ options: options });
|
|
78256
|
+
}
|
|
78257
|
+
write() {
|
|
78258
|
+
const b = new deps_js_1.BytesIO();
|
|
78259
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
78260
|
+
if (this.options !== undefined) {
|
|
78261
|
+
b.write(this.options.write());
|
|
78262
|
+
}
|
|
78263
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
78264
|
+
}
|
|
78265
|
+
}
|
|
78266
|
+
account.PasskeyRegistrationOptions = PasskeyRegistrationOptions;
|
|
76798
78267
|
class RegisterDevice extends index_js_1.TLObject {
|
|
76799
78268
|
__response__;
|
|
76800
78269
|
noMuted;
|
|
@@ -80519,6 +81988,98 @@ var Raw;
|
|
|
80519
81988
|
}
|
|
80520
81989
|
}
|
|
80521
81990
|
account.GetUniqueGiftChatThemes = GetUniqueGiftChatThemes;
|
|
81991
|
+
class InitPasskeyRegistration extends index_js_1.TLObject {
|
|
81992
|
+
__response__;
|
|
81993
|
+
constructor() {
|
|
81994
|
+
super();
|
|
81995
|
+
this.classType = 'functions';
|
|
81996
|
+
this.className = 'account.InitPasskeyRegistration';
|
|
81997
|
+
this.constructorId = 0x429547e8;
|
|
81998
|
+
this.subclassOfId = 0x341d83e4;
|
|
81999
|
+
this._slots = [];
|
|
82000
|
+
}
|
|
82001
|
+
static async read(_data, ..._args) {
|
|
82002
|
+
return new Raw.account.InitPasskeyRegistration();
|
|
82003
|
+
}
|
|
82004
|
+
write() {
|
|
82005
|
+
const b = new deps_js_1.BytesIO();
|
|
82006
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
82007
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
82008
|
+
}
|
|
82009
|
+
}
|
|
82010
|
+
account.InitPasskeyRegistration = InitPasskeyRegistration;
|
|
82011
|
+
class RegisterPasskey extends index_js_1.TLObject {
|
|
82012
|
+
__response__;
|
|
82013
|
+
credential;
|
|
82014
|
+
constructor(params) {
|
|
82015
|
+
super();
|
|
82016
|
+
this.classType = 'functions';
|
|
82017
|
+
this.className = 'account.RegisterPasskey';
|
|
82018
|
+
this.constructorId = 0x55b41fd6;
|
|
82019
|
+
this.subclassOfId = 0xcf380de0;
|
|
82020
|
+
this._slots = ['credential'];
|
|
82021
|
+
this.credential = params.credential;
|
|
82022
|
+
}
|
|
82023
|
+
static async read(_data, ..._args) {
|
|
82024
|
+
let credential = await index_js_1.TLObject.read(_data);
|
|
82025
|
+
return new Raw.account.RegisterPasskey({ credential: credential });
|
|
82026
|
+
}
|
|
82027
|
+
write() {
|
|
82028
|
+
const b = new deps_js_1.BytesIO();
|
|
82029
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
82030
|
+
if (this.credential !== undefined) {
|
|
82031
|
+
b.write(this.credential.write());
|
|
82032
|
+
}
|
|
82033
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
82034
|
+
}
|
|
82035
|
+
}
|
|
82036
|
+
account.RegisterPasskey = RegisterPasskey;
|
|
82037
|
+
class GetPasskeys extends index_js_1.TLObject {
|
|
82038
|
+
__response__;
|
|
82039
|
+
constructor() {
|
|
82040
|
+
super();
|
|
82041
|
+
this.classType = 'functions';
|
|
82042
|
+
this.className = 'account.GetPasskeys';
|
|
82043
|
+
this.constructorId = 0xea1f0c52;
|
|
82044
|
+
this.subclassOfId = 0x24dd205e;
|
|
82045
|
+
this._slots = [];
|
|
82046
|
+
}
|
|
82047
|
+
static async read(_data, ..._args) {
|
|
82048
|
+
return new Raw.account.GetPasskeys();
|
|
82049
|
+
}
|
|
82050
|
+
write() {
|
|
82051
|
+
const b = new deps_js_1.BytesIO();
|
|
82052
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
82053
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
82054
|
+
}
|
|
82055
|
+
}
|
|
82056
|
+
account.GetPasskeys = GetPasskeys;
|
|
82057
|
+
class DeletePasskey extends index_js_1.TLObject {
|
|
82058
|
+
__response__;
|
|
82059
|
+
id;
|
|
82060
|
+
constructor(params) {
|
|
82061
|
+
super();
|
|
82062
|
+
this.classType = 'functions';
|
|
82063
|
+
this.className = 'account.DeletePasskey';
|
|
82064
|
+
this.constructorId = 0xf5b5563f;
|
|
82065
|
+
this.subclassOfId = 0xf5b399ac;
|
|
82066
|
+
this._slots = ['id'];
|
|
82067
|
+
this.id = params.id;
|
|
82068
|
+
}
|
|
82069
|
+
static async read(_data, ..._args) {
|
|
82070
|
+
let id = await index_js_1.Primitive.String.read(_data);
|
|
82071
|
+
return new Raw.account.DeletePasskey({ id: id });
|
|
82072
|
+
}
|
|
82073
|
+
write() {
|
|
82074
|
+
const b = new deps_js_1.BytesIO();
|
|
82075
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
82076
|
+
if (this.id !== undefined) {
|
|
82077
|
+
b.write(index_js_1.Primitive.String.write(this.id));
|
|
82078
|
+
}
|
|
82079
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
82080
|
+
}
|
|
82081
|
+
}
|
|
82082
|
+
account.DeletePasskey = DeletePasskey;
|
|
80522
82083
|
})(account = Raw.account || (Raw.account = {}));
|
|
80523
82084
|
let channels;
|
|
80524
82085
|
(function (channels) {
|
|
@@ -82928,6 +84489,32 @@ var Raw;
|
|
|
82928
84489
|
}
|
|
82929
84490
|
}
|
|
82930
84491
|
channels.SetMainProfileTab = SetMainProfileTab;
|
|
84492
|
+
class GetFutureCreatorAfterLeave extends index_js_1.TLObject {
|
|
84493
|
+
__response__;
|
|
84494
|
+
channel;
|
|
84495
|
+
constructor(params) {
|
|
84496
|
+
super();
|
|
84497
|
+
this.classType = 'functions';
|
|
84498
|
+
this.className = 'channels.GetFutureCreatorAfterLeave';
|
|
84499
|
+
this.constructorId = 0xa00918af;
|
|
84500
|
+
this.subclassOfId = 0x2da17977;
|
|
84501
|
+
this._slots = ['channel'];
|
|
84502
|
+
this.channel = params.channel;
|
|
84503
|
+
}
|
|
84504
|
+
static async read(_data, ..._args) {
|
|
84505
|
+
let channel = await index_js_1.TLObject.read(_data);
|
|
84506
|
+
return new Raw.channels.GetFutureCreatorAfterLeave({ channel: channel });
|
|
84507
|
+
}
|
|
84508
|
+
write() {
|
|
84509
|
+
const b = new deps_js_1.BytesIO();
|
|
84510
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
84511
|
+
if (this.channel !== undefined) {
|
|
84512
|
+
b.write(this.channel.write());
|
|
84513
|
+
}
|
|
84514
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
84515
|
+
}
|
|
84516
|
+
}
|
|
84517
|
+
channels.GetFutureCreatorAfterLeave = GetFutureCreatorAfterLeave;
|
|
82931
84518
|
})(channels = Raw.channels || (Raw.channels = {}));
|
|
82932
84519
|
let payments;
|
|
82933
84520
|
(function (payments) {
|
|
@@ -84723,18 +86310,20 @@ var Raw;
|
|
|
84723
86310
|
userState;
|
|
84724
86311
|
timeout;
|
|
84725
86312
|
users;
|
|
86313
|
+
chats;
|
|
84726
86314
|
constructor(params) {
|
|
84727
86315
|
super();
|
|
84728
86316
|
this.classType = 'types';
|
|
84729
86317
|
this.className = 'payments.StarGiftAuctionState';
|
|
84730
|
-
this.constructorId =
|
|
86318
|
+
this.constructorId = 0x6b39f4ec;
|
|
84731
86319
|
this.subclassOfId = 0x1a318599;
|
|
84732
|
-
this._slots = ['gift', 'state', 'userState', 'timeout', 'users'];
|
|
86320
|
+
this._slots = ['gift', 'state', 'userState', 'timeout', 'users', 'chats'];
|
|
84733
86321
|
this.gift = params.gift;
|
|
84734
86322
|
this.state = params.state;
|
|
84735
86323
|
this.userState = params.userState;
|
|
84736
86324
|
this.timeout = params.timeout;
|
|
84737
86325
|
this.users = params.users;
|
|
86326
|
+
this.chats = params.chats;
|
|
84738
86327
|
}
|
|
84739
86328
|
static async read(_data, ..._args) {
|
|
84740
86329
|
let gift = await index_js_1.TLObject.read(_data);
|
|
@@ -84742,12 +86331,14 @@ var Raw;
|
|
|
84742
86331
|
let userState = await index_js_1.TLObject.read(_data);
|
|
84743
86332
|
let timeout = await index_js_1.Primitive.Int.read(_data);
|
|
84744
86333
|
let users = await index_js_1.TLObject.read(_data);
|
|
86334
|
+
let chats = await index_js_1.TLObject.read(_data);
|
|
84745
86335
|
return new Raw.payments.StarGiftAuctionState({
|
|
84746
86336
|
gift: gift,
|
|
84747
86337
|
state: state,
|
|
84748
86338
|
userState: userState,
|
|
84749
86339
|
timeout: timeout,
|
|
84750
86340
|
users: users,
|
|
86341
|
+
chats: chats,
|
|
84751
86342
|
});
|
|
84752
86343
|
}
|
|
84753
86344
|
write() {
|
|
@@ -84768,6 +86359,9 @@ var Raw;
|
|
|
84768
86359
|
if (this.users) {
|
|
84769
86360
|
b.write(index_js_1.Primitive.Vector.write(this.users));
|
|
84770
86361
|
}
|
|
86362
|
+
if (this.chats) {
|
|
86363
|
+
b.write(index_js_1.Primitive.Vector.write(this.chats));
|
|
86364
|
+
}
|
|
84771
86365
|
return deps_js_1.Buffer.from(b.buffer);
|
|
84772
86366
|
}
|
|
84773
86367
|
}
|
|
@@ -84835,20 +86429,27 @@ var Raw;
|
|
|
84835
86429
|
class StarGiftActiveAuctions extends index_js_1.TLObject {
|
|
84836
86430
|
auctions;
|
|
84837
86431
|
users;
|
|
86432
|
+
chats;
|
|
84838
86433
|
constructor(params) {
|
|
84839
86434
|
super();
|
|
84840
86435
|
this.classType = 'types';
|
|
84841
86436
|
this.className = 'payments.StarGiftActiveAuctions';
|
|
84842
|
-
this.constructorId =
|
|
86437
|
+
this.constructorId = 0xaef6abbc;
|
|
84843
86438
|
this.subclassOfId = 0x917dd0c7;
|
|
84844
|
-
this._slots = ['auctions', 'users'];
|
|
86439
|
+
this._slots = ['auctions', 'users', 'chats'];
|
|
84845
86440
|
this.auctions = params.auctions;
|
|
84846
86441
|
this.users = params.users;
|
|
86442
|
+
this.chats = params.chats;
|
|
84847
86443
|
}
|
|
84848
86444
|
static async read(_data, ..._args) {
|
|
84849
86445
|
let auctions = await index_js_1.TLObject.read(_data);
|
|
84850
86446
|
let users = await index_js_1.TLObject.read(_data);
|
|
84851
|
-
|
|
86447
|
+
let chats = await index_js_1.TLObject.read(_data);
|
|
86448
|
+
return new Raw.payments.StarGiftActiveAuctions({
|
|
86449
|
+
auctions: auctions,
|
|
86450
|
+
users: users,
|
|
86451
|
+
chats: chats,
|
|
86452
|
+
});
|
|
84852
86453
|
}
|
|
84853
86454
|
write() {
|
|
84854
86455
|
const b = new deps_js_1.BytesIO();
|
|
@@ -84859,10 +86460,38 @@ var Raw;
|
|
|
84859
86460
|
if (this.users) {
|
|
84860
86461
|
b.write(index_js_1.Primitive.Vector.write(this.users));
|
|
84861
86462
|
}
|
|
86463
|
+
if (this.chats) {
|
|
86464
|
+
b.write(index_js_1.Primitive.Vector.write(this.chats));
|
|
86465
|
+
}
|
|
84862
86466
|
return deps_js_1.Buffer.from(b.buffer);
|
|
84863
86467
|
}
|
|
84864
86468
|
}
|
|
84865
86469
|
payments.StarGiftActiveAuctions = StarGiftActiveAuctions;
|
|
86470
|
+
class StarGiftUpgradeAttributes extends index_js_1.TLObject {
|
|
86471
|
+
attributes;
|
|
86472
|
+
constructor(params) {
|
|
86473
|
+
super();
|
|
86474
|
+
this.classType = 'types';
|
|
86475
|
+
this.className = 'payments.StarGiftUpgradeAttributes';
|
|
86476
|
+
this.constructorId = 0x46c6e36f;
|
|
86477
|
+
this.subclassOfId = 0xf46acef;
|
|
86478
|
+
this._slots = ['attributes'];
|
|
86479
|
+
this.attributes = params.attributes;
|
|
86480
|
+
}
|
|
86481
|
+
static async read(_data, ..._args) {
|
|
86482
|
+
let attributes = await index_js_1.TLObject.read(_data);
|
|
86483
|
+
return new Raw.payments.StarGiftUpgradeAttributes({ attributes: attributes });
|
|
86484
|
+
}
|
|
86485
|
+
write() {
|
|
86486
|
+
const b = new deps_js_1.BytesIO();
|
|
86487
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
86488
|
+
if (this.attributes) {
|
|
86489
|
+
b.write(index_js_1.Primitive.Vector.write(this.attributes));
|
|
86490
|
+
}
|
|
86491
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
86492
|
+
}
|
|
86493
|
+
}
|
|
86494
|
+
payments.StarGiftUpgradeAttributes = StarGiftUpgradeAttributes;
|
|
84866
86495
|
class GetPaymentForm extends index_js_1.TLObject {
|
|
84867
86496
|
__response__;
|
|
84868
86497
|
invoice;
|
|
@@ -86627,6 +88256,7 @@ var Raw;
|
|
|
86627
88256
|
__response__;
|
|
86628
88257
|
sortByPrice;
|
|
86629
88258
|
sortByNum;
|
|
88259
|
+
forCraft;
|
|
86630
88260
|
attributesHash;
|
|
86631
88261
|
giftId;
|
|
86632
88262
|
attributes;
|
|
@@ -86641,6 +88271,7 @@ var Raw;
|
|
|
86641
88271
|
this._slots = [
|
|
86642
88272
|
'sortByPrice',
|
|
86643
88273
|
'sortByNum',
|
|
88274
|
+
'forCraft',
|
|
86644
88275
|
'attributesHash',
|
|
86645
88276
|
'giftId',
|
|
86646
88277
|
'attributes',
|
|
@@ -86649,6 +88280,7 @@ var Raw;
|
|
|
86649
88280
|
];
|
|
86650
88281
|
this.sortByPrice = params.sortByPrice;
|
|
86651
88282
|
this.sortByNum = params.sortByNum;
|
|
88283
|
+
this.forCraft = params.forCraft;
|
|
86652
88284
|
this.attributesHash = params.attributesHash;
|
|
86653
88285
|
this.giftId = params.giftId;
|
|
86654
88286
|
this.attributes = params.attributes;
|
|
@@ -86659,6 +88291,7 @@ var Raw;
|
|
|
86659
88291
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
86660
88292
|
let sortByPrice = flags & (1 << 1) ? true : false;
|
|
86661
88293
|
let sortByNum = flags & (1 << 2) ? true : false;
|
|
88294
|
+
let forCraft = flags & (1 << 4) ? true : false;
|
|
86662
88295
|
let attributesHash = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
86663
88296
|
let giftId = await index_js_1.Primitive.Long.read(_data);
|
|
86664
88297
|
let attributes = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : [];
|
|
@@ -86667,6 +88300,7 @@ var Raw;
|
|
|
86667
88300
|
return new Raw.payments.GetResaleStarGifts({
|
|
86668
88301
|
sortByPrice: sortByPrice,
|
|
86669
88302
|
sortByNum: sortByNum,
|
|
88303
|
+
forCraft: forCraft,
|
|
86670
88304
|
attributesHash: attributesHash,
|
|
86671
88305
|
giftId: giftId,
|
|
86672
88306
|
attributes: attributes,
|
|
@@ -86680,6 +88314,7 @@ var Raw;
|
|
|
86680
88314
|
let flags = 0;
|
|
86681
88315
|
flags |= this.sortByPrice ? 1 << 1 : 0;
|
|
86682
88316
|
flags |= this.sortByNum ? 1 << 2 : 0;
|
|
88317
|
+
flags |= this.forCraft ? 1 << 4 : 0;
|
|
86683
88318
|
flags |= this.attributesHash !== undefined ? 1 << 0 : 0;
|
|
86684
88319
|
flags |= this.attributes ? 1 << 3 : 0;
|
|
86685
88320
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
@@ -87084,6 +88719,196 @@ var Raw;
|
|
|
87084
88719
|
}
|
|
87085
88720
|
}
|
|
87086
88721
|
payments.GetStarGiftActiveAuctions = GetStarGiftActiveAuctions;
|
|
88722
|
+
class ResolveStarGiftOffer extends index_js_1.TLObject {
|
|
88723
|
+
__response__;
|
|
88724
|
+
decline;
|
|
88725
|
+
offerMsgId;
|
|
88726
|
+
constructor(params) {
|
|
88727
|
+
super();
|
|
88728
|
+
this.classType = 'functions';
|
|
88729
|
+
this.className = 'payments.ResolveStarGiftOffer';
|
|
88730
|
+
this.constructorId = 0xe9ce781c;
|
|
88731
|
+
this.subclassOfId = 0x8af52aac;
|
|
88732
|
+
this._slots = ['decline', 'offerMsgId'];
|
|
88733
|
+
this.decline = params.decline;
|
|
88734
|
+
this.offerMsgId = params.offerMsgId;
|
|
88735
|
+
}
|
|
88736
|
+
static async read(_data, ..._args) {
|
|
88737
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
88738
|
+
let decline = flags & (1 << 0) ? true : false;
|
|
88739
|
+
let offerMsgId = await index_js_1.Primitive.Int.read(_data);
|
|
88740
|
+
return new Raw.payments.ResolveStarGiftOffer({ decline: decline, offerMsgId: offerMsgId });
|
|
88741
|
+
}
|
|
88742
|
+
write() {
|
|
88743
|
+
const b = new deps_js_1.BytesIO();
|
|
88744
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
88745
|
+
let flags = 0;
|
|
88746
|
+
flags |= this.decline ? 1 << 0 : 0;
|
|
88747
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
88748
|
+
if (this.offerMsgId !== undefined) {
|
|
88749
|
+
b.write(index_js_1.Primitive.Int.write(this.offerMsgId));
|
|
88750
|
+
}
|
|
88751
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
88752
|
+
}
|
|
88753
|
+
}
|
|
88754
|
+
payments.ResolveStarGiftOffer = ResolveStarGiftOffer;
|
|
88755
|
+
class SendStarGiftOffer extends index_js_1.TLObject {
|
|
88756
|
+
__response__;
|
|
88757
|
+
peer;
|
|
88758
|
+
slug;
|
|
88759
|
+
price;
|
|
88760
|
+
duration;
|
|
88761
|
+
randomId;
|
|
88762
|
+
allowPaidStars;
|
|
88763
|
+
constructor(params) {
|
|
88764
|
+
super();
|
|
88765
|
+
this.classType = 'functions';
|
|
88766
|
+
this.className = 'payments.SendStarGiftOffer';
|
|
88767
|
+
this.constructorId = 0x8fb86b41;
|
|
88768
|
+
this.subclassOfId = 0x8af52aac;
|
|
88769
|
+
this._slots = ['peer', 'slug', 'price', 'duration', 'randomId', 'allowPaidStars'];
|
|
88770
|
+
this.peer = params.peer;
|
|
88771
|
+
this.slug = params.slug;
|
|
88772
|
+
this.price = params.price;
|
|
88773
|
+
this.duration = params.duration;
|
|
88774
|
+
this.randomId = params.randomId;
|
|
88775
|
+
this.allowPaidStars = params.allowPaidStars;
|
|
88776
|
+
}
|
|
88777
|
+
static async read(_data, ..._args) {
|
|
88778
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
88779
|
+
let peer = await index_js_1.TLObject.read(_data);
|
|
88780
|
+
let slug = await index_js_1.Primitive.String.read(_data);
|
|
88781
|
+
let price = await index_js_1.TLObject.read(_data);
|
|
88782
|
+
let duration = await index_js_1.Primitive.Int.read(_data);
|
|
88783
|
+
let randomId = await index_js_1.Primitive.Long.read(_data);
|
|
88784
|
+
let allowPaidStars = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
88785
|
+
return new Raw.payments.SendStarGiftOffer({
|
|
88786
|
+
peer: peer,
|
|
88787
|
+
slug: slug,
|
|
88788
|
+
price: price,
|
|
88789
|
+
duration: duration,
|
|
88790
|
+
randomId: randomId,
|
|
88791
|
+
allowPaidStars: allowPaidStars,
|
|
88792
|
+
});
|
|
88793
|
+
}
|
|
88794
|
+
write() {
|
|
88795
|
+
const b = new deps_js_1.BytesIO();
|
|
88796
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
88797
|
+
let flags = 0;
|
|
88798
|
+
flags |= this.allowPaidStars !== undefined ? 1 << 0 : 0;
|
|
88799
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
88800
|
+
if (this.peer !== undefined) {
|
|
88801
|
+
b.write(this.peer.write());
|
|
88802
|
+
}
|
|
88803
|
+
if (this.slug !== undefined) {
|
|
88804
|
+
b.write(index_js_1.Primitive.String.write(this.slug));
|
|
88805
|
+
}
|
|
88806
|
+
if (this.price !== undefined) {
|
|
88807
|
+
b.write(this.price.write());
|
|
88808
|
+
}
|
|
88809
|
+
if (this.duration !== undefined) {
|
|
88810
|
+
b.write(index_js_1.Primitive.Int.write(this.duration));
|
|
88811
|
+
}
|
|
88812
|
+
if (this.randomId !== undefined) {
|
|
88813
|
+
b.write(index_js_1.Primitive.Long.write(this.randomId));
|
|
88814
|
+
}
|
|
88815
|
+
if (this.allowPaidStars !== undefined) {
|
|
88816
|
+
b.write(index_js_1.Primitive.Long.write(this.allowPaidStars));
|
|
88817
|
+
}
|
|
88818
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
88819
|
+
}
|
|
88820
|
+
}
|
|
88821
|
+
payments.SendStarGiftOffer = SendStarGiftOffer;
|
|
88822
|
+
class GetStarGiftUpgradeAttributes extends index_js_1.TLObject {
|
|
88823
|
+
__response__;
|
|
88824
|
+
giftId;
|
|
88825
|
+
constructor(params) {
|
|
88826
|
+
super();
|
|
88827
|
+
this.classType = 'functions';
|
|
88828
|
+
this.className = 'payments.GetStarGiftUpgradeAttributes';
|
|
88829
|
+
this.constructorId = 0x6d038b58;
|
|
88830
|
+
this.subclassOfId = 0xf46acef;
|
|
88831
|
+
this._slots = ['giftId'];
|
|
88832
|
+
this.giftId = params.giftId;
|
|
88833
|
+
}
|
|
88834
|
+
static async read(_data, ..._args) {
|
|
88835
|
+
let giftId = await index_js_1.Primitive.Long.read(_data);
|
|
88836
|
+
return new Raw.payments.GetStarGiftUpgradeAttributes({ giftId: giftId });
|
|
88837
|
+
}
|
|
88838
|
+
write() {
|
|
88839
|
+
const b = new deps_js_1.BytesIO();
|
|
88840
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
88841
|
+
if (this.giftId !== undefined) {
|
|
88842
|
+
b.write(index_js_1.Primitive.Long.write(this.giftId));
|
|
88843
|
+
}
|
|
88844
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
88845
|
+
}
|
|
88846
|
+
}
|
|
88847
|
+
payments.GetStarGiftUpgradeAttributes = GetStarGiftUpgradeAttributes;
|
|
88848
|
+
class GetCraftStarGifts extends index_js_1.TLObject {
|
|
88849
|
+
__response__;
|
|
88850
|
+
giftId;
|
|
88851
|
+
offset;
|
|
88852
|
+
limit;
|
|
88853
|
+
constructor(params) {
|
|
88854
|
+
super();
|
|
88855
|
+
this.classType = 'functions';
|
|
88856
|
+
this.className = 'payments.GetCraftStarGifts';
|
|
88857
|
+
this.constructorId = 0xfd05dd00;
|
|
88858
|
+
this.subclassOfId = 0xd5112897;
|
|
88859
|
+
this._slots = ['giftId', 'offset', 'limit'];
|
|
88860
|
+
this.giftId = params.giftId;
|
|
88861
|
+
this.offset = params.offset;
|
|
88862
|
+
this.limit = params.limit;
|
|
88863
|
+
}
|
|
88864
|
+
static async read(_data, ..._args) {
|
|
88865
|
+
let giftId = await index_js_1.Primitive.Long.read(_data);
|
|
88866
|
+
let offset = await index_js_1.Primitive.String.read(_data);
|
|
88867
|
+
let limit = await index_js_1.Primitive.Int.read(_data);
|
|
88868
|
+
return new Raw.payments.GetCraftStarGifts({ giftId: giftId, offset: offset, limit: limit });
|
|
88869
|
+
}
|
|
88870
|
+
write() {
|
|
88871
|
+
const b = new deps_js_1.BytesIO();
|
|
88872
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
88873
|
+
if (this.giftId !== undefined) {
|
|
88874
|
+
b.write(index_js_1.Primitive.Long.write(this.giftId));
|
|
88875
|
+
}
|
|
88876
|
+
if (this.offset !== undefined) {
|
|
88877
|
+
b.write(index_js_1.Primitive.String.write(this.offset));
|
|
88878
|
+
}
|
|
88879
|
+
if (this.limit !== undefined) {
|
|
88880
|
+
b.write(index_js_1.Primitive.Int.write(this.limit));
|
|
88881
|
+
}
|
|
88882
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
88883
|
+
}
|
|
88884
|
+
}
|
|
88885
|
+
payments.GetCraftStarGifts = GetCraftStarGifts;
|
|
88886
|
+
class CraftStarGift extends index_js_1.TLObject {
|
|
88887
|
+
__response__;
|
|
88888
|
+
stargift;
|
|
88889
|
+
constructor(params) {
|
|
88890
|
+
super();
|
|
88891
|
+
this.classType = 'functions';
|
|
88892
|
+
this.className = 'payments.CraftStarGift';
|
|
88893
|
+
this.constructorId = 0xb0f9684f;
|
|
88894
|
+
this.subclassOfId = 0x8af52aac;
|
|
88895
|
+
this._slots = ['stargift'];
|
|
88896
|
+
this.stargift = params.stargift;
|
|
88897
|
+
}
|
|
88898
|
+
static async read(_data, ..._args) {
|
|
88899
|
+
let stargift = await index_js_1.TLObject.read(_data);
|
|
88900
|
+
return new Raw.payments.CraftStarGift({ stargift: stargift });
|
|
88901
|
+
}
|
|
88902
|
+
write() {
|
|
88903
|
+
const b = new deps_js_1.BytesIO();
|
|
88904
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
88905
|
+
if (this.stargift) {
|
|
88906
|
+
b.write(index_js_1.Primitive.Vector.write(this.stargift));
|
|
88907
|
+
}
|
|
88908
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
88909
|
+
}
|
|
88910
|
+
}
|
|
88911
|
+
payments.CraftStarGift = CraftStarGift;
|
|
87087
88912
|
})(payments = Raw.payments || (Raw.payments = {}));
|
|
87088
88913
|
let phone;
|
|
87089
88914
|
(function (phone) {
|