@tgsnake/skema 1.7.0 → 1.10.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 +101 -1
- package/dist/errors/exceptions/All.js +101 -1
- package/dist/errors/exceptions/BadRequest400.d.ts +320 -0
- package/dist/errors/exceptions/BadRequest400.js +422 -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 +24 -0
- package/dist/errors/exceptions/Forbidden403.js +32 -2
- package/dist/errors/exceptions/InternalServerError500.d.ts +20 -0
- package/dist/errors/exceptions/InternalServerError500.js +27 -2
- 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 +48 -28
- package/dist/raw/All.js +48 -28
- package/dist/raw/Raw.d.ts +263 -13
- package/dist/raw/Raw.js +988 -89
- 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
|
}
|
|
@@ -9626,6 +9709,7 @@ var Raw;
|
|
|
9626
9709
|
prepaidUpgrade;
|
|
9627
9710
|
assigned;
|
|
9628
9711
|
fromOffer;
|
|
9712
|
+
craft;
|
|
9629
9713
|
gift;
|
|
9630
9714
|
canExportAt;
|
|
9631
9715
|
transferStars;
|
|
@@ -9636,11 +9720,12 @@ var Raw;
|
|
|
9636
9720
|
canTransferAt;
|
|
9637
9721
|
canResellAt;
|
|
9638
9722
|
dropOriginalDetailsStars;
|
|
9723
|
+
canCraftAt;
|
|
9639
9724
|
constructor(params) {
|
|
9640
9725
|
super();
|
|
9641
9726
|
this.classType = 'types';
|
|
9642
9727
|
this.className = 'MessageActionStarGiftUnique';
|
|
9643
|
-
this.constructorId =
|
|
9728
|
+
this.constructorId = 0xe6c31522;
|
|
9644
9729
|
this.subclassOfId = 0x8680d126;
|
|
9645
9730
|
this._slots = [
|
|
9646
9731
|
'upgrade',
|
|
@@ -9650,6 +9735,7 @@ var Raw;
|
|
|
9650
9735
|
'prepaidUpgrade',
|
|
9651
9736
|
'assigned',
|
|
9652
9737
|
'fromOffer',
|
|
9738
|
+
'craft',
|
|
9653
9739
|
'gift',
|
|
9654
9740
|
'canExportAt',
|
|
9655
9741
|
'transferStars',
|
|
@@ -9660,6 +9746,7 @@ var Raw;
|
|
|
9660
9746
|
'canTransferAt',
|
|
9661
9747
|
'canResellAt',
|
|
9662
9748
|
'dropOriginalDetailsStars',
|
|
9749
|
+
'canCraftAt',
|
|
9663
9750
|
];
|
|
9664
9751
|
this.upgrade = params.upgrade;
|
|
9665
9752
|
this.transferred = params.transferred;
|
|
@@ -9668,6 +9755,7 @@ var Raw;
|
|
|
9668
9755
|
this.prepaidUpgrade = params.prepaidUpgrade;
|
|
9669
9756
|
this.assigned = params.assigned;
|
|
9670
9757
|
this.fromOffer = params.fromOffer;
|
|
9758
|
+
this.craft = params.craft;
|
|
9671
9759
|
this.gift = params.gift;
|
|
9672
9760
|
this.canExportAt = params.canExportAt;
|
|
9673
9761
|
this.transferStars = params.transferStars;
|
|
@@ -9678,6 +9766,7 @@ var Raw;
|
|
|
9678
9766
|
this.canTransferAt = params.canTransferAt;
|
|
9679
9767
|
this.canResellAt = params.canResellAt;
|
|
9680
9768
|
this.dropOriginalDetailsStars = params.dropOriginalDetailsStars;
|
|
9769
|
+
this.canCraftAt = params.canCraftAt;
|
|
9681
9770
|
}
|
|
9682
9771
|
static async read(_data, ..._args) {
|
|
9683
9772
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -9688,6 +9777,7 @@ var Raw;
|
|
|
9688
9777
|
let prepaidUpgrade = flags & (1 << 11) ? true : false;
|
|
9689
9778
|
let assigned = flags & (1 << 13) ? true : false;
|
|
9690
9779
|
let fromOffer = flags & (1 << 14) ? true : false;
|
|
9780
|
+
let craft = flags & (1 << 16) ? true : false;
|
|
9691
9781
|
let gift = await index_js_1.TLObject.read(_data);
|
|
9692
9782
|
let canExportAt = flags & (1 << 3) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
9693
9783
|
let transferStars = flags & (1 << 4) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
@@ -9698,6 +9788,7 @@ var Raw;
|
|
|
9698
9788
|
let canTransferAt = flags & (1 << 9) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
9699
9789
|
let canResellAt = flags & (1 << 10) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
9700
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;
|
|
9701
9792
|
return new Raw.MessageActionStarGiftUnique({
|
|
9702
9793
|
upgrade: upgrade,
|
|
9703
9794
|
transferred: transferred,
|
|
@@ -9706,6 +9797,7 @@ var Raw;
|
|
|
9706
9797
|
prepaidUpgrade: prepaidUpgrade,
|
|
9707
9798
|
assigned: assigned,
|
|
9708
9799
|
fromOffer: fromOffer,
|
|
9800
|
+
craft: craft,
|
|
9709
9801
|
gift: gift,
|
|
9710
9802
|
canExportAt: canExportAt,
|
|
9711
9803
|
transferStars: transferStars,
|
|
@@ -9716,6 +9808,7 @@ var Raw;
|
|
|
9716
9808
|
canTransferAt: canTransferAt,
|
|
9717
9809
|
canResellAt: canResellAt,
|
|
9718
9810
|
dropOriginalDetailsStars: dropOriginalDetailsStars,
|
|
9811
|
+
canCraftAt: canCraftAt,
|
|
9719
9812
|
});
|
|
9720
9813
|
}
|
|
9721
9814
|
write() {
|
|
@@ -9729,6 +9822,7 @@ var Raw;
|
|
|
9729
9822
|
flags |= this.prepaidUpgrade ? 1 << 11 : 0;
|
|
9730
9823
|
flags |= this.assigned ? 1 << 13 : 0;
|
|
9731
9824
|
flags |= this.fromOffer ? 1 << 14 : 0;
|
|
9825
|
+
flags |= this.craft ? 1 << 16 : 0;
|
|
9732
9826
|
flags |= this.canExportAt !== undefined ? 1 << 3 : 0;
|
|
9733
9827
|
flags |= this.transferStars !== undefined ? 1 << 4 : 0;
|
|
9734
9828
|
flags |= this.fromId !== undefined ? 1 << 6 : 0;
|
|
@@ -9738,6 +9832,7 @@ var Raw;
|
|
|
9738
9832
|
flags |= this.canTransferAt !== undefined ? 1 << 9 : 0;
|
|
9739
9833
|
flags |= this.canResellAt !== undefined ? 1 << 10 : 0;
|
|
9740
9834
|
flags |= this.dropOriginalDetailsStars !== undefined ? 1 << 12 : 0;
|
|
9835
|
+
flags |= this.canCraftAt !== undefined ? 1 << 15 : 0;
|
|
9741
9836
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
9742
9837
|
if (this.gift !== undefined) {
|
|
9743
9838
|
b.write(this.gift.write());
|
|
@@ -9769,6 +9864,9 @@ var Raw;
|
|
|
9769
9864
|
if (this.dropOriginalDetailsStars !== undefined) {
|
|
9770
9865
|
b.write(index_js_1.Primitive.Long.write(this.dropOriginalDetailsStars));
|
|
9771
9866
|
}
|
|
9867
|
+
if (this.canCraftAt !== undefined) {
|
|
9868
|
+
b.write(index_js_1.Primitive.Int.write(this.canCraftAt));
|
|
9869
|
+
}
|
|
9772
9870
|
return deps_js_1.Buffer.from(b.buffer);
|
|
9773
9871
|
}
|
|
9774
9872
|
}
|
|
@@ -10247,6 +10345,56 @@ var Raw;
|
|
|
10247
10345
|
}
|
|
10248
10346
|
}
|
|
10249
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;
|
|
10250
10398
|
class Dialog extends index_js_1.TLObject {
|
|
10251
10399
|
pinned;
|
|
10252
10400
|
unreadMark;
|
|
@@ -18282,6 +18430,50 @@ var Raw;
|
|
|
18282
18430
|
}
|
|
18283
18431
|
}
|
|
18284
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;
|
|
18285
18477
|
class UpdatesTooLong extends index_js_1.TLObject {
|
|
18286
18478
|
constructor() {
|
|
18287
18479
|
super();
|
|
@@ -23543,23 +23735,33 @@ var Raw;
|
|
|
23543
23735
|
}
|
|
23544
23736
|
Raw.BotInfo = BotInfo;
|
|
23545
23737
|
class KeyboardButton extends index_js_1.TLObject {
|
|
23738
|
+
style;
|
|
23546
23739
|
text;
|
|
23547
23740
|
constructor(params) {
|
|
23548
23741
|
super();
|
|
23549
23742
|
this.classType = 'types';
|
|
23550
23743
|
this.className = 'KeyboardButton';
|
|
23551
|
-
this.constructorId =
|
|
23744
|
+
this.constructorId = 0x7d170cff;
|
|
23552
23745
|
this.subclassOfId = 0xbad74a3;
|
|
23553
|
-
this._slots = ['text'];
|
|
23746
|
+
this._slots = ['style', 'text'];
|
|
23747
|
+
this.style = params.style;
|
|
23554
23748
|
this.text = params.text;
|
|
23555
23749
|
}
|
|
23556
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;
|
|
23557
23753
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23558
|
-
return new Raw.KeyboardButton({ text: text });
|
|
23754
|
+
return new Raw.KeyboardButton({ style: style, text: text });
|
|
23559
23755
|
}
|
|
23560
23756
|
write() {
|
|
23561
23757
|
const b = new deps_js_1.BytesIO();
|
|
23562
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
|
+
}
|
|
23563
23765
|
if (this.text !== undefined) {
|
|
23564
23766
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23565
23767
|
}
|
|
@@ -23568,26 +23770,36 @@ var Raw;
|
|
|
23568
23770
|
}
|
|
23569
23771
|
Raw.KeyboardButton = KeyboardButton;
|
|
23570
23772
|
class KeyboardButtonUrl extends index_js_1.TLObject {
|
|
23773
|
+
style;
|
|
23571
23774
|
text;
|
|
23572
23775
|
url;
|
|
23573
23776
|
constructor(params) {
|
|
23574
23777
|
super();
|
|
23575
23778
|
this.classType = 'types';
|
|
23576
23779
|
this.className = 'KeyboardButtonUrl';
|
|
23577
|
-
this.constructorId =
|
|
23780
|
+
this.constructorId = 0xd80c25ec;
|
|
23578
23781
|
this.subclassOfId = 0xbad74a3;
|
|
23579
|
-
this._slots = ['text', 'url'];
|
|
23782
|
+
this._slots = ['style', 'text', 'url'];
|
|
23783
|
+
this.style = params.style;
|
|
23580
23784
|
this.text = params.text;
|
|
23581
23785
|
this.url = params.url;
|
|
23582
23786
|
}
|
|
23583
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;
|
|
23584
23790
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23585
23791
|
let url = await index_js_1.Primitive.String.read(_data);
|
|
23586
|
-
return new Raw.KeyboardButtonUrl({ text: text, url: url });
|
|
23792
|
+
return new Raw.KeyboardButtonUrl({ style: style, text: text, url: url });
|
|
23587
23793
|
}
|
|
23588
23794
|
write() {
|
|
23589
23795
|
const b = new deps_js_1.BytesIO();
|
|
23590
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
|
+
}
|
|
23591
23803
|
if (this.text !== undefined) {
|
|
23592
23804
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23593
23805
|
}
|
|
@@ -23600,26 +23812,30 @@ var Raw;
|
|
|
23600
23812
|
Raw.KeyboardButtonUrl = KeyboardButtonUrl;
|
|
23601
23813
|
class KeyboardButtonCallback extends index_js_1.TLObject {
|
|
23602
23814
|
requiresPassword;
|
|
23815
|
+
style;
|
|
23603
23816
|
text;
|
|
23604
23817
|
data;
|
|
23605
23818
|
constructor(params) {
|
|
23606
23819
|
super();
|
|
23607
23820
|
this.classType = 'types';
|
|
23608
23821
|
this.className = 'KeyboardButtonCallback';
|
|
23609
|
-
this.constructorId =
|
|
23822
|
+
this.constructorId = 0xe62bc960;
|
|
23610
23823
|
this.subclassOfId = 0xbad74a3;
|
|
23611
|
-
this._slots = ['requiresPassword', 'text', 'data'];
|
|
23824
|
+
this._slots = ['requiresPassword', 'style', 'text', 'data'];
|
|
23612
23825
|
this.requiresPassword = params.requiresPassword;
|
|
23826
|
+
this.style = params.style;
|
|
23613
23827
|
this.text = params.text;
|
|
23614
23828
|
this.data = params.data;
|
|
23615
23829
|
}
|
|
23616
23830
|
static async read(_data, ..._args) {
|
|
23617
23831
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
23618
23832
|
let requiresPassword = flags & (1 << 0) ? true : false;
|
|
23833
|
+
let style = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
23619
23834
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23620
23835
|
let data = await index_js_1.Primitive.Bytes.read(_data);
|
|
23621
23836
|
return new Raw.KeyboardButtonCallback({
|
|
23622
23837
|
requiresPassword: requiresPassword,
|
|
23838
|
+
style: style,
|
|
23623
23839
|
text: text,
|
|
23624
23840
|
data: data,
|
|
23625
23841
|
});
|
|
@@ -23629,7 +23845,11 @@ var Raw;
|
|
|
23629
23845
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
23630
23846
|
let flags = 0;
|
|
23631
23847
|
flags |= this.requiresPassword ? 1 << 0 : 0;
|
|
23848
|
+
flags |= this.style !== undefined ? 1 << 10 : 0;
|
|
23632
23849
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
23850
|
+
if (this.style !== undefined) {
|
|
23851
|
+
b.write(this.style.write());
|
|
23852
|
+
}
|
|
23633
23853
|
if (this.text !== undefined) {
|
|
23634
23854
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23635
23855
|
}
|
|
@@ -23641,23 +23861,33 @@ var Raw;
|
|
|
23641
23861
|
}
|
|
23642
23862
|
Raw.KeyboardButtonCallback = KeyboardButtonCallback;
|
|
23643
23863
|
class KeyboardButtonRequestPhone extends index_js_1.TLObject {
|
|
23864
|
+
style;
|
|
23644
23865
|
text;
|
|
23645
23866
|
constructor(params) {
|
|
23646
23867
|
super();
|
|
23647
23868
|
this.classType = 'types';
|
|
23648
23869
|
this.className = 'KeyboardButtonRequestPhone';
|
|
23649
|
-
this.constructorId =
|
|
23870
|
+
this.constructorId = 0x417efd8f;
|
|
23650
23871
|
this.subclassOfId = 0xbad74a3;
|
|
23651
|
-
this._slots = ['text'];
|
|
23872
|
+
this._slots = ['style', 'text'];
|
|
23873
|
+
this.style = params.style;
|
|
23652
23874
|
this.text = params.text;
|
|
23653
23875
|
}
|
|
23654
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;
|
|
23655
23879
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23656
|
-
return new Raw.KeyboardButtonRequestPhone({ text: text });
|
|
23880
|
+
return new Raw.KeyboardButtonRequestPhone({ style: style, text: text });
|
|
23657
23881
|
}
|
|
23658
23882
|
write() {
|
|
23659
23883
|
const b = new deps_js_1.BytesIO();
|
|
23660
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
|
+
}
|
|
23661
23891
|
if (this.text !== undefined) {
|
|
23662
23892
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23663
23893
|
}
|
|
@@ -23666,23 +23896,33 @@ var Raw;
|
|
|
23666
23896
|
}
|
|
23667
23897
|
Raw.KeyboardButtonRequestPhone = KeyboardButtonRequestPhone;
|
|
23668
23898
|
class KeyboardButtonRequestGeoLocation extends index_js_1.TLObject {
|
|
23899
|
+
style;
|
|
23669
23900
|
text;
|
|
23670
23901
|
constructor(params) {
|
|
23671
23902
|
super();
|
|
23672
23903
|
this.classType = 'types';
|
|
23673
23904
|
this.className = 'KeyboardButtonRequestGeoLocation';
|
|
23674
|
-
this.constructorId =
|
|
23905
|
+
this.constructorId = 0xaa40f94d;
|
|
23675
23906
|
this.subclassOfId = 0xbad74a3;
|
|
23676
|
-
this._slots = ['text'];
|
|
23907
|
+
this._slots = ['style', 'text'];
|
|
23908
|
+
this.style = params.style;
|
|
23677
23909
|
this.text = params.text;
|
|
23678
23910
|
}
|
|
23679
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;
|
|
23680
23914
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23681
|
-
return new Raw.KeyboardButtonRequestGeoLocation({ text: text });
|
|
23915
|
+
return new Raw.KeyboardButtonRequestGeoLocation({ style: style, text: text });
|
|
23682
23916
|
}
|
|
23683
23917
|
write() {
|
|
23684
23918
|
const b = new deps_js_1.BytesIO();
|
|
23685
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
|
+
}
|
|
23686
23926
|
if (this.text !== undefined) {
|
|
23687
23927
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23688
23928
|
}
|
|
@@ -23692,6 +23932,7 @@ var Raw;
|
|
|
23692
23932
|
Raw.KeyboardButtonRequestGeoLocation = KeyboardButtonRequestGeoLocation;
|
|
23693
23933
|
class KeyboardButtonSwitchInline extends index_js_1.TLObject {
|
|
23694
23934
|
samePeer;
|
|
23935
|
+
style;
|
|
23695
23936
|
text;
|
|
23696
23937
|
query;
|
|
23697
23938
|
peerTypes;
|
|
@@ -23699,10 +23940,11 @@ var Raw;
|
|
|
23699
23940
|
super();
|
|
23700
23941
|
this.classType = 'types';
|
|
23701
23942
|
this.className = 'KeyboardButtonSwitchInline';
|
|
23702
|
-
this.constructorId =
|
|
23943
|
+
this.constructorId = 0x991399fc;
|
|
23703
23944
|
this.subclassOfId = 0xbad74a3;
|
|
23704
|
-
this._slots = ['samePeer', 'text', 'query', 'peerTypes'];
|
|
23945
|
+
this._slots = ['samePeer', 'style', 'text', 'query', 'peerTypes'];
|
|
23705
23946
|
this.samePeer = params.samePeer;
|
|
23947
|
+
this.style = params.style;
|
|
23706
23948
|
this.text = params.text;
|
|
23707
23949
|
this.query = params.query;
|
|
23708
23950
|
this.peerTypes = params.peerTypes;
|
|
@@ -23710,11 +23952,13 @@ var Raw;
|
|
|
23710
23952
|
static async read(_data, ..._args) {
|
|
23711
23953
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
23712
23954
|
let samePeer = flags & (1 << 0) ? true : false;
|
|
23955
|
+
let style = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
23713
23956
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23714
23957
|
let query = await index_js_1.Primitive.String.read(_data);
|
|
23715
23958
|
let peerTypes = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : [];
|
|
23716
23959
|
return new Raw.KeyboardButtonSwitchInline({
|
|
23717
23960
|
samePeer: samePeer,
|
|
23961
|
+
style: style,
|
|
23718
23962
|
text: text,
|
|
23719
23963
|
query: query,
|
|
23720
23964
|
peerTypes: peerTypes,
|
|
@@ -23725,8 +23969,12 @@ var Raw;
|
|
|
23725
23969
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
23726
23970
|
let flags = 0;
|
|
23727
23971
|
flags |= this.samePeer ? 1 << 0 : 0;
|
|
23972
|
+
flags |= this.style !== undefined ? 1 << 10 : 0;
|
|
23728
23973
|
flags |= this.peerTypes ? 1 << 1 : 0;
|
|
23729
23974
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
23975
|
+
if (this.style !== undefined) {
|
|
23976
|
+
b.write(this.style.write());
|
|
23977
|
+
}
|
|
23730
23978
|
if (this.text !== undefined) {
|
|
23731
23979
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23732
23980
|
}
|
|
@@ -23741,23 +23989,33 @@ var Raw;
|
|
|
23741
23989
|
}
|
|
23742
23990
|
Raw.KeyboardButtonSwitchInline = KeyboardButtonSwitchInline;
|
|
23743
23991
|
class KeyboardButtonGame extends index_js_1.TLObject {
|
|
23992
|
+
style;
|
|
23744
23993
|
text;
|
|
23745
23994
|
constructor(params) {
|
|
23746
23995
|
super();
|
|
23747
23996
|
this.classType = 'types';
|
|
23748
23997
|
this.className = 'KeyboardButtonGame';
|
|
23749
|
-
this.constructorId =
|
|
23998
|
+
this.constructorId = 0x89c590f9;
|
|
23750
23999
|
this.subclassOfId = 0xbad74a3;
|
|
23751
|
-
this._slots = ['text'];
|
|
24000
|
+
this._slots = ['style', 'text'];
|
|
24001
|
+
this.style = params.style;
|
|
23752
24002
|
this.text = params.text;
|
|
23753
24003
|
}
|
|
23754
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;
|
|
23755
24007
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23756
|
-
return new Raw.KeyboardButtonGame({ text: text });
|
|
24008
|
+
return new Raw.KeyboardButtonGame({ style: style, text: text });
|
|
23757
24009
|
}
|
|
23758
24010
|
write() {
|
|
23759
24011
|
const b = new deps_js_1.BytesIO();
|
|
23760
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
|
+
}
|
|
23761
24019
|
if (this.text !== undefined) {
|
|
23762
24020
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23763
24021
|
}
|
|
@@ -23766,23 +24024,33 @@ var Raw;
|
|
|
23766
24024
|
}
|
|
23767
24025
|
Raw.KeyboardButtonGame = KeyboardButtonGame;
|
|
23768
24026
|
class KeyboardButtonBuy extends index_js_1.TLObject {
|
|
24027
|
+
style;
|
|
23769
24028
|
text;
|
|
23770
24029
|
constructor(params) {
|
|
23771
24030
|
super();
|
|
23772
24031
|
this.classType = 'types';
|
|
23773
24032
|
this.className = 'KeyboardButtonBuy';
|
|
23774
|
-
this.constructorId =
|
|
24033
|
+
this.constructorId = 0x3fa53905;
|
|
23775
24034
|
this.subclassOfId = 0xbad74a3;
|
|
23776
|
-
this._slots = ['text'];
|
|
24035
|
+
this._slots = ['style', 'text'];
|
|
24036
|
+
this.style = params.style;
|
|
23777
24037
|
this.text = params.text;
|
|
23778
24038
|
}
|
|
23779
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;
|
|
23780
24042
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23781
|
-
return new Raw.KeyboardButtonBuy({ text: text });
|
|
24043
|
+
return new Raw.KeyboardButtonBuy({ style: style, text: text });
|
|
23782
24044
|
}
|
|
23783
24045
|
write() {
|
|
23784
24046
|
const b = new deps_js_1.BytesIO();
|
|
23785
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
|
+
}
|
|
23786
24054
|
if (this.text !== undefined) {
|
|
23787
24055
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23788
24056
|
}
|
|
@@ -23791,6 +24059,7 @@ var Raw;
|
|
|
23791
24059
|
}
|
|
23792
24060
|
Raw.KeyboardButtonBuy = KeyboardButtonBuy;
|
|
23793
24061
|
class KeyboardButtonUrlAuth extends index_js_1.TLObject {
|
|
24062
|
+
style;
|
|
23794
24063
|
text;
|
|
23795
24064
|
fwdText;
|
|
23796
24065
|
url;
|
|
@@ -23799,9 +24068,10 @@ var Raw;
|
|
|
23799
24068
|
super();
|
|
23800
24069
|
this.classType = 'types';
|
|
23801
24070
|
this.className = 'KeyboardButtonUrlAuth';
|
|
23802
|
-
this.constructorId =
|
|
24071
|
+
this.constructorId = 0xf51006f9;
|
|
23803
24072
|
this.subclassOfId = 0xbad74a3;
|
|
23804
|
-
this._slots = ['text', 'fwdText', 'url', 'buttonId'];
|
|
24073
|
+
this._slots = ['style', 'text', 'fwdText', 'url', 'buttonId'];
|
|
24074
|
+
this.style = params.style;
|
|
23805
24075
|
this.text = params.text;
|
|
23806
24076
|
this.fwdText = params.fwdText;
|
|
23807
24077
|
this.url = params.url;
|
|
@@ -23809,11 +24079,13 @@ var Raw;
|
|
|
23809
24079
|
}
|
|
23810
24080
|
static async read(_data, ..._args) {
|
|
23811
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;
|
|
23812
24083
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23813
24084
|
let fwdText = flags & (1 << 0) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
23814
24085
|
let url = await index_js_1.Primitive.String.read(_data);
|
|
23815
24086
|
let buttonId = await index_js_1.Primitive.Int.read(_data);
|
|
23816
24087
|
return new Raw.KeyboardButtonUrlAuth({
|
|
24088
|
+
style: style,
|
|
23817
24089
|
text: text,
|
|
23818
24090
|
fwdText: fwdText,
|
|
23819
24091
|
url: url,
|
|
@@ -23824,8 +24096,12 @@ var Raw;
|
|
|
23824
24096
|
const b = new deps_js_1.BytesIO();
|
|
23825
24097
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
23826
24098
|
let flags = 0;
|
|
24099
|
+
flags |= this.style !== undefined ? 1 << 10 : 0;
|
|
23827
24100
|
flags |= this.fwdText !== undefined ? 1 << 0 : 0;
|
|
23828
24101
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
24102
|
+
if (this.style !== undefined) {
|
|
24103
|
+
b.write(this.style.write());
|
|
24104
|
+
}
|
|
23829
24105
|
if (this.text !== undefined) {
|
|
23830
24106
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23831
24107
|
}
|
|
@@ -23844,6 +24120,7 @@ var Raw;
|
|
|
23844
24120
|
Raw.KeyboardButtonUrlAuth = KeyboardButtonUrlAuth;
|
|
23845
24121
|
class InputKeyboardButtonUrlAuth extends index_js_1.TLObject {
|
|
23846
24122
|
requestWriteAccess;
|
|
24123
|
+
style;
|
|
23847
24124
|
text;
|
|
23848
24125
|
fwdText;
|
|
23849
24126
|
url;
|
|
@@ -23852,10 +24129,11 @@ var Raw;
|
|
|
23852
24129
|
super();
|
|
23853
24130
|
this.classType = 'types';
|
|
23854
24131
|
this.className = 'InputKeyboardButtonUrlAuth';
|
|
23855
|
-
this.constructorId =
|
|
24132
|
+
this.constructorId = 0x68013e72;
|
|
23856
24133
|
this.subclassOfId = 0xbad74a3;
|
|
23857
|
-
this._slots = ['requestWriteAccess', 'text', 'fwdText', 'url', 'bot'];
|
|
24134
|
+
this._slots = ['requestWriteAccess', 'style', 'text', 'fwdText', 'url', 'bot'];
|
|
23858
24135
|
this.requestWriteAccess = params.requestWriteAccess;
|
|
24136
|
+
this.style = params.style;
|
|
23859
24137
|
this.text = params.text;
|
|
23860
24138
|
this.fwdText = params.fwdText;
|
|
23861
24139
|
this.url = params.url;
|
|
@@ -23864,12 +24142,14 @@ var Raw;
|
|
|
23864
24142
|
static async read(_data, ..._args) {
|
|
23865
24143
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
23866
24144
|
let requestWriteAccess = flags & (1 << 0) ? true : false;
|
|
24145
|
+
let style = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
23867
24146
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23868
24147
|
let fwdText = flags & (1 << 1) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
23869
24148
|
let url = await index_js_1.Primitive.String.read(_data);
|
|
23870
24149
|
let bot = await index_js_1.TLObject.read(_data);
|
|
23871
24150
|
return new Raw.InputKeyboardButtonUrlAuth({
|
|
23872
24151
|
requestWriteAccess: requestWriteAccess,
|
|
24152
|
+
style: style,
|
|
23873
24153
|
text: text,
|
|
23874
24154
|
fwdText: fwdText,
|
|
23875
24155
|
url: url,
|
|
@@ -23881,8 +24161,12 @@ var Raw;
|
|
|
23881
24161
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
23882
24162
|
let flags = 0;
|
|
23883
24163
|
flags |= this.requestWriteAccess ? 1 << 0 : 0;
|
|
24164
|
+
flags |= this.style !== undefined ? 1 << 10 : 0;
|
|
23884
24165
|
flags |= this.fwdText !== undefined ? 1 << 1 : 0;
|
|
23885
24166
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
24167
|
+
if (this.style !== undefined) {
|
|
24168
|
+
b.write(this.style.write());
|
|
24169
|
+
}
|
|
23886
24170
|
if (this.text !== undefined) {
|
|
23887
24171
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23888
24172
|
}
|
|
@@ -23900,30 +24184,37 @@ var Raw;
|
|
|
23900
24184
|
}
|
|
23901
24185
|
Raw.InputKeyboardButtonUrlAuth = InputKeyboardButtonUrlAuth;
|
|
23902
24186
|
class KeyboardButtonRequestPoll extends index_js_1.TLObject {
|
|
24187
|
+
style;
|
|
23903
24188
|
quiz;
|
|
23904
24189
|
text;
|
|
23905
24190
|
constructor(params) {
|
|
23906
24191
|
super();
|
|
23907
24192
|
this.classType = 'types';
|
|
23908
24193
|
this.className = 'KeyboardButtonRequestPoll';
|
|
23909
|
-
this.constructorId =
|
|
24194
|
+
this.constructorId = 0x7a11d782;
|
|
23910
24195
|
this.subclassOfId = 0xbad74a3;
|
|
23911
|
-
this._slots = ['quiz', 'text'];
|
|
24196
|
+
this._slots = ['style', 'quiz', 'text'];
|
|
24197
|
+
this.style = params.style;
|
|
23912
24198
|
this.quiz = params.quiz;
|
|
23913
24199
|
this.text = params.text;
|
|
23914
24200
|
}
|
|
23915
24201
|
static async read(_data, ..._args) {
|
|
23916
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;
|
|
23917
24204
|
let quiz = flags & (1 << 0) ? await index_js_1.Primitive.Bool.read(_data) : undefined;
|
|
23918
24205
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23919
|
-
return new Raw.KeyboardButtonRequestPoll({ quiz: quiz, text: text });
|
|
24206
|
+
return new Raw.KeyboardButtonRequestPoll({ style: style, quiz: quiz, text: text });
|
|
23920
24207
|
}
|
|
23921
24208
|
write() {
|
|
23922
24209
|
const b = new deps_js_1.BytesIO();
|
|
23923
24210
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
23924
24211
|
let flags = 0;
|
|
24212
|
+
flags |= this.style !== undefined ? 1 << 10 : 0;
|
|
23925
24213
|
flags |= this.quiz !== undefined ? 1 << 0 : 0;
|
|
23926
24214
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
24215
|
+
if (this.style !== undefined) {
|
|
24216
|
+
b.write(this.style.write());
|
|
24217
|
+
}
|
|
23927
24218
|
if (this.quiz !== undefined) {
|
|
23928
24219
|
b.write(index_js_1.Primitive.Bool.write(this.quiz));
|
|
23929
24220
|
}
|
|
@@ -23935,26 +24226,36 @@ var Raw;
|
|
|
23935
24226
|
}
|
|
23936
24227
|
Raw.KeyboardButtonRequestPoll = KeyboardButtonRequestPoll;
|
|
23937
24228
|
class InputKeyboardButtonUserProfile extends index_js_1.TLObject {
|
|
24229
|
+
style;
|
|
23938
24230
|
text;
|
|
23939
24231
|
userId;
|
|
23940
24232
|
constructor(params) {
|
|
23941
24233
|
super();
|
|
23942
24234
|
this.classType = 'types';
|
|
23943
24235
|
this.className = 'InputKeyboardButtonUserProfile';
|
|
23944
|
-
this.constructorId =
|
|
24236
|
+
this.constructorId = 0x7d5e07c7;
|
|
23945
24237
|
this.subclassOfId = 0xbad74a3;
|
|
23946
|
-
this._slots = ['text', 'userId'];
|
|
24238
|
+
this._slots = ['style', 'text', 'userId'];
|
|
24239
|
+
this.style = params.style;
|
|
23947
24240
|
this.text = params.text;
|
|
23948
24241
|
this.userId = params.userId;
|
|
23949
24242
|
}
|
|
23950
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;
|
|
23951
24246
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23952
24247
|
let userId = await index_js_1.TLObject.read(_data);
|
|
23953
|
-
return new Raw.InputKeyboardButtonUserProfile({ text: text, userId: userId });
|
|
24248
|
+
return new Raw.InputKeyboardButtonUserProfile({ style: style, text: text, userId: userId });
|
|
23954
24249
|
}
|
|
23955
24250
|
write() {
|
|
23956
24251
|
const b = new deps_js_1.BytesIO();
|
|
23957
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
|
+
}
|
|
23958
24259
|
if (this.text !== undefined) {
|
|
23959
24260
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23960
24261
|
}
|
|
@@ -23966,26 +24267,36 @@ var Raw;
|
|
|
23966
24267
|
}
|
|
23967
24268
|
Raw.InputKeyboardButtonUserProfile = InputKeyboardButtonUserProfile;
|
|
23968
24269
|
class KeyboardButtonUserProfile extends index_js_1.TLObject {
|
|
24270
|
+
style;
|
|
23969
24271
|
text;
|
|
23970
24272
|
userId;
|
|
23971
24273
|
constructor(params) {
|
|
23972
24274
|
super();
|
|
23973
24275
|
this.classType = 'types';
|
|
23974
24276
|
this.className = 'KeyboardButtonUserProfile';
|
|
23975
|
-
this.constructorId =
|
|
24277
|
+
this.constructorId = 0xc0fd5d09;
|
|
23976
24278
|
this.subclassOfId = 0xbad74a3;
|
|
23977
|
-
this._slots = ['text', 'userId'];
|
|
24279
|
+
this._slots = ['style', 'text', 'userId'];
|
|
24280
|
+
this.style = params.style;
|
|
23978
24281
|
this.text = params.text;
|
|
23979
24282
|
this.userId = params.userId;
|
|
23980
24283
|
}
|
|
23981
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;
|
|
23982
24287
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
23983
24288
|
let userId = await index_js_1.Primitive.Long.read(_data);
|
|
23984
|
-
return new Raw.KeyboardButtonUserProfile({ text: text, userId: userId });
|
|
24289
|
+
return new Raw.KeyboardButtonUserProfile({ style: style, text: text, userId: userId });
|
|
23985
24290
|
}
|
|
23986
24291
|
write() {
|
|
23987
24292
|
const b = new deps_js_1.BytesIO();
|
|
23988
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
|
+
}
|
|
23989
24300
|
if (this.text !== undefined) {
|
|
23990
24301
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
23991
24302
|
}
|
|
@@ -23997,26 +24308,36 @@ var Raw;
|
|
|
23997
24308
|
}
|
|
23998
24309
|
Raw.KeyboardButtonUserProfile = KeyboardButtonUserProfile;
|
|
23999
24310
|
class KeyboardButtonWebView extends index_js_1.TLObject {
|
|
24311
|
+
style;
|
|
24000
24312
|
text;
|
|
24001
24313
|
url;
|
|
24002
24314
|
constructor(params) {
|
|
24003
24315
|
super();
|
|
24004
24316
|
this.classType = 'types';
|
|
24005
24317
|
this.className = 'KeyboardButtonWebView';
|
|
24006
|
-
this.constructorId =
|
|
24318
|
+
this.constructorId = 0xe846b1a0;
|
|
24007
24319
|
this.subclassOfId = 0xbad74a3;
|
|
24008
|
-
this._slots = ['text', 'url'];
|
|
24320
|
+
this._slots = ['style', 'text', 'url'];
|
|
24321
|
+
this.style = params.style;
|
|
24009
24322
|
this.text = params.text;
|
|
24010
24323
|
this.url = params.url;
|
|
24011
24324
|
}
|
|
24012
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;
|
|
24013
24328
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
24014
24329
|
let url = await index_js_1.Primitive.String.read(_data);
|
|
24015
|
-
return new Raw.KeyboardButtonWebView({ text: text, url: url });
|
|
24330
|
+
return new Raw.KeyboardButtonWebView({ style: style, text: text, url: url });
|
|
24016
24331
|
}
|
|
24017
24332
|
write() {
|
|
24018
24333
|
const b = new deps_js_1.BytesIO();
|
|
24019
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
|
+
}
|
|
24020
24341
|
if (this.text !== undefined) {
|
|
24021
24342
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
24022
24343
|
}
|
|
@@ -24028,26 +24349,36 @@ var Raw;
|
|
|
24028
24349
|
}
|
|
24029
24350
|
Raw.KeyboardButtonWebView = KeyboardButtonWebView;
|
|
24030
24351
|
class KeyboardButtonSimpleWebView extends index_js_1.TLObject {
|
|
24352
|
+
style;
|
|
24031
24353
|
text;
|
|
24032
24354
|
url;
|
|
24033
24355
|
constructor(params) {
|
|
24034
24356
|
super();
|
|
24035
24357
|
this.classType = 'types';
|
|
24036
24358
|
this.className = 'KeyboardButtonSimpleWebView';
|
|
24037
|
-
this.constructorId =
|
|
24359
|
+
this.constructorId = 0xe15c4370;
|
|
24038
24360
|
this.subclassOfId = 0xbad74a3;
|
|
24039
|
-
this._slots = ['text', 'url'];
|
|
24361
|
+
this._slots = ['style', 'text', 'url'];
|
|
24362
|
+
this.style = params.style;
|
|
24040
24363
|
this.text = params.text;
|
|
24041
24364
|
this.url = params.url;
|
|
24042
24365
|
}
|
|
24043
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;
|
|
24044
24369
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
24045
24370
|
let url = await index_js_1.Primitive.String.read(_data);
|
|
24046
|
-
return new Raw.KeyboardButtonSimpleWebView({ text: text, url: url });
|
|
24371
|
+
return new Raw.KeyboardButtonSimpleWebView({ style: style, text: text, url: url });
|
|
24047
24372
|
}
|
|
24048
24373
|
write() {
|
|
24049
24374
|
const b = new deps_js_1.BytesIO();
|
|
24050
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
|
+
}
|
|
24051
24382
|
if (this.text !== undefined) {
|
|
24052
24383
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
24053
24384
|
}
|
|
@@ -24059,6 +24390,7 @@ var Raw;
|
|
|
24059
24390
|
}
|
|
24060
24391
|
Raw.KeyboardButtonSimpleWebView = KeyboardButtonSimpleWebView;
|
|
24061
24392
|
class KeyboardButtonRequestPeer extends index_js_1.TLObject {
|
|
24393
|
+
style;
|
|
24062
24394
|
text;
|
|
24063
24395
|
buttonId;
|
|
24064
24396
|
peerType;
|
|
@@ -24067,20 +24399,24 @@ var Raw;
|
|
|
24067
24399
|
super();
|
|
24068
24400
|
this.classType = 'types';
|
|
24069
24401
|
this.className = 'KeyboardButtonRequestPeer';
|
|
24070
|
-
this.constructorId =
|
|
24402
|
+
this.constructorId = 0x5b0f15f5;
|
|
24071
24403
|
this.subclassOfId = 0xbad74a3;
|
|
24072
|
-
this._slots = ['text', 'buttonId', 'peerType', 'maxQuantity'];
|
|
24404
|
+
this._slots = ['style', 'text', 'buttonId', 'peerType', 'maxQuantity'];
|
|
24405
|
+
this.style = params.style;
|
|
24073
24406
|
this.text = params.text;
|
|
24074
24407
|
this.buttonId = params.buttonId;
|
|
24075
24408
|
this.peerType = params.peerType;
|
|
24076
24409
|
this.maxQuantity = params.maxQuantity;
|
|
24077
24410
|
}
|
|
24078
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;
|
|
24079
24414
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
24080
24415
|
let buttonId = await index_js_1.Primitive.Int.read(_data);
|
|
24081
24416
|
let peerType = await index_js_1.TLObject.read(_data);
|
|
24082
24417
|
let maxQuantity = await index_js_1.Primitive.Int.read(_data);
|
|
24083
24418
|
return new Raw.KeyboardButtonRequestPeer({
|
|
24419
|
+
style: style,
|
|
24084
24420
|
text: text,
|
|
24085
24421
|
buttonId: buttonId,
|
|
24086
24422
|
peerType: peerType,
|
|
@@ -24090,6 +24426,12 @@ var Raw;
|
|
|
24090
24426
|
write() {
|
|
24091
24427
|
const b = new deps_js_1.BytesIO();
|
|
24092
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
|
+
}
|
|
24093
24435
|
if (this.text !== undefined) {
|
|
24094
24436
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
24095
24437
|
}
|
|
@@ -24110,6 +24452,7 @@ var Raw;
|
|
|
24110
24452
|
nameRequested;
|
|
24111
24453
|
usernameRequested;
|
|
24112
24454
|
photoRequested;
|
|
24455
|
+
style;
|
|
24113
24456
|
text;
|
|
24114
24457
|
buttonId;
|
|
24115
24458
|
peerType;
|
|
@@ -24118,12 +24461,13 @@ var Raw;
|
|
|
24118
24461
|
super();
|
|
24119
24462
|
this.classType = 'types';
|
|
24120
24463
|
this.className = 'InputKeyboardButtonRequestPeer';
|
|
24121
|
-
this.constructorId =
|
|
24464
|
+
this.constructorId = 0x2b78156;
|
|
24122
24465
|
this.subclassOfId = 0xbad74a3;
|
|
24123
24466
|
this._slots = [
|
|
24124
24467
|
'nameRequested',
|
|
24125
24468
|
'usernameRequested',
|
|
24126
24469
|
'photoRequested',
|
|
24470
|
+
'style',
|
|
24127
24471
|
'text',
|
|
24128
24472
|
'buttonId',
|
|
24129
24473
|
'peerType',
|
|
@@ -24132,6 +24476,7 @@ var Raw;
|
|
|
24132
24476
|
this.nameRequested = params.nameRequested;
|
|
24133
24477
|
this.usernameRequested = params.usernameRequested;
|
|
24134
24478
|
this.photoRequested = params.photoRequested;
|
|
24479
|
+
this.style = params.style;
|
|
24135
24480
|
this.text = params.text;
|
|
24136
24481
|
this.buttonId = params.buttonId;
|
|
24137
24482
|
this.peerType = params.peerType;
|
|
@@ -24142,6 +24487,7 @@ var Raw;
|
|
|
24142
24487
|
let nameRequested = flags & (1 << 0) ? true : false;
|
|
24143
24488
|
let usernameRequested = flags & (1 << 1) ? true : false;
|
|
24144
24489
|
let photoRequested = flags & (1 << 2) ? true : false;
|
|
24490
|
+
let style = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
24145
24491
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
24146
24492
|
let buttonId = await index_js_1.Primitive.Int.read(_data);
|
|
24147
24493
|
let peerType = await index_js_1.TLObject.read(_data);
|
|
@@ -24150,6 +24496,7 @@ var Raw;
|
|
|
24150
24496
|
nameRequested: nameRequested,
|
|
24151
24497
|
usernameRequested: usernameRequested,
|
|
24152
24498
|
photoRequested: photoRequested,
|
|
24499
|
+
style: style,
|
|
24153
24500
|
text: text,
|
|
24154
24501
|
buttonId: buttonId,
|
|
24155
24502
|
peerType: peerType,
|
|
@@ -24163,7 +24510,11 @@ var Raw;
|
|
|
24163
24510
|
flags |= this.nameRequested ? 1 << 0 : 0;
|
|
24164
24511
|
flags |= this.usernameRequested ? 1 << 1 : 0;
|
|
24165
24512
|
flags |= this.photoRequested ? 1 << 2 : 0;
|
|
24513
|
+
flags |= this.style !== undefined ? 1 << 10 : 0;
|
|
24166
24514
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
24515
|
+
if (this.style !== undefined) {
|
|
24516
|
+
b.write(this.style.write());
|
|
24517
|
+
}
|
|
24167
24518
|
if (this.text !== undefined) {
|
|
24168
24519
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
24169
24520
|
}
|
|
@@ -24181,26 +24532,36 @@ var Raw;
|
|
|
24181
24532
|
}
|
|
24182
24533
|
Raw.InputKeyboardButtonRequestPeer = InputKeyboardButtonRequestPeer;
|
|
24183
24534
|
class KeyboardButtonCopy extends index_js_1.TLObject {
|
|
24535
|
+
style;
|
|
24184
24536
|
text;
|
|
24185
24537
|
copyText;
|
|
24186
24538
|
constructor(params) {
|
|
24187
24539
|
super();
|
|
24188
24540
|
this.classType = 'types';
|
|
24189
24541
|
this.className = 'KeyboardButtonCopy';
|
|
24190
|
-
this.constructorId =
|
|
24542
|
+
this.constructorId = 0xbcc4af10;
|
|
24191
24543
|
this.subclassOfId = 0xbad74a3;
|
|
24192
|
-
this._slots = ['text', 'copyText'];
|
|
24544
|
+
this._slots = ['style', 'text', 'copyText'];
|
|
24545
|
+
this.style = params.style;
|
|
24193
24546
|
this.text = params.text;
|
|
24194
24547
|
this.copyText = params.copyText;
|
|
24195
24548
|
}
|
|
24196
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;
|
|
24197
24552
|
let text = await index_js_1.Primitive.String.read(_data);
|
|
24198
24553
|
let copyText = await index_js_1.Primitive.String.read(_data);
|
|
24199
|
-
return new Raw.KeyboardButtonCopy({ text: text, copyText: copyText });
|
|
24554
|
+
return new Raw.KeyboardButtonCopy({ style: style, text: text, copyText: copyText });
|
|
24200
24555
|
}
|
|
24201
24556
|
write() {
|
|
24202
24557
|
const b = new deps_js_1.BytesIO();
|
|
24203
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
|
+
}
|
|
24204
24565
|
if (this.text !== undefined) {
|
|
24205
24566
|
b.write(index_js_1.Primitive.String.write(this.text));
|
|
24206
24567
|
}
|
|
@@ -37249,28 +37610,57 @@ var Raw;
|
|
|
37249
37610
|
Raw.FolderPeer = FolderPeer;
|
|
37250
37611
|
class UrlAuthResultRequest extends index_js_1.TLObject {
|
|
37251
37612
|
requestWriteAccess;
|
|
37613
|
+
requestPhoneNumber;
|
|
37252
37614
|
bot;
|
|
37253
37615
|
domain;
|
|
37616
|
+
browser;
|
|
37617
|
+
platform;
|
|
37618
|
+
ip;
|
|
37619
|
+
region;
|
|
37254
37620
|
constructor(params) {
|
|
37255
37621
|
super();
|
|
37256
37622
|
this.classType = 'types';
|
|
37257
37623
|
this.className = 'UrlAuthResultRequest';
|
|
37258
|
-
this.constructorId =
|
|
37624
|
+
this.constructorId = 0x32fabf1a;
|
|
37259
37625
|
this.subclassOfId = 0x7765cb1e;
|
|
37260
|
-
this._slots = [
|
|
37626
|
+
this._slots = [
|
|
37627
|
+
'requestWriteAccess',
|
|
37628
|
+
'requestPhoneNumber',
|
|
37629
|
+
'bot',
|
|
37630
|
+
'domain',
|
|
37631
|
+
'browser',
|
|
37632
|
+
'platform',
|
|
37633
|
+
'ip',
|
|
37634
|
+
'region',
|
|
37635
|
+
];
|
|
37261
37636
|
this.requestWriteAccess = params.requestWriteAccess;
|
|
37637
|
+
this.requestPhoneNumber = params.requestPhoneNumber;
|
|
37262
37638
|
this.bot = params.bot;
|
|
37263
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;
|
|
37264
37644
|
}
|
|
37265
37645
|
static async read(_data, ..._args) {
|
|
37266
37646
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
37267
37647
|
let requestWriteAccess = flags & (1 << 0) ? true : false;
|
|
37648
|
+
let requestPhoneNumber = flags & (1 << 1) ? true : false;
|
|
37268
37649
|
let bot = await index_js_1.TLObject.read(_data);
|
|
37269
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;
|
|
37270
37655
|
return new Raw.UrlAuthResultRequest({
|
|
37271
37656
|
requestWriteAccess: requestWriteAccess,
|
|
37657
|
+
requestPhoneNumber: requestPhoneNumber,
|
|
37272
37658
|
bot: bot,
|
|
37273
37659
|
domain: domain,
|
|
37660
|
+
browser: browser,
|
|
37661
|
+
platform: platform,
|
|
37662
|
+
ip: ip,
|
|
37663
|
+
region: region,
|
|
37274
37664
|
});
|
|
37275
37665
|
}
|
|
37276
37666
|
write() {
|
|
@@ -37278,6 +37668,11 @@ var Raw;
|
|
|
37278
37668
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
37279
37669
|
let flags = 0;
|
|
37280
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;
|
|
37281
37676
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
37282
37677
|
if (this.bot !== undefined) {
|
|
37283
37678
|
b.write(this.bot.write());
|
|
@@ -37285,6 +37680,18 @@ var Raw;
|
|
|
37285
37680
|
if (this.domain !== undefined) {
|
|
37286
37681
|
b.write(index_js_1.Primitive.String.write(this.domain));
|
|
37287
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
|
+
}
|
|
37288
37695
|
return deps_js_1.Buffer.from(b.buffer);
|
|
37289
37696
|
}
|
|
37290
37697
|
}
|
|
@@ -37295,18 +37702,22 @@ var Raw;
|
|
|
37295
37702
|
super();
|
|
37296
37703
|
this.classType = 'types';
|
|
37297
37704
|
this.className = 'UrlAuthResultAccepted';
|
|
37298
|
-
this.constructorId =
|
|
37705
|
+
this.constructorId = 0x623a8fa0;
|
|
37299
37706
|
this.subclassOfId = 0x7765cb1e;
|
|
37300
37707
|
this._slots = ['url'];
|
|
37301
37708
|
this.url = params.url;
|
|
37302
37709
|
}
|
|
37303
37710
|
static async read(_data, ..._args) {
|
|
37304
|
-
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;
|
|
37305
37713
|
return new Raw.UrlAuthResultAccepted({ url: url });
|
|
37306
37714
|
}
|
|
37307
37715
|
write() {
|
|
37308
37716
|
const b = new deps_js_1.BytesIO();
|
|
37309
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));
|
|
37310
37721
|
if (this.url !== undefined) {
|
|
37311
37722
|
b.write(index_js_1.Primitive.String.write(this.url));
|
|
37312
37723
|
}
|
|
@@ -49472,6 +49883,8 @@ var Raw;
|
|
|
49472
49883
|
requirePremium;
|
|
49473
49884
|
resaleTonOnly;
|
|
49474
49885
|
themeAvailable;
|
|
49886
|
+
burned;
|
|
49887
|
+
crafted;
|
|
49475
49888
|
id;
|
|
49476
49889
|
giftId;
|
|
49477
49890
|
title;
|
|
@@ -49493,16 +49906,19 @@ var Raw;
|
|
|
49493
49906
|
peerColor;
|
|
49494
49907
|
hostId;
|
|
49495
49908
|
offerMinStars;
|
|
49909
|
+
craftChancePermille;
|
|
49496
49910
|
constructor(params) {
|
|
49497
49911
|
super();
|
|
49498
49912
|
this.classType = 'types';
|
|
49499
49913
|
this.className = 'StarGiftUnique';
|
|
49500
|
-
this.constructorId =
|
|
49914
|
+
this.constructorId = 0x85f0a9cd;
|
|
49501
49915
|
this.subclassOfId = 0xc31c590b;
|
|
49502
49916
|
this._slots = [
|
|
49503
49917
|
'requirePremium',
|
|
49504
49918
|
'resaleTonOnly',
|
|
49505
49919
|
'themeAvailable',
|
|
49920
|
+
'burned',
|
|
49921
|
+
'crafted',
|
|
49506
49922
|
'id',
|
|
49507
49923
|
'giftId',
|
|
49508
49924
|
'title',
|
|
@@ -49524,10 +49940,13 @@ var Raw;
|
|
|
49524
49940
|
'peerColor',
|
|
49525
49941
|
'hostId',
|
|
49526
49942
|
'offerMinStars',
|
|
49943
|
+
'craftChancePermille',
|
|
49527
49944
|
];
|
|
49528
49945
|
this.requirePremium = params.requirePremium;
|
|
49529
49946
|
this.resaleTonOnly = params.resaleTonOnly;
|
|
49530
49947
|
this.themeAvailable = params.themeAvailable;
|
|
49948
|
+
this.burned = params.burned;
|
|
49949
|
+
this.crafted = params.crafted;
|
|
49531
49950
|
this.id = params.id;
|
|
49532
49951
|
this.giftId = params.giftId;
|
|
49533
49952
|
this.title = params.title;
|
|
@@ -49549,12 +49968,15 @@ var Raw;
|
|
|
49549
49968
|
this.peerColor = params.peerColor;
|
|
49550
49969
|
this.hostId = params.hostId;
|
|
49551
49970
|
this.offerMinStars = params.offerMinStars;
|
|
49971
|
+
this.craftChancePermille = params.craftChancePermille;
|
|
49552
49972
|
}
|
|
49553
49973
|
static async read(_data, ..._args) {
|
|
49554
49974
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
49555
49975
|
let requirePremium = flags & (1 << 6) ? true : false;
|
|
49556
49976
|
let resaleTonOnly = flags & (1 << 7) ? true : false;
|
|
49557
49977
|
let themeAvailable = flags & (1 << 9) ? true : false;
|
|
49978
|
+
let burned = flags & (1 << 14) ? true : false;
|
|
49979
|
+
let crafted = flags & (1 << 15) ? true : false;
|
|
49558
49980
|
let id = await index_js_1.Primitive.Long.read(_data);
|
|
49559
49981
|
let giftId = await index_js_1.Primitive.Long.read(_data);
|
|
49560
49982
|
let title = await index_js_1.Primitive.String.read(_data);
|
|
@@ -49576,10 +49998,13 @@ var Raw;
|
|
|
49576
49998
|
let peerColor = flags & (1 << 11) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
49577
49999
|
let hostId = flags & (1 << 12) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
49578
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;
|
|
49579
50002
|
return new Raw.StarGiftUnique({
|
|
49580
50003
|
requirePremium: requirePremium,
|
|
49581
50004
|
resaleTonOnly: resaleTonOnly,
|
|
49582
50005
|
themeAvailable: themeAvailable,
|
|
50006
|
+
burned: burned,
|
|
50007
|
+
crafted: crafted,
|
|
49583
50008
|
id: id,
|
|
49584
50009
|
giftId: giftId,
|
|
49585
50010
|
title: title,
|
|
@@ -49601,6 +50026,7 @@ var Raw;
|
|
|
49601
50026
|
peerColor: peerColor,
|
|
49602
50027
|
hostId: hostId,
|
|
49603
50028
|
offerMinStars: offerMinStars,
|
|
50029
|
+
craftChancePermille: craftChancePermille,
|
|
49604
50030
|
});
|
|
49605
50031
|
}
|
|
49606
50032
|
write() {
|
|
@@ -49610,6 +50036,8 @@ var Raw;
|
|
|
49610
50036
|
flags |= this.requirePremium ? 1 << 6 : 0;
|
|
49611
50037
|
flags |= this.resaleTonOnly ? 1 << 7 : 0;
|
|
49612
50038
|
flags |= this.themeAvailable ? 1 << 9 : 0;
|
|
50039
|
+
flags |= this.burned ? 1 << 14 : 0;
|
|
50040
|
+
flags |= this.crafted ? 1 << 15 : 0;
|
|
49613
50041
|
flags |= this.ownerId !== undefined ? 1 << 0 : 0;
|
|
49614
50042
|
flags |= this.ownerName !== undefined ? 1 << 1 : 0;
|
|
49615
50043
|
flags |= this.ownerAddress !== undefined ? 1 << 2 : 0;
|
|
@@ -49623,6 +50051,7 @@ var Raw;
|
|
|
49623
50051
|
flags |= this.peerColor !== undefined ? 1 << 11 : 0;
|
|
49624
50052
|
flags |= this.hostId !== undefined ? 1 << 12 : 0;
|
|
49625
50053
|
flags |= this.offerMinStars !== undefined ? 1 << 13 : 0;
|
|
50054
|
+
flags |= this.craftChancePermille !== undefined ? 1 << 16 : 0;
|
|
49626
50055
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
49627
50056
|
if (this.id !== undefined) {
|
|
49628
50057
|
b.write(index_js_1.Primitive.Long.write(this.id));
|
|
@@ -49687,6 +50116,9 @@ var Raw;
|
|
|
49687
50116
|
if (this.offerMinStars !== undefined) {
|
|
49688
50117
|
b.write(index_js_1.Primitive.Int.write(this.offerMinStars));
|
|
49689
50118
|
}
|
|
50119
|
+
if (this.craftChancePermille !== undefined) {
|
|
50120
|
+
b.write(index_js_1.Primitive.Int.write(this.craftChancePermille));
|
|
50121
|
+
}
|
|
49690
50122
|
return deps_js_1.Buffer.from(b.buffer);
|
|
49691
50123
|
}
|
|
49692
50124
|
}
|
|
@@ -50171,41 +50603,49 @@ var Raw;
|
|
|
50171
50603
|
}
|
|
50172
50604
|
Raw.BotVerification = BotVerification;
|
|
50173
50605
|
class StarGiftAttributeModel extends index_js_1.TLObject {
|
|
50606
|
+
crafted;
|
|
50174
50607
|
name;
|
|
50175
50608
|
document;
|
|
50176
|
-
|
|
50609
|
+
rarity;
|
|
50177
50610
|
constructor(params) {
|
|
50178
50611
|
super();
|
|
50179
50612
|
this.classType = 'types';
|
|
50180
50613
|
this.className = 'StarGiftAttributeModel';
|
|
50181
|
-
this.constructorId =
|
|
50614
|
+
this.constructorId = 0x565251e2;
|
|
50182
50615
|
this.subclassOfId = 0x87b581c8;
|
|
50183
|
-
this._slots = ['name', 'document', '
|
|
50616
|
+
this._slots = ['crafted', 'name', 'document', 'rarity'];
|
|
50617
|
+
this.crafted = params.crafted;
|
|
50184
50618
|
this.name = params.name;
|
|
50185
50619
|
this.document = params.document;
|
|
50186
|
-
this.
|
|
50620
|
+
this.rarity = params.rarity;
|
|
50187
50621
|
}
|
|
50188
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;
|
|
50189
50625
|
let name = await index_js_1.Primitive.String.read(_data);
|
|
50190
50626
|
let document = await index_js_1.TLObject.read(_data);
|
|
50191
|
-
let
|
|
50627
|
+
let rarity = await index_js_1.TLObject.read(_data);
|
|
50192
50628
|
return new Raw.StarGiftAttributeModel({
|
|
50629
|
+
crafted: crafted,
|
|
50193
50630
|
name: name,
|
|
50194
50631
|
document: document,
|
|
50195
|
-
|
|
50632
|
+
rarity: rarity,
|
|
50196
50633
|
});
|
|
50197
50634
|
}
|
|
50198
50635
|
write() {
|
|
50199
50636
|
const b = new deps_js_1.BytesIO();
|
|
50200
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));
|
|
50201
50641
|
if (this.name !== undefined) {
|
|
50202
50642
|
b.write(index_js_1.Primitive.String.write(this.name));
|
|
50203
50643
|
}
|
|
50204
50644
|
if (this.document !== undefined) {
|
|
50205
50645
|
b.write(this.document.write());
|
|
50206
50646
|
}
|
|
50207
|
-
if (this.
|
|
50208
|
-
b.write(
|
|
50647
|
+
if (this.rarity !== undefined) {
|
|
50648
|
+
b.write(this.rarity.write());
|
|
50209
50649
|
}
|
|
50210
50650
|
return deps_js_1.Buffer.from(b.buffer);
|
|
50211
50651
|
}
|
|
@@ -50214,27 +50654,23 @@ var Raw;
|
|
|
50214
50654
|
class StarGiftAttributePattern extends index_js_1.TLObject {
|
|
50215
50655
|
name;
|
|
50216
50656
|
document;
|
|
50217
|
-
|
|
50657
|
+
rarity;
|
|
50218
50658
|
constructor(params) {
|
|
50219
50659
|
super();
|
|
50220
50660
|
this.classType = 'types';
|
|
50221
50661
|
this.className = 'StarGiftAttributePattern';
|
|
50222
|
-
this.constructorId =
|
|
50662
|
+
this.constructorId = 0x4e7085ea;
|
|
50223
50663
|
this.subclassOfId = 0x87b581c8;
|
|
50224
|
-
this._slots = ['name', 'document', '
|
|
50664
|
+
this._slots = ['name', 'document', 'rarity'];
|
|
50225
50665
|
this.name = params.name;
|
|
50226
50666
|
this.document = params.document;
|
|
50227
|
-
this.
|
|
50667
|
+
this.rarity = params.rarity;
|
|
50228
50668
|
}
|
|
50229
50669
|
static async read(_data, ..._args) {
|
|
50230
50670
|
let name = await index_js_1.Primitive.String.read(_data);
|
|
50231
50671
|
let document = await index_js_1.TLObject.read(_data);
|
|
50232
|
-
let
|
|
50233
|
-
return new Raw.StarGiftAttributePattern({
|
|
50234
|
-
name: name,
|
|
50235
|
-
document: document,
|
|
50236
|
-
rarityPermille: rarityPermille,
|
|
50237
|
-
});
|
|
50672
|
+
let rarity = await index_js_1.TLObject.read(_data);
|
|
50673
|
+
return new Raw.StarGiftAttributePattern({ name: name, document: document, rarity: rarity });
|
|
50238
50674
|
}
|
|
50239
50675
|
write() {
|
|
50240
50676
|
const b = new deps_js_1.BytesIO();
|
|
@@ -50245,8 +50681,8 @@ var Raw;
|
|
|
50245
50681
|
if (this.document !== undefined) {
|
|
50246
50682
|
b.write(this.document.write());
|
|
50247
50683
|
}
|
|
50248
|
-
if (this.
|
|
50249
|
-
b.write(
|
|
50684
|
+
if (this.rarity !== undefined) {
|
|
50685
|
+
b.write(this.rarity.write());
|
|
50250
50686
|
}
|
|
50251
50687
|
return deps_js_1.Buffer.from(b.buffer);
|
|
50252
50688
|
}
|
|
@@ -50259,12 +50695,12 @@ var Raw;
|
|
|
50259
50695
|
edgeColor;
|
|
50260
50696
|
patternColor;
|
|
50261
50697
|
textColor;
|
|
50262
|
-
|
|
50698
|
+
rarity;
|
|
50263
50699
|
constructor(params) {
|
|
50264
50700
|
super();
|
|
50265
50701
|
this.classType = 'types';
|
|
50266
50702
|
this.className = 'StarGiftAttributeBackdrop';
|
|
50267
|
-
this.constructorId =
|
|
50703
|
+
this.constructorId = 0x9f2504e4;
|
|
50268
50704
|
this.subclassOfId = 0x87b581c8;
|
|
50269
50705
|
this._slots = [
|
|
50270
50706
|
'name',
|
|
@@ -50273,7 +50709,7 @@ var Raw;
|
|
|
50273
50709
|
'edgeColor',
|
|
50274
50710
|
'patternColor',
|
|
50275
50711
|
'textColor',
|
|
50276
|
-
'
|
|
50712
|
+
'rarity',
|
|
50277
50713
|
];
|
|
50278
50714
|
this.name = params.name;
|
|
50279
50715
|
this.backdropId = params.backdropId;
|
|
@@ -50281,7 +50717,7 @@ var Raw;
|
|
|
50281
50717
|
this.edgeColor = params.edgeColor;
|
|
50282
50718
|
this.patternColor = params.patternColor;
|
|
50283
50719
|
this.textColor = params.textColor;
|
|
50284
|
-
this.
|
|
50720
|
+
this.rarity = params.rarity;
|
|
50285
50721
|
}
|
|
50286
50722
|
static async read(_data, ..._args) {
|
|
50287
50723
|
let name = await index_js_1.Primitive.String.read(_data);
|
|
@@ -50290,7 +50726,7 @@ var Raw;
|
|
|
50290
50726
|
let edgeColor = await index_js_1.Primitive.Int.read(_data);
|
|
50291
50727
|
let patternColor = await index_js_1.Primitive.Int.read(_data);
|
|
50292
50728
|
let textColor = await index_js_1.Primitive.Int.read(_data);
|
|
50293
|
-
let
|
|
50729
|
+
let rarity = await index_js_1.TLObject.read(_data);
|
|
50294
50730
|
return new Raw.StarGiftAttributeBackdrop({
|
|
50295
50731
|
name: name,
|
|
50296
50732
|
backdropId: backdropId,
|
|
@@ -50298,7 +50734,7 @@ var Raw;
|
|
|
50298
50734
|
edgeColor: edgeColor,
|
|
50299
50735
|
patternColor: patternColor,
|
|
50300
50736
|
textColor: textColor,
|
|
50301
|
-
|
|
50737
|
+
rarity: rarity,
|
|
50302
50738
|
});
|
|
50303
50739
|
}
|
|
50304
50740
|
write() {
|
|
@@ -50322,8 +50758,8 @@ var Raw;
|
|
|
50322
50758
|
if (this.textColor !== undefined) {
|
|
50323
50759
|
b.write(index_js_1.Primitive.Int.write(this.textColor));
|
|
50324
50760
|
}
|
|
50325
|
-
if (this.
|
|
50326
|
-
b.write(
|
|
50761
|
+
if (this.rarity !== undefined) {
|
|
50762
|
+
b.write(this.rarity.write());
|
|
50327
50763
|
}
|
|
50328
50764
|
return deps_js_1.Buffer.from(b.buffer);
|
|
50329
50765
|
}
|
|
@@ -50405,11 +50841,12 @@ var Raw;
|
|
|
50405
50841
|
prepaidUpgradeHash;
|
|
50406
50842
|
dropOriginalDetailsStars;
|
|
50407
50843
|
giftNum;
|
|
50844
|
+
canCraftAt;
|
|
50408
50845
|
constructor(params) {
|
|
50409
50846
|
super();
|
|
50410
50847
|
this.classType = 'types';
|
|
50411
50848
|
this.className = 'SavedStarGift';
|
|
50412
|
-
this.constructorId =
|
|
50849
|
+
this.constructorId = 0x41df43fc;
|
|
50413
50850
|
this.subclassOfId = 0x8e2b3c14;
|
|
50414
50851
|
this._slots = [
|
|
50415
50852
|
'nameHidden',
|
|
@@ -50434,6 +50871,7 @@ var Raw;
|
|
|
50434
50871
|
'prepaidUpgradeHash',
|
|
50435
50872
|
'dropOriginalDetailsStars',
|
|
50436
50873
|
'giftNum',
|
|
50874
|
+
'canCraftAt',
|
|
50437
50875
|
];
|
|
50438
50876
|
this.nameHidden = params.nameHidden;
|
|
50439
50877
|
this.unsaved = params.unsaved;
|
|
@@ -50457,6 +50895,7 @@ var Raw;
|
|
|
50457
50895
|
this.prepaidUpgradeHash = params.prepaidUpgradeHash;
|
|
50458
50896
|
this.dropOriginalDetailsStars = params.dropOriginalDetailsStars;
|
|
50459
50897
|
this.giftNum = params.giftNum;
|
|
50898
|
+
this.canCraftAt = params.canCraftAt;
|
|
50460
50899
|
}
|
|
50461
50900
|
static async read(_data, ..._args) {
|
|
50462
50901
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -50482,6 +50921,7 @@ var Raw;
|
|
|
50482
50921
|
let prepaidUpgradeHash = flags & (1 << 16) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
50483
50922
|
let dropOriginalDetailsStars = flags & (1 << 18) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
50484
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;
|
|
50485
50925
|
return new Raw.SavedStarGift({
|
|
50486
50926
|
nameHidden: nameHidden,
|
|
50487
50927
|
unsaved: unsaved,
|
|
@@ -50505,6 +50945,7 @@ var Raw;
|
|
|
50505
50945
|
prepaidUpgradeHash: prepaidUpgradeHash,
|
|
50506
50946
|
dropOriginalDetailsStars: dropOriginalDetailsStars,
|
|
50507
50947
|
giftNum: giftNum,
|
|
50948
|
+
canCraftAt: canCraftAt,
|
|
50508
50949
|
});
|
|
50509
50950
|
}
|
|
50510
50951
|
write() {
|
|
@@ -50531,6 +50972,7 @@ var Raw;
|
|
|
50531
50972
|
flags |= this.prepaidUpgradeHash !== undefined ? 1 << 16 : 0;
|
|
50532
50973
|
flags |= this.dropOriginalDetailsStars !== undefined ? 1 << 18 : 0;
|
|
50533
50974
|
flags |= this.giftNum !== undefined ? 1 << 19 : 0;
|
|
50975
|
+
flags |= this.canCraftAt !== undefined ? 1 << 20 : 0;
|
|
50534
50976
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
50535
50977
|
if (this.fromId !== undefined) {
|
|
50536
50978
|
b.write(this.fromId.write());
|
|
@@ -50580,6 +51022,9 @@ var Raw;
|
|
|
50580
51022
|
if (this.giftNum !== undefined) {
|
|
50581
51023
|
b.write(index_js_1.Primitive.Int.write(this.giftNum));
|
|
50582
51024
|
}
|
|
51025
|
+
if (this.canCraftAt !== undefined) {
|
|
51026
|
+
b.write(index_js_1.Primitive.Int.write(this.canCraftAt));
|
|
51027
|
+
}
|
|
50583
51028
|
return deps_js_1.Buffer.from(b.buffer);
|
|
50584
51029
|
}
|
|
50585
51030
|
}
|
|
@@ -52613,6 +53058,31 @@ var Raw;
|
|
|
52613
53058
|
}
|
|
52614
53059
|
}
|
|
52615
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;
|
|
52616
53086
|
class StarGiftBackground extends index_js_1.TLObject {
|
|
52617
53087
|
centerColor;
|
|
52618
53088
|
edgeColor;
|
|
@@ -52733,6 +53203,153 @@ var Raw;
|
|
|
52733
53203
|
}
|
|
52734
53204
|
}
|
|
52735
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;
|
|
52736
53353
|
class InvokeAfterMsg extends index_js_1.TLObject {
|
|
52737
53354
|
__response__;
|
|
52738
53355
|
msgId;
|
|
@@ -64185,6 +64802,125 @@ var Raw;
|
|
|
64185
64802
|
}
|
|
64186
64803
|
}
|
|
64187
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;
|
|
64188
64924
|
class GetMessages extends index_js_1.TLObject {
|
|
64189
64925
|
__response__;
|
|
64190
64926
|
id;
|
|
@@ -69308,6 +70044,7 @@ var Raw;
|
|
|
69308
70044
|
class AcceptUrlAuth extends index_js_1.TLObject {
|
|
69309
70045
|
__response__;
|
|
69310
70046
|
writeAllowed;
|
|
70047
|
+
sharePhoneNumber;
|
|
69311
70048
|
peer;
|
|
69312
70049
|
msgId;
|
|
69313
70050
|
buttonId;
|
|
@@ -69318,8 +70055,9 @@ var Raw;
|
|
|
69318
70055
|
this.className = 'messages.AcceptUrlAuth';
|
|
69319
70056
|
this.constructorId = 0xb12c7125;
|
|
69320
70057
|
this.subclassOfId = 0x7765cb1e;
|
|
69321
|
-
this._slots = ['writeAllowed', 'peer', 'msgId', 'buttonId', 'url'];
|
|
70058
|
+
this._slots = ['writeAllowed', 'sharePhoneNumber', 'peer', 'msgId', 'buttonId', 'url'];
|
|
69322
70059
|
this.writeAllowed = params.writeAllowed;
|
|
70060
|
+
this.sharePhoneNumber = params.sharePhoneNumber;
|
|
69323
70061
|
this.peer = params.peer;
|
|
69324
70062
|
this.msgId = params.msgId;
|
|
69325
70063
|
this.buttonId = params.buttonId;
|
|
@@ -69328,12 +70066,14 @@ var Raw;
|
|
|
69328
70066
|
static async read(_data, ..._args) {
|
|
69329
70067
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
69330
70068
|
let writeAllowed = flags & (1 << 0) ? true : false;
|
|
70069
|
+
let sharePhoneNumber = flags & (1 << 3) ? true : false;
|
|
69331
70070
|
let peer = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
69332
70071
|
let msgId = flags & (1 << 1) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
69333
70072
|
let buttonId = flags & (1 << 1) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
69334
70073
|
let url = flags & (1 << 2) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
69335
70074
|
return new Raw.messages.AcceptUrlAuth({
|
|
69336
70075
|
writeAllowed: writeAllowed,
|
|
70076
|
+
sharePhoneNumber: sharePhoneNumber,
|
|
69337
70077
|
peer: peer,
|
|
69338
70078
|
msgId: msgId,
|
|
69339
70079
|
buttonId: buttonId,
|
|
@@ -69345,6 +70085,7 @@ var Raw;
|
|
|
69345
70085
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
69346
70086
|
let flags = 0;
|
|
69347
70087
|
flags |= this.writeAllowed ? 1 << 0 : 0;
|
|
70088
|
+
flags |= this.sharePhoneNumber ? 1 << 3 : 0;
|
|
69348
70089
|
flags |= this.peer !== undefined ? 1 << 1 : 0;
|
|
69349
70090
|
flags |= this.msgId !== undefined ? 1 << 1 : 0;
|
|
69350
70091
|
flags |= this.buttonId !== undefined ? 1 << 1 : 0;
|
|
@@ -74697,6 +75438,68 @@ var Raw;
|
|
|
74697
75438
|
}
|
|
74698
75439
|
}
|
|
74699
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;
|
|
74700
75503
|
})(messages = Raw.messages || (Raw.messages = {}));
|
|
74701
75504
|
let updates;
|
|
74702
75505
|
(function (updates) {
|
|
@@ -83686,6 +84489,32 @@ var Raw;
|
|
|
83686
84489
|
}
|
|
83687
84490
|
}
|
|
83688
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;
|
|
83689
84518
|
})(channels = Raw.channels || (Raw.channels = {}));
|
|
83690
84519
|
let payments;
|
|
83691
84520
|
(function (payments) {
|
|
@@ -87427,6 +88256,7 @@ var Raw;
|
|
|
87427
88256
|
__response__;
|
|
87428
88257
|
sortByPrice;
|
|
87429
88258
|
sortByNum;
|
|
88259
|
+
forCraft;
|
|
87430
88260
|
attributesHash;
|
|
87431
88261
|
giftId;
|
|
87432
88262
|
attributes;
|
|
@@ -87441,6 +88271,7 @@ var Raw;
|
|
|
87441
88271
|
this._slots = [
|
|
87442
88272
|
'sortByPrice',
|
|
87443
88273
|
'sortByNum',
|
|
88274
|
+
'forCraft',
|
|
87444
88275
|
'attributesHash',
|
|
87445
88276
|
'giftId',
|
|
87446
88277
|
'attributes',
|
|
@@ -87449,6 +88280,7 @@ var Raw;
|
|
|
87449
88280
|
];
|
|
87450
88281
|
this.sortByPrice = params.sortByPrice;
|
|
87451
88282
|
this.sortByNum = params.sortByNum;
|
|
88283
|
+
this.forCraft = params.forCraft;
|
|
87452
88284
|
this.attributesHash = params.attributesHash;
|
|
87453
88285
|
this.giftId = params.giftId;
|
|
87454
88286
|
this.attributes = params.attributes;
|
|
@@ -87459,6 +88291,7 @@ var Raw;
|
|
|
87459
88291
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
87460
88292
|
let sortByPrice = flags & (1 << 1) ? true : false;
|
|
87461
88293
|
let sortByNum = flags & (1 << 2) ? true : false;
|
|
88294
|
+
let forCraft = flags & (1 << 4) ? true : false;
|
|
87462
88295
|
let attributesHash = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
87463
88296
|
let giftId = await index_js_1.Primitive.Long.read(_data);
|
|
87464
88297
|
let attributes = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : [];
|
|
@@ -87467,6 +88300,7 @@ var Raw;
|
|
|
87467
88300
|
return new Raw.payments.GetResaleStarGifts({
|
|
87468
88301
|
sortByPrice: sortByPrice,
|
|
87469
88302
|
sortByNum: sortByNum,
|
|
88303
|
+
forCraft: forCraft,
|
|
87470
88304
|
attributesHash: attributesHash,
|
|
87471
88305
|
giftId: giftId,
|
|
87472
88306
|
attributes: attributes,
|
|
@@ -87480,6 +88314,7 @@ var Raw;
|
|
|
87480
88314
|
let flags = 0;
|
|
87481
88315
|
flags |= this.sortByPrice ? 1 << 1 : 0;
|
|
87482
88316
|
flags |= this.sortByNum ? 1 << 2 : 0;
|
|
88317
|
+
flags |= this.forCraft ? 1 << 4 : 0;
|
|
87483
88318
|
flags |= this.attributesHash !== undefined ? 1 << 0 : 0;
|
|
87484
88319
|
flags |= this.attributes ? 1 << 3 : 0;
|
|
87485
88320
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
@@ -88010,6 +88845,70 @@ var Raw;
|
|
|
88010
88845
|
}
|
|
88011
88846
|
}
|
|
88012
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;
|
|
88013
88912
|
})(payments = Raw.payments || (Raw.payments = {}));
|
|
88014
88913
|
let phone;
|
|
88015
88914
|
(function (phone) {
|