@tgsnake/skema 1.12.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/raw/All.d.ts +33 -5
- package/dist/raw/All.js +33 -5
- package/dist/raw/Raw.d.ts +341 -6
- package/dist/raw/Raw.js +1102 -15
- 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 = 225;
|
|
9
9
|
Raw.HighestSCLayer = 144;
|
|
10
10
|
class ResPQ extends index_js_1.TLObject {
|
|
11
11
|
nonce;
|
|
@@ -4117,6 +4117,7 @@ var Raw;
|
|
|
4117
4117
|
botForumView;
|
|
4118
4118
|
botForumCanManageTopics;
|
|
4119
4119
|
botCanManageBots;
|
|
4120
|
+
botGuestchat;
|
|
4120
4121
|
id;
|
|
4121
4122
|
accessHash;
|
|
4122
4123
|
firstName;
|
|
@@ -4172,6 +4173,7 @@ var Raw;
|
|
|
4172
4173
|
'botForumView',
|
|
4173
4174
|
'botForumCanManageTopics',
|
|
4174
4175
|
'botCanManageBots',
|
|
4176
|
+
'botGuestchat',
|
|
4175
4177
|
'id',
|
|
4176
4178
|
'accessHash',
|
|
4177
4179
|
'firstName',
|
|
@@ -4221,6 +4223,7 @@ var Raw;
|
|
|
4221
4223
|
this.botForumView = params.botForumView;
|
|
4222
4224
|
this.botForumCanManageTopics = params.botForumCanManageTopics;
|
|
4223
4225
|
this.botCanManageBots = params.botCanManageBots;
|
|
4226
|
+
this.botGuestchat = params.botGuestchat;
|
|
4224
4227
|
this.id = params.id;
|
|
4225
4228
|
this.accessHash = params.accessHash;
|
|
4226
4229
|
this.firstName = params.firstName;
|
|
@@ -4273,6 +4276,7 @@ var Raw;
|
|
|
4273
4276
|
let botForumView = flags2 & (1 << 16) ? true : false;
|
|
4274
4277
|
let botForumCanManageTopics = flags2 & (1 << 17) ? true : false;
|
|
4275
4278
|
let botCanManageBots = flags2 & (1 << 18) ? true : false;
|
|
4279
|
+
let botGuestchat = flags2 & (1 << 19) ? true : false;
|
|
4276
4280
|
let id = await index_js_1.Primitive.Long.read(_data);
|
|
4277
4281
|
let accessHash = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
4278
4282
|
let firstName = flags & (1 << 1) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
@@ -4322,6 +4326,7 @@ var Raw;
|
|
|
4322
4326
|
botForumView: botForumView,
|
|
4323
4327
|
botForumCanManageTopics: botForumCanManageTopics,
|
|
4324
4328
|
botCanManageBots: botCanManageBots,
|
|
4329
|
+
botGuestchat: botGuestchat,
|
|
4325
4330
|
id: id,
|
|
4326
4331
|
accessHash: accessHash,
|
|
4327
4332
|
firstName: firstName,
|
|
@@ -4390,6 +4395,7 @@ var Raw;
|
|
|
4390
4395
|
flags2 |= this.botForumView ? 1 << 16 : 0;
|
|
4391
4396
|
flags2 |= this.botForumCanManageTopics ? 1 << 17 : 0;
|
|
4392
4397
|
flags2 |= this.botCanManageBots ? 1 << 18 : 0;
|
|
4398
|
+
flags2 |= this.botGuestchat ? 1 << 19 : 0;
|
|
4393
4399
|
flags2 |= this.usernames ? 1 << 0 : 0;
|
|
4394
4400
|
flags2 |= this.storiesMaxId !== undefined ? 1 << 5 : 0;
|
|
4395
4401
|
flags2 |= this.color !== undefined ? 1 << 8 : 0;
|
|
@@ -6416,6 +6422,7 @@ var Raw;
|
|
|
6416
6422
|
fwdFrom;
|
|
6417
6423
|
viaBotId;
|
|
6418
6424
|
viaBusinessBotId;
|
|
6425
|
+
guestchatViaFrom;
|
|
6419
6426
|
replyTo;
|
|
6420
6427
|
date;
|
|
6421
6428
|
message;
|
|
@@ -6443,7 +6450,7 @@ var Raw;
|
|
|
6443
6450
|
super();
|
|
6444
6451
|
this.classType = 'types';
|
|
6445
6452
|
this.className = 'Message';
|
|
6446
|
-
this.constructorId =
|
|
6453
|
+
this.constructorId = 0x95ef6f2b;
|
|
6447
6454
|
this.subclassOfId = 0x790009e3;
|
|
6448
6455
|
this._slots = [
|
|
6449
6456
|
'out',
|
|
@@ -6470,6 +6477,7 @@ var Raw;
|
|
|
6470
6477
|
'fwdFrom',
|
|
6471
6478
|
'viaBotId',
|
|
6472
6479
|
'viaBusinessBotId',
|
|
6480
|
+
'guestchatViaFrom',
|
|
6473
6481
|
'replyTo',
|
|
6474
6482
|
'date',
|
|
6475
6483
|
'message',
|
|
@@ -6518,6 +6526,7 @@ var Raw;
|
|
|
6518
6526
|
this.fwdFrom = params.fwdFrom;
|
|
6519
6527
|
this.viaBotId = params.viaBotId;
|
|
6520
6528
|
this.viaBusinessBotId = params.viaBusinessBotId;
|
|
6529
|
+
this.guestchatViaFrom = params.guestchatViaFrom;
|
|
6521
6530
|
this.replyTo = params.replyTo;
|
|
6522
6531
|
this.date = params.date;
|
|
6523
6532
|
this.message = params.message;
|
|
@@ -6569,6 +6578,7 @@ var Raw;
|
|
|
6569
6578
|
let fwdFrom = flags & (1 << 2) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
6570
6579
|
let viaBotId = flags & (1 << 11) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
6571
6580
|
let viaBusinessBotId = flags2 & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
6581
|
+
let guestchatViaFrom = flags2 & (1 << 19) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
6572
6582
|
let replyTo = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
6573
6583
|
let date = await index_js_1.Primitive.Int.read(_data);
|
|
6574
6584
|
let message = await index_js_1.Primitive.String.read(_data);
|
|
@@ -6617,6 +6627,7 @@ var Raw;
|
|
|
6617
6627
|
fwdFrom: fwdFrom,
|
|
6618
6628
|
viaBotId: viaBotId,
|
|
6619
6629
|
viaBusinessBotId: viaBusinessBotId,
|
|
6630
|
+
guestchatViaFrom: guestchatViaFrom,
|
|
6620
6631
|
replyTo: replyTo,
|
|
6621
6632
|
date: date,
|
|
6622
6633
|
message: message,
|
|
@@ -6684,6 +6695,7 @@ var Raw;
|
|
|
6684
6695
|
flags2 |= this.paidSuggestedPostTon ? 1 << 9 : 0;
|
|
6685
6696
|
flags2 |= this.fromRank !== undefined ? 1 << 12 : 0;
|
|
6686
6697
|
flags2 |= this.viaBusinessBotId !== undefined ? 1 << 0 : 0;
|
|
6698
|
+
flags2 |= this.guestchatViaFrom !== undefined ? 1 << 19 : 0;
|
|
6687
6699
|
flags2 |= this.effect !== undefined ? 1 << 2 : 0;
|
|
6688
6700
|
flags2 |= this.factcheck !== undefined ? 1 << 3 : 0;
|
|
6689
6701
|
flags2 |= this.reportDeliveryUntilDate !== undefined ? 1 << 5 : 0;
|
|
@@ -6719,6 +6731,9 @@ var Raw;
|
|
|
6719
6731
|
if (this.viaBusinessBotId !== undefined) {
|
|
6720
6732
|
b.write(index_js_1.Primitive.Long.write(this.viaBusinessBotId));
|
|
6721
6733
|
}
|
|
6734
|
+
if (this.guestchatViaFrom !== undefined) {
|
|
6735
|
+
b.write(this.guestchatViaFrom.write());
|
|
6736
|
+
}
|
|
6722
6737
|
if (this.replyTo !== undefined) {
|
|
6723
6738
|
b.write(this.replyTo.write());
|
|
6724
6739
|
}
|
|
@@ -18935,6 +18950,77 @@ var Raw;
|
|
|
18935
18950
|
}
|
|
18936
18951
|
}
|
|
18937
18952
|
Raw.UpdateManagedBot = UpdateManagedBot;
|
|
18953
|
+
class UpdateBotGuestChatQuery extends index_js_1.TLObject {
|
|
18954
|
+
queryId;
|
|
18955
|
+
message;
|
|
18956
|
+
referenceMessages;
|
|
18957
|
+
qts;
|
|
18958
|
+
constructor(params) {
|
|
18959
|
+
super();
|
|
18960
|
+
this.classType = 'types';
|
|
18961
|
+
this.className = 'UpdateBotGuestChatQuery';
|
|
18962
|
+
this.constructorId = 0xcdd4093d;
|
|
18963
|
+
this.subclassOfId = 0x9f89304e;
|
|
18964
|
+
this._slots = ['queryId', 'message', 'referenceMessages', 'qts'];
|
|
18965
|
+
this.queryId = params.queryId;
|
|
18966
|
+
this.message = params.message;
|
|
18967
|
+
this.referenceMessages = params.referenceMessages;
|
|
18968
|
+
this.qts = params.qts;
|
|
18969
|
+
}
|
|
18970
|
+
static async read(_data, ..._args) {
|
|
18971
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
18972
|
+
let queryId = await index_js_1.Primitive.Long.read(_data);
|
|
18973
|
+
let message = await index_js_1.TLObject.read(_data);
|
|
18974
|
+
let referenceMessages = flags & (1 << 0) ? await index_js_1.TLObject.read(_data) : [];
|
|
18975
|
+
let qts = await index_js_1.Primitive.Int.read(_data);
|
|
18976
|
+
return new Raw.UpdateBotGuestChatQuery({
|
|
18977
|
+
queryId: queryId,
|
|
18978
|
+
message: message,
|
|
18979
|
+
referenceMessages: referenceMessages,
|
|
18980
|
+
qts: qts,
|
|
18981
|
+
});
|
|
18982
|
+
}
|
|
18983
|
+
write() {
|
|
18984
|
+
const b = new deps_js_1.BytesIO();
|
|
18985
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
18986
|
+
let flags = 0;
|
|
18987
|
+
flags |= this.referenceMessages ? 1 << 0 : 0;
|
|
18988
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
18989
|
+
if (this.queryId !== undefined) {
|
|
18990
|
+
b.write(index_js_1.Primitive.Long.write(this.queryId));
|
|
18991
|
+
}
|
|
18992
|
+
if (this.message !== undefined) {
|
|
18993
|
+
b.write(this.message.write());
|
|
18994
|
+
}
|
|
18995
|
+
if (this.referenceMessages) {
|
|
18996
|
+
b.write(index_js_1.Primitive.Vector.write(this.referenceMessages));
|
|
18997
|
+
}
|
|
18998
|
+
if (this.qts !== undefined) {
|
|
18999
|
+
b.write(index_js_1.Primitive.Int.write(this.qts));
|
|
19000
|
+
}
|
|
19001
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
19002
|
+
}
|
|
19003
|
+
}
|
|
19004
|
+
Raw.UpdateBotGuestChatQuery = UpdateBotGuestChatQuery;
|
|
19005
|
+
class UpdateAiComposeTones extends index_js_1.TLObject {
|
|
19006
|
+
constructor() {
|
|
19007
|
+
super();
|
|
19008
|
+
this.classType = 'types';
|
|
19009
|
+
this.className = 'UpdateAiComposeTones';
|
|
19010
|
+
this.constructorId = 0x8c0f91fb;
|
|
19011
|
+
this.subclassOfId = 0x9f89304e;
|
|
19012
|
+
this._slots = [];
|
|
19013
|
+
}
|
|
19014
|
+
static async read(_data, ..._args) {
|
|
19015
|
+
return new Raw.UpdateAiComposeTones();
|
|
19016
|
+
}
|
|
19017
|
+
write() {
|
|
19018
|
+
const b = new deps_js_1.BytesIO();
|
|
19019
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
19020
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
19021
|
+
}
|
|
19022
|
+
}
|
|
19023
|
+
Raw.UpdateAiComposeTones = UpdateAiComposeTones;
|
|
18938
19024
|
class UpdatesTooLong extends index_js_1.TLObject {
|
|
18939
19025
|
constructor() {
|
|
18940
19026
|
super();
|
|
@@ -28680,6 +28766,25 @@ var Raw;
|
|
|
28680
28766
|
}
|
|
28681
28767
|
}
|
|
28682
28768
|
Raw.TopPeerCategoryBotsApp = TopPeerCategoryBotsApp;
|
|
28769
|
+
class TopPeerCategoryBotsGuestChat extends index_js_1.TLObject {
|
|
28770
|
+
constructor() {
|
|
28771
|
+
super();
|
|
28772
|
+
this.classType = 'types';
|
|
28773
|
+
this.className = 'TopPeerCategoryBotsGuestChat';
|
|
28774
|
+
this.constructorId = 0x6c24f3dd;
|
|
28775
|
+
this.subclassOfId = 0xddf02502;
|
|
28776
|
+
this._slots = [];
|
|
28777
|
+
}
|
|
28778
|
+
static async read(_data, ..._args) {
|
|
28779
|
+
return new Raw.TopPeerCategoryBotsGuestChat();
|
|
28780
|
+
}
|
|
28781
|
+
write() {
|
|
28782
|
+
const b = new deps_js_1.BytesIO();
|
|
28783
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
28784
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
28785
|
+
}
|
|
28786
|
+
}
|
|
28787
|
+
Raw.TopPeerCategoryBotsGuestChat = TopPeerCategoryBotsGuestChat;
|
|
28683
28788
|
class TopPeerCategoryPeers extends index_js_1.TLObject {
|
|
28684
28789
|
category;
|
|
28685
28790
|
count;
|
|
@@ -37207,16 +37312,18 @@ var Raw;
|
|
|
37207
37312
|
shuffleAnswers;
|
|
37208
37313
|
hideResultsUntilClose;
|
|
37209
37314
|
creator;
|
|
37315
|
+
subscribersOnly;
|
|
37210
37316
|
question;
|
|
37211
37317
|
answers;
|
|
37212
37318
|
closePeriod;
|
|
37213
37319
|
closeDate;
|
|
37320
|
+
countriesIso2;
|
|
37214
37321
|
hash;
|
|
37215
37322
|
constructor(params) {
|
|
37216
37323
|
super();
|
|
37217
37324
|
this.classType = 'types';
|
|
37218
37325
|
this.className = 'Poll';
|
|
37219
|
-
this.constructorId =
|
|
37326
|
+
this.constructorId = 0x966e2dbf;
|
|
37220
37327
|
this.subclassOfId = 0x248e557b;
|
|
37221
37328
|
this._slots = [
|
|
37222
37329
|
'id',
|
|
@@ -37229,10 +37336,12 @@ var Raw;
|
|
|
37229
37336
|
'shuffleAnswers',
|
|
37230
37337
|
'hideResultsUntilClose',
|
|
37231
37338
|
'creator',
|
|
37339
|
+
'subscribersOnly',
|
|
37232
37340
|
'question',
|
|
37233
37341
|
'answers',
|
|
37234
37342
|
'closePeriod',
|
|
37235
37343
|
'closeDate',
|
|
37344
|
+
'countriesIso2',
|
|
37236
37345
|
'hash',
|
|
37237
37346
|
];
|
|
37238
37347
|
this.id = params.id;
|
|
@@ -37245,10 +37354,12 @@ var Raw;
|
|
|
37245
37354
|
this.shuffleAnswers = params.shuffleAnswers;
|
|
37246
37355
|
this.hideResultsUntilClose = params.hideResultsUntilClose;
|
|
37247
37356
|
this.creator = params.creator;
|
|
37357
|
+
this.subscribersOnly = params.subscribersOnly;
|
|
37248
37358
|
this.question = params.question;
|
|
37249
37359
|
this.answers = params.answers;
|
|
37250
37360
|
this.closePeriod = params.closePeriod;
|
|
37251
37361
|
this.closeDate = params.closeDate;
|
|
37362
|
+
this.countriesIso2 = params.countriesIso2;
|
|
37252
37363
|
this.hash = params.hash;
|
|
37253
37364
|
}
|
|
37254
37365
|
static async read(_data, ..._args) {
|
|
@@ -37263,10 +37374,12 @@ var Raw;
|
|
|
37263
37374
|
let shuffleAnswers = flags & (1 << 8) ? true : false;
|
|
37264
37375
|
let hideResultsUntilClose = flags & (1 << 9) ? true : false;
|
|
37265
37376
|
let creator = flags & (1 << 10) ? true : false;
|
|
37377
|
+
let subscribersOnly = flags & (1 << 11) ? true : false;
|
|
37266
37378
|
let question = await index_js_1.TLObject.read(_data);
|
|
37267
37379
|
let answers = await index_js_1.TLObject.read(_data);
|
|
37268
37380
|
let closePeriod = flags & (1 << 4) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
37269
37381
|
let closeDate = flags & (1 << 5) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
37382
|
+
let countriesIso2 = flags & (1 << 12) ? await index_js_1.TLObject.read(_data, index_js_1.Primitive.String) : [];
|
|
37270
37383
|
let hash = await index_js_1.Primitive.Long.read(_data);
|
|
37271
37384
|
return new Raw.Poll({
|
|
37272
37385
|
id: id,
|
|
@@ -37279,10 +37392,12 @@ var Raw;
|
|
|
37279
37392
|
shuffleAnswers: shuffleAnswers,
|
|
37280
37393
|
hideResultsUntilClose: hideResultsUntilClose,
|
|
37281
37394
|
creator: creator,
|
|
37395
|
+
subscribersOnly: subscribersOnly,
|
|
37282
37396
|
question: question,
|
|
37283
37397
|
answers: answers,
|
|
37284
37398
|
closePeriod: closePeriod,
|
|
37285
37399
|
closeDate: closeDate,
|
|
37400
|
+
countriesIso2: countriesIso2,
|
|
37286
37401
|
hash: hash,
|
|
37287
37402
|
});
|
|
37288
37403
|
}
|
|
@@ -37302,8 +37417,10 @@ var Raw;
|
|
|
37302
37417
|
flags |= this.shuffleAnswers ? 1 << 8 : 0;
|
|
37303
37418
|
flags |= this.hideResultsUntilClose ? 1 << 9 : 0;
|
|
37304
37419
|
flags |= this.creator ? 1 << 10 : 0;
|
|
37420
|
+
flags |= this.subscribersOnly ? 1 << 11 : 0;
|
|
37305
37421
|
flags |= this.closePeriod !== undefined ? 1 << 4 : 0;
|
|
37306
37422
|
flags |= this.closeDate !== undefined ? 1 << 5 : 0;
|
|
37423
|
+
flags |= this.countriesIso2 ? 1 << 12 : 0;
|
|
37307
37424
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
37308
37425
|
if (this.question !== undefined) {
|
|
37309
37426
|
b.write(this.question.write());
|
|
@@ -37317,6 +37434,9 @@ var Raw;
|
|
|
37317
37434
|
if (this.closeDate !== undefined) {
|
|
37318
37435
|
b.write(index_js_1.Primitive.Int.write(this.closeDate));
|
|
37319
37436
|
}
|
|
37437
|
+
if (this.countriesIso2) {
|
|
37438
|
+
b.write(index_js_1.Primitive.Vector.write(this.countriesIso2, index_js_1.Primitive.String));
|
|
37439
|
+
}
|
|
37320
37440
|
if (this.hash !== undefined) {
|
|
37321
37441
|
b.write(index_js_1.Primitive.Long.write(this.hash));
|
|
37322
37442
|
}
|
|
@@ -37383,6 +37503,7 @@ var Raw;
|
|
|
37383
37503
|
class PollResults extends index_js_1.TLObject {
|
|
37384
37504
|
min;
|
|
37385
37505
|
hasUnreadVotes;
|
|
37506
|
+
canViewStats;
|
|
37386
37507
|
results;
|
|
37387
37508
|
totalVoters;
|
|
37388
37509
|
recentVoters;
|
|
@@ -37398,6 +37519,7 @@ var Raw;
|
|
|
37398
37519
|
this._slots = [
|
|
37399
37520
|
'min',
|
|
37400
37521
|
'hasUnreadVotes',
|
|
37522
|
+
'canViewStats',
|
|
37401
37523
|
'results',
|
|
37402
37524
|
'totalVoters',
|
|
37403
37525
|
'recentVoters',
|
|
@@ -37407,6 +37529,7 @@ var Raw;
|
|
|
37407
37529
|
];
|
|
37408
37530
|
this.min = params.min;
|
|
37409
37531
|
this.hasUnreadVotes = params.hasUnreadVotes;
|
|
37532
|
+
this.canViewStats = params.canViewStats;
|
|
37410
37533
|
this.results = params.results;
|
|
37411
37534
|
this.totalVoters = params.totalVoters;
|
|
37412
37535
|
this.recentVoters = params.recentVoters;
|
|
@@ -37418,6 +37541,7 @@ var Raw;
|
|
|
37418
37541
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
37419
37542
|
let min = flags & (1 << 0) ? true : false;
|
|
37420
37543
|
let hasUnreadVotes = flags & (1 << 6) ? true : false;
|
|
37544
|
+
let canViewStats = flags & (1 << 7) ? true : false;
|
|
37421
37545
|
let results = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : [];
|
|
37422
37546
|
let totalVoters = flags & (1 << 2) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
37423
37547
|
let recentVoters = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : [];
|
|
@@ -37427,6 +37551,7 @@ var Raw;
|
|
|
37427
37551
|
return new Raw.PollResults({
|
|
37428
37552
|
min: min,
|
|
37429
37553
|
hasUnreadVotes: hasUnreadVotes,
|
|
37554
|
+
canViewStats: canViewStats,
|
|
37430
37555
|
results: results,
|
|
37431
37556
|
totalVoters: totalVoters,
|
|
37432
37557
|
recentVoters: recentVoters,
|
|
@@ -37441,6 +37566,7 @@ var Raw;
|
|
|
37441
37566
|
let flags = 0;
|
|
37442
37567
|
flags |= this.min ? 1 << 0 : 0;
|
|
37443
37568
|
flags |= this.hasUnreadVotes ? 1 << 6 : 0;
|
|
37569
|
+
flags |= this.canViewStats ? 1 << 7 : 0;
|
|
37444
37570
|
flags |= this.results ? 1 << 1 : 0;
|
|
37445
37571
|
flags |= this.totalVoters !== undefined ? 1 << 2 : 0;
|
|
37446
37572
|
flags |= this.recentVoters ? 1 << 3 : 0;
|
|
@@ -37668,6 +37794,7 @@ var Raw;
|
|
|
37668
37794
|
sendDocs;
|
|
37669
37795
|
sendPlain;
|
|
37670
37796
|
editRank;
|
|
37797
|
+
sendReactions;
|
|
37671
37798
|
untilDate;
|
|
37672
37799
|
constructor(params) {
|
|
37673
37800
|
super();
|
|
@@ -37697,6 +37824,7 @@ var Raw;
|
|
|
37697
37824
|
'sendDocs',
|
|
37698
37825
|
'sendPlain',
|
|
37699
37826
|
'editRank',
|
|
37827
|
+
'sendReactions',
|
|
37700
37828
|
'untilDate',
|
|
37701
37829
|
];
|
|
37702
37830
|
this.viewMessages = params.viewMessages;
|
|
@@ -37720,6 +37848,7 @@ var Raw;
|
|
|
37720
37848
|
this.sendDocs = params.sendDocs;
|
|
37721
37849
|
this.sendPlain = params.sendPlain;
|
|
37722
37850
|
this.editRank = params.editRank;
|
|
37851
|
+
this.sendReactions = params.sendReactions;
|
|
37723
37852
|
this.untilDate = params.untilDate;
|
|
37724
37853
|
}
|
|
37725
37854
|
static async read(_data, ..._args) {
|
|
@@ -37745,6 +37874,7 @@ var Raw;
|
|
|
37745
37874
|
let sendDocs = flags & (1 << 24) ? true : false;
|
|
37746
37875
|
let sendPlain = flags & (1 << 25) ? true : false;
|
|
37747
37876
|
let editRank = flags & (1 << 26) ? true : false;
|
|
37877
|
+
let sendReactions = flags & (1 << 27) ? true : false;
|
|
37748
37878
|
let untilDate = await index_js_1.Primitive.Int.read(_data);
|
|
37749
37879
|
return new Raw.ChatBannedRights({
|
|
37750
37880
|
viewMessages: viewMessages,
|
|
@@ -37768,6 +37898,7 @@ var Raw;
|
|
|
37768
37898
|
sendDocs: sendDocs,
|
|
37769
37899
|
sendPlain: sendPlain,
|
|
37770
37900
|
editRank: editRank,
|
|
37901
|
+
sendReactions: sendReactions,
|
|
37771
37902
|
untilDate: untilDate,
|
|
37772
37903
|
});
|
|
37773
37904
|
}
|
|
@@ -37796,6 +37927,7 @@ var Raw;
|
|
|
37796
37927
|
flags |= this.sendDocs ? 1 << 24 : 0;
|
|
37797
37928
|
flags |= this.sendPlain ? 1 << 25 : 0;
|
|
37798
37929
|
flags |= this.editRank ? 1 << 26 : 0;
|
|
37930
|
+
flags |= this.sendReactions ? 1 << 27 : 0;
|
|
37799
37931
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
37800
37932
|
if (this.untilDate !== undefined) {
|
|
37801
37933
|
b.write(index_js_1.Primitive.Int.write(this.untilDate));
|
|
@@ -39400,6 +39532,31 @@ var Raw;
|
|
|
39400
39532
|
}
|
|
39401
39533
|
}
|
|
39402
39534
|
Raw.WebPageAttributeStarGiftAuction = WebPageAttributeStarGiftAuction;
|
|
39535
|
+
class WebPageAttributeAiComposeTone extends index_js_1.TLObject {
|
|
39536
|
+
emojiId;
|
|
39537
|
+
constructor(params) {
|
|
39538
|
+
super();
|
|
39539
|
+
this.classType = 'types';
|
|
39540
|
+
this.className = 'WebPageAttributeAiComposeTone';
|
|
39541
|
+
this.constructorId = 0x7781fe18;
|
|
39542
|
+
this.subclassOfId = 0xafcfe9c7;
|
|
39543
|
+
this._slots = ['emojiId'];
|
|
39544
|
+
this.emojiId = params.emojiId;
|
|
39545
|
+
}
|
|
39546
|
+
static async read(_data, ..._args) {
|
|
39547
|
+
let emojiId = await index_js_1.Primitive.Long.read(_data);
|
|
39548
|
+
return new Raw.WebPageAttributeAiComposeTone({ emojiId: emojiId });
|
|
39549
|
+
}
|
|
39550
|
+
write() {
|
|
39551
|
+
const b = new deps_js_1.BytesIO();
|
|
39552
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
39553
|
+
if (this.emojiId !== undefined) {
|
|
39554
|
+
b.write(index_js_1.Primitive.Long.write(this.emojiId));
|
|
39555
|
+
}
|
|
39556
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
39557
|
+
}
|
|
39558
|
+
}
|
|
39559
|
+
Raw.WebPageAttributeAiComposeTone = WebPageAttributeAiComposeTone;
|
|
39403
39560
|
class BankCardOpenUrl extends index_js_1.TLObject {
|
|
39404
39561
|
url;
|
|
39405
39562
|
name;
|
|
@@ -43653,18 +43810,27 @@ var Raw;
|
|
|
43653
43810
|
restore;
|
|
43654
43811
|
phoneNumber;
|
|
43655
43812
|
phoneCodeHash;
|
|
43813
|
+
premiumDays;
|
|
43656
43814
|
currency;
|
|
43657
43815
|
amount;
|
|
43658
43816
|
constructor(params) {
|
|
43659
43817
|
super();
|
|
43660
43818
|
this.classType = 'types';
|
|
43661
43819
|
this.className = 'InputStorePaymentAuthCode';
|
|
43662
|
-
this.constructorId =
|
|
43820
|
+
this.constructorId = 0x3fc18057;
|
|
43663
43821
|
this.subclassOfId = 0xe7a4174d;
|
|
43664
|
-
this._slots = [
|
|
43822
|
+
this._slots = [
|
|
43823
|
+
'restore',
|
|
43824
|
+
'phoneNumber',
|
|
43825
|
+
'phoneCodeHash',
|
|
43826
|
+
'premiumDays',
|
|
43827
|
+
'currency',
|
|
43828
|
+
'amount',
|
|
43829
|
+
];
|
|
43665
43830
|
this.restore = params.restore;
|
|
43666
43831
|
this.phoneNumber = params.phoneNumber;
|
|
43667
43832
|
this.phoneCodeHash = params.phoneCodeHash;
|
|
43833
|
+
this.premiumDays = params.premiumDays;
|
|
43668
43834
|
this.currency = params.currency;
|
|
43669
43835
|
this.amount = params.amount;
|
|
43670
43836
|
}
|
|
@@ -43673,12 +43839,14 @@ var Raw;
|
|
|
43673
43839
|
let restore = flags & (1 << 0) ? true : false;
|
|
43674
43840
|
let phoneNumber = await index_js_1.Primitive.String.read(_data);
|
|
43675
43841
|
let phoneCodeHash = await index_js_1.Primitive.String.read(_data);
|
|
43842
|
+
let premiumDays = await index_js_1.Primitive.Int.read(_data);
|
|
43676
43843
|
let currency = await index_js_1.Primitive.String.read(_data);
|
|
43677
43844
|
let amount = await index_js_1.Primitive.Long.read(_data);
|
|
43678
43845
|
return new Raw.InputStorePaymentAuthCode({
|
|
43679
43846
|
restore: restore,
|
|
43680
43847
|
phoneNumber: phoneNumber,
|
|
43681
43848
|
phoneCodeHash: phoneCodeHash,
|
|
43849
|
+
premiumDays: premiumDays,
|
|
43682
43850
|
currency: currency,
|
|
43683
43851
|
amount: amount,
|
|
43684
43852
|
});
|
|
@@ -43695,6 +43863,9 @@ var Raw;
|
|
|
43695
43863
|
if (this.phoneCodeHash !== undefined) {
|
|
43696
43864
|
b.write(index_js_1.Primitive.String.write(this.phoneCodeHash));
|
|
43697
43865
|
}
|
|
43866
|
+
if (this.premiumDays !== undefined) {
|
|
43867
|
+
b.write(index_js_1.Primitive.Int.write(this.premiumDays));
|
|
43868
|
+
}
|
|
43698
43869
|
if (this.currency !== undefined) {
|
|
43699
43870
|
b.write(index_js_1.Primitive.String.write(this.currency));
|
|
43700
43871
|
}
|
|
@@ -54405,6 +54576,262 @@ var Raw;
|
|
|
54405
54576
|
}
|
|
54406
54577
|
}
|
|
54407
54578
|
Raw.InputMessageReadMetric = InputMessageReadMetric;
|
|
54579
|
+
class InputAiComposeToneDefault extends index_js_1.TLObject {
|
|
54580
|
+
tone;
|
|
54581
|
+
constructor(params) {
|
|
54582
|
+
super();
|
|
54583
|
+
this.classType = 'types';
|
|
54584
|
+
this.className = 'InputAiComposeToneDefault';
|
|
54585
|
+
this.constructorId = 0x1fe9a9bf;
|
|
54586
|
+
this.subclassOfId = 0xd52856b7;
|
|
54587
|
+
this._slots = ['tone'];
|
|
54588
|
+
this.tone = params.tone;
|
|
54589
|
+
}
|
|
54590
|
+
static async read(_data, ..._args) {
|
|
54591
|
+
let tone = await index_js_1.Primitive.String.read(_data);
|
|
54592
|
+
return new Raw.InputAiComposeToneDefault({ tone: tone });
|
|
54593
|
+
}
|
|
54594
|
+
write() {
|
|
54595
|
+
const b = new deps_js_1.BytesIO();
|
|
54596
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
54597
|
+
if (this.tone !== undefined) {
|
|
54598
|
+
b.write(index_js_1.Primitive.String.write(this.tone));
|
|
54599
|
+
}
|
|
54600
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
54601
|
+
}
|
|
54602
|
+
}
|
|
54603
|
+
Raw.InputAiComposeToneDefault = InputAiComposeToneDefault;
|
|
54604
|
+
class InputAiComposeToneID extends index_js_1.TLObject {
|
|
54605
|
+
id;
|
|
54606
|
+
accessHash;
|
|
54607
|
+
constructor(params) {
|
|
54608
|
+
super();
|
|
54609
|
+
this.classType = 'types';
|
|
54610
|
+
this.className = 'InputAiComposeToneID';
|
|
54611
|
+
this.constructorId = 0x773c080;
|
|
54612
|
+
this.subclassOfId = 0xd52856b7;
|
|
54613
|
+
this._slots = ['id', 'accessHash'];
|
|
54614
|
+
this.id = params.id;
|
|
54615
|
+
this.accessHash = params.accessHash;
|
|
54616
|
+
}
|
|
54617
|
+
static async read(_data, ..._args) {
|
|
54618
|
+
let id = await index_js_1.Primitive.Long.read(_data);
|
|
54619
|
+
let accessHash = await index_js_1.Primitive.Long.read(_data);
|
|
54620
|
+
return new Raw.InputAiComposeToneID({ id: id, accessHash: accessHash });
|
|
54621
|
+
}
|
|
54622
|
+
write() {
|
|
54623
|
+
const b = new deps_js_1.BytesIO();
|
|
54624
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
54625
|
+
if (this.id !== undefined) {
|
|
54626
|
+
b.write(index_js_1.Primitive.Long.write(this.id));
|
|
54627
|
+
}
|
|
54628
|
+
if (this.accessHash !== undefined) {
|
|
54629
|
+
b.write(index_js_1.Primitive.Long.write(this.accessHash));
|
|
54630
|
+
}
|
|
54631
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
54632
|
+
}
|
|
54633
|
+
}
|
|
54634
|
+
Raw.InputAiComposeToneID = InputAiComposeToneID;
|
|
54635
|
+
class InputAiComposeToneSlug extends index_js_1.TLObject {
|
|
54636
|
+
slug;
|
|
54637
|
+
constructor(params) {
|
|
54638
|
+
super();
|
|
54639
|
+
this.classType = 'types';
|
|
54640
|
+
this.className = 'InputAiComposeToneSlug';
|
|
54641
|
+
this.constructorId = 0x1fa01357;
|
|
54642
|
+
this.subclassOfId = 0xd52856b7;
|
|
54643
|
+
this._slots = ['slug'];
|
|
54644
|
+
this.slug = params.slug;
|
|
54645
|
+
}
|
|
54646
|
+
static async read(_data, ..._args) {
|
|
54647
|
+
let slug = await index_js_1.Primitive.String.read(_data);
|
|
54648
|
+
return new Raw.InputAiComposeToneSlug({ slug: slug });
|
|
54649
|
+
}
|
|
54650
|
+
write() {
|
|
54651
|
+
const b = new deps_js_1.BytesIO();
|
|
54652
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
54653
|
+
if (this.slug !== undefined) {
|
|
54654
|
+
b.write(index_js_1.Primitive.String.write(this.slug));
|
|
54655
|
+
}
|
|
54656
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
54657
|
+
}
|
|
54658
|
+
}
|
|
54659
|
+
Raw.InputAiComposeToneSlug = InputAiComposeToneSlug;
|
|
54660
|
+
class AiComposeTone extends index_js_1.TLObject {
|
|
54661
|
+
creator;
|
|
54662
|
+
id;
|
|
54663
|
+
accessHash;
|
|
54664
|
+
slug;
|
|
54665
|
+
title;
|
|
54666
|
+
emojiId;
|
|
54667
|
+
prompt;
|
|
54668
|
+
installsCount;
|
|
54669
|
+
authorId;
|
|
54670
|
+
exampleEnglish;
|
|
54671
|
+
constructor(params) {
|
|
54672
|
+
super();
|
|
54673
|
+
this.classType = 'types';
|
|
54674
|
+
this.className = 'AiComposeTone';
|
|
54675
|
+
this.constructorId = 0xcff63ea9;
|
|
54676
|
+
this.subclassOfId = 0xd476f30d;
|
|
54677
|
+
this._slots = [
|
|
54678
|
+
'creator',
|
|
54679
|
+
'id',
|
|
54680
|
+
'accessHash',
|
|
54681
|
+
'slug',
|
|
54682
|
+
'title',
|
|
54683
|
+
'emojiId',
|
|
54684
|
+
'prompt',
|
|
54685
|
+
'installsCount',
|
|
54686
|
+
'authorId',
|
|
54687
|
+
'exampleEnglish',
|
|
54688
|
+
];
|
|
54689
|
+
this.creator = params.creator;
|
|
54690
|
+
this.id = params.id;
|
|
54691
|
+
this.accessHash = params.accessHash;
|
|
54692
|
+
this.slug = params.slug;
|
|
54693
|
+
this.title = params.title;
|
|
54694
|
+
this.emojiId = params.emojiId;
|
|
54695
|
+
this.prompt = params.prompt;
|
|
54696
|
+
this.installsCount = params.installsCount;
|
|
54697
|
+
this.authorId = params.authorId;
|
|
54698
|
+
this.exampleEnglish = params.exampleEnglish;
|
|
54699
|
+
}
|
|
54700
|
+
static async read(_data, ..._args) {
|
|
54701
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
54702
|
+
let creator = flags & (1 << 0) ? true : false;
|
|
54703
|
+
let id = await index_js_1.Primitive.Long.read(_data);
|
|
54704
|
+
let accessHash = await index_js_1.Primitive.Long.read(_data);
|
|
54705
|
+
let slug = await index_js_1.Primitive.String.read(_data);
|
|
54706
|
+
let title = await index_js_1.Primitive.String.read(_data);
|
|
54707
|
+
let emojiId = flags & (1 << 1) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
54708
|
+
let prompt = flags & (1 << 4) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
54709
|
+
let installsCount = flags & (1 << 2) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
54710
|
+
let authorId = flags & (1 << 3) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
54711
|
+
let exampleEnglish = flags & (1 << 5) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
54712
|
+
return new Raw.AiComposeTone({
|
|
54713
|
+
creator: creator,
|
|
54714
|
+
id: id,
|
|
54715
|
+
accessHash: accessHash,
|
|
54716
|
+
slug: slug,
|
|
54717
|
+
title: title,
|
|
54718
|
+
emojiId: emojiId,
|
|
54719
|
+
prompt: prompt,
|
|
54720
|
+
installsCount: installsCount,
|
|
54721
|
+
authorId: authorId,
|
|
54722
|
+
exampleEnglish: exampleEnglish,
|
|
54723
|
+
});
|
|
54724
|
+
}
|
|
54725
|
+
write() {
|
|
54726
|
+
const b = new deps_js_1.BytesIO();
|
|
54727
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
54728
|
+
let flags = 0;
|
|
54729
|
+
flags |= this.creator ? 1 << 0 : 0;
|
|
54730
|
+
flags |= this.emojiId !== undefined ? 1 << 1 : 0;
|
|
54731
|
+
flags |= this.prompt !== undefined ? 1 << 4 : 0;
|
|
54732
|
+
flags |= this.installsCount !== undefined ? 1 << 2 : 0;
|
|
54733
|
+
flags |= this.authorId !== undefined ? 1 << 3 : 0;
|
|
54734
|
+
flags |= this.exampleEnglish !== undefined ? 1 << 5 : 0;
|
|
54735
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
54736
|
+
if (this.id !== undefined) {
|
|
54737
|
+
b.write(index_js_1.Primitive.Long.write(this.id));
|
|
54738
|
+
}
|
|
54739
|
+
if (this.accessHash !== undefined) {
|
|
54740
|
+
b.write(index_js_1.Primitive.Long.write(this.accessHash));
|
|
54741
|
+
}
|
|
54742
|
+
if (this.slug !== undefined) {
|
|
54743
|
+
b.write(index_js_1.Primitive.String.write(this.slug));
|
|
54744
|
+
}
|
|
54745
|
+
if (this.title !== undefined) {
|
|
54746
|
+
b.write(index_js_1.Primitive.String.write(this.title));
|
|
54747
|
+
}
|
|
54748
|
+
if (this.emojiId !== undefined) {
|
|
54749
|
+
b.write(index_js_1.Primitive.Long.write(this.emojiId));
|
|
54750
|
+
}
|
|
54751
|
+
if (this.prompt !== undefined) {
|
|
54752
|
+
b.write(index_js_1.Primitive.String.write(this.prompt));
|
|
54753
|
+
}
|
|
54754
|
+
if (this.installsCount !== undefined) {
|
|
54755
|
+
b.write(index_js_1.Primitive.Int.write(this.installsCount));
|
|
54756
|
+
}
|
|
54757
|
+
if (this.authorId !== undefined) {
|
|
54758
|
+
b.write(index_js_1.Primitive.Long.write(this.authorId));
|
|
54759
|
+
}
|
|
54760
|
+
if (this.exampleEnglish !== undefined) {
|
|
54761
|
+
b.write(this.exampleEnglish.write());
|
|
54762
|
+
}
|
|
54763
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
54764
|
+
}
|
|
54765
|
+
}
|
|
54766
|
+
Raw.AiComposeTone = AiComposeTone;
|
|
54767
|
+
class AiComposeToneDefault extends index_js_1.TLObject {
|
|
54768
|
+
tone;
|
|
54769
|
+
emojiId;
|
|
54770
|
+
title;
|
|
54771
|
+
constructor(params) {
|
|
54772
|
+
super();
|
|
54773
|
+
this.classType = 'types';
|
|
54774
|
+
this.className = 'AiComposeToneDefault';
|
|
54775
|
+
this.constructorId = 0x9bad6414;
|
|
54776
|
+
this.subclassOfId = 0xd476f30d;
|
|
54777
|
+
this._slots = ['tone', 'emojiId', 'title'];
|
|
54778
|
+
this.tone = params.tone;
|
|
54779
|
+
this.emojiId = params.emojiId;
|
|
54780
|
+
this.title = params.title;
|
|
54781
|
+
}
|
|
54782
|
+
static async read(_data, ..._args) {
|
|
54783
|
+
let tone = await index_js_1.Primitive.String.read(_data);
|
|
54784
|
+
let emojiId = await index_js_1.Primitive.Long.read(_data);
|
|
54785
|
+
let title = await index_js_1.Primitive.String.read(_data);
|
|
54786
|
+
return new Raw.AiComposeToneDefault({ tone: tone, emojiId: emojiId, title: title });
|
|
54787
|
+
}
|
|
54788
|
+
write() {
|
|
54789
|
+
const b = new deps_js_1.BytesIO();
|
|
54790
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
54791
|
+
if (this.tone !== undefined) {
|
|
54792
|
+
b.write(index_js_1.Primitive.String.write(this.tone));
|
|
54793
|
+
}
|
|
54794
|
+
if (this.emojiId !== undefined) {
|
|
54795
|
+
b.write(index_js_1.Primitive.Long.write(this.emojiId));
|
|
54796
|
+
}
|
|
54797
|
+
if (this.title !== undefined) {
|
|
54798
|
+
b.write(index_js_1.Primitive.String.write(this.title));
|
|
54799
|
+
}
|
|
54800
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
54801
|
+
}
|
|
54802
|
+
}
|
|
54803
|
+
Raw.AiComposeToneDefault = AiComposeToneDefault;
|
|
54804
|
+
class AiComposeToneExample extends index_js_1.TLObject {
|
|
54805
|
+
from;
|
|
54806
|
+
to;
|
|
54807
|
+
constructor(params) {
|
|
54808
|
+
super();
|
|
54809
|
+
this.classType = 'types';
|
|
54810
|
+
this.className = 'AiComposeToneExample';
|
|
54811
|
+
this.constructorId = 0xf1d628ec;
|
|
54812
|
+
this.subclassOfId = 0x8c2493d5;
|
|
54813
|
+
this._slots = ['from', 'to'];
|
|
54814
|
+
this.from = params.from;
|
|
54815
|
+
this.to = params.to;
|
|
54816
|
+
}
|
|
54817
|
+
static async read(_data, ..._args) {
|
|
54818
|
+
let from = await index_js_1.TLObject.read(_data);
|
|
54819
|
+
let to = await index_js_1.TLObject.read(_data);
|
|
54820
|
+
return new Raw.AiComposeToneExample({ from: from, to: to });
|
|
54821
|
+
}
|
|
54822
|
+
write() {
|
|
54823
|
+
const b = new deps_js_1.BytesIO();
|
|
54824
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
54825
|
+
if (this.from !== undefined) {
|
|
54826
|
+
b.write(this.from.write());
|
|
54827
|
+
}
|
|
54828
|
+
if (this.to !== undefined) {
|
|
54829
|
+
b.write(this.to.write());
|
|
54830
|
+
}
|
|
54831
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
54832
|
+
}
|
|
54833
|
+
}
|
|
54834
|
+
Raw.AiComposeToneExample = AiComposeToneExample;
|
|
54408
54835
|
class InvokeAfterMsg extends index_js_1.TLObject {
|
|
54409
54836
|
__response__;
|
|
54410
54837
|
msgId;
|
|
@@ -59310,19 +59737,21 @@ var Raw;
|
|
|
59310
59737
|
phoneCodeHash;
|
|
59311
59738
|
supportEmailAddress;
|
|
59312
59739
|
supportEmailSubject;
|
|
59740
|
+
premiumDays;
|
|
59313
59741
|
currency;
|
|
59314
59742
|
amount;
|
|
59315
59743
|
constructor(params) {
|
|
59316
59744
|
super();
|
|
59317
59745
|
this.classType = 'types';
|
|
59318
59746
|
this.className = 'auth.SentCodePaymentRequired';
|
|
59319
|
-
this.constructorId =
|
|
59747
|
+
this.constructorId = 0xf8827ebf;
|
|
59320
59748
|
this.subclassOfId = 0x6ce87081;
|
|
59321
59749
|
this._slots = [
|
|
59322
59750
|
'storeProduct',
|
|
59323
59751
|
'phoneCodeHash',
|
|
59324
59752
|
'supportEmailAddress',
|
|
59325
59753
|
'supportEmailSubject',
|
|
59754
|
+
'premiumDays',
|
|
59326
59755
|
'currency',
|
|
59327
59756
|
'amount',
|
|
59328
59757
|
];
|
|
@@ -59330,6 +59759,7 @@ var Raw;
|
|
|
59330
59759
|
this.phoneCodeHash = params.phoneCodeHash;
|
|
59331
59760
|
this.supportEmailAddress = params.supportEmailAddress;
|
|
59332
59761
|
this.supportEmailSubject = params.supportEmailSubject;
|
|
59762
|
+
this.premiumDays = params.premiumDays;
|
|
59333
59763
|
this.currency = params.currency;
|
|
59334
59764
|
this.amount = params.amount;
|
|
59335
59765
|
}
|
|
@@ -59338,6 +59768,7 @@ var Raw;
|
|
|
59338
59768
|
let phoneCodeHash = await index_js_1.Primitive.String.read(_data);
|
|
59339
59769
|
let supportEmailAddress = await index_js_1.Primitive.String.read(_data);
|
|
59340
59770
|
let supportEmailSubject = await index_js_1.Primitive.String.read(_data);
|
|
59771
|
+
let premiumDays = await index_js_1.Primitive.Int.read(_data);
|
|
59341
59772
|
let currency = await index_js_1.Primitive.String.read(_data);
|
|
59342
59773
|
let amount = await index_js_1.Primitive.Long.read(_data);
|
|
59343
59774
|
return new Raw.auth.SentCodePaymentRequired({
|
|
@@ -59345,6 +59776,7 @@ var Raw;
|
|
|
59345
59776
|
phoneCodeHash: phoneCodeHash,
|
|
59346
59777
|
supportEmailAddress: supportEmailAddress,
|
|
59347
59778
|
supportEmailSubject: supportEmailSubject,
|
|
59779
|
+
premiumDays: premiumDays,
|
|
59348
59780
|
currency: currency,
|
|
59349
59781
|
amount: amount,
|
|
59350
59782
|
});
|
|
@@ -59364,6 +59796,9 @@ var Raw;
|
|
|
59364
59796
|
if (this.supportEmailSubject !== undefined) {
|
|
59365
59797
|
b.write(index_js_1.Primitive.String.write(this.supportEmailSubject));
|
|
59366
59798
|
}
|
|
59799
|
+
if (this.premiumDays !== undefined) {
|
|
59800
|
+
b.write(index_js_1.Primitive.Int.write(this.premiumDays));
|
|
59801
|
+
}
|
|
59367
59802
|
if (this.currency !== undefined) {
|
|
59368
59803
|
b.write(index_js_1.Primitive.String.write(this.currency));
|
|
59369
59804
|
}
|
|
@@ -61917,6 +62352,7 @@ var Raw;
|
|
|
61917
62352
|
groups;
|
|
61918
62353
|
channels;
|
|
61919
62354
|
botsApp;
|
|
62355
|
+
botsGuestchat;
|
|
61920
62356
|
offset;
|
|
61921
62357
|
limit;
|
|
61922
62358
|
hash;
|
|
@@ -61936,6 +62372,7 @@ var Raw;
|
|
|
61936
62372
|
'groups',
|
|
61937
62373
|
'channels',
|
|
61938
62374
|
'botsApp',
|
|
62375
|
+
'botsGuestchat',
|
|
61939
62376
|
'offset',
|
|
61940
62377
|
'limit',
|
|
61941
62378
|
'hash',
|
|
@@ -61949,6 +62386,7 @@ var Raw;
|
|
|
61949
62386
|
this.groups = params.groups;
|
|
61950
62387
|
this.channels = params.channels;
|
|
61951
62388
|
this.botsApp = params.botsApp;
|
|
62389
|
+
this.botsGuestchat = params.botsGuestchat;
|
|
61952
62390
|
this.offset = params.offset;
|
|
61953
62391
|
this.limit = params.limit;
|
|
61954
62392
|
this.hash = params.hash;
|
|
@@ -61964,6 +62402,7 @@ var Raw;
|
|
|
61964
62402
|
let groups = flags & (1 << 10) ? true : false;
|
|
61965
62403
|
let channels = flags & (1 << 15) ? true : false;
|
|
61966
62404
|
let botsApp = flags & (1 << 16) ? true : false;
|
|
62405
|
+
let botsGuestchat = flags & (1 << 17) ? true : false;
|
|
61967
62406
|
let offset = await index_js_1.Primitive.Int.read(_data);
|
|
61968
62407
|
let limit = await index_js_1.Primitive.Int.read(_data);
|
|
61969
62408
|
let hash = await index_js_1.Primitive.Long.read(_data);
|
|
@@ -61977,6 +62416,7 @@ var Raw;
|
|
|
61977
62416
|
groups: groups,
|
|
61978
62417
|
channels: channels,
|
|
61979
62418
|
botsApp: botsApp,
|
|
62419
|
+
botsGuestchat: botsGuestchat,
|
|
61980
62420
|
offset: offset,
|
|
61981
62421
|
limit: limit,
|
|
61982
62422
|
hash: hash,
|
|
@@ -61995,6 +62435,7 @@ var Raw;
|
|
|
61995
62435
|
flags |= this.groups ? 1 << 10 : 0;
|
|
61996
62436
|
flags |= this.channels ? 1 << 15 : 0;
|
|
61997
62437
|
flags |= this.botsApp ? 1 << 16 : 0;
|
|
62438
|
+
flags |= this.botsGuestchat ? 1 << 17 : 0;
|
|
61998
62439
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
61999
62440
|
if (this.offset !== undefined) {
|
|
62000
62441
|
b.write(index_js_1.Primitive.Int.write(this.offset));
|
|
@@ -76839,19 +77280,19 @@ var Raw;
|
|
|
76839
77280
|
emojify;
|
|
76840
77281
|
text;
|
|
76841
77282
|
translateToLang;
|
|
76842
|
-
|
|
77283
|
+
tone;
|
|
76843
77284
|
constructor(params) {
|
|
76844
77285
|
super();
|
|
76845
77286
|
this.classType = 'functions';
|
|
76846
77287
|
this.className = 'messages.ComposeMessageWithAI';
|
|
76847
|
-
this.constructorId =
|
|
77288
|
+
this.constructorId = 0xdaecc589;
|
|
76848
77289
|
this.subclassOfId = 0x140803df;
|
|
76849
|
-
this._slots = ['proofread', 'emojify', 'text', 'translateToLang', '
|
|
77290
|
+
this._slots = ['proofread', 'emojify', 'text', 'translateToLang', 'tone'];
|
|
76850
77291
|
this.proofread = params.proofread;
|
|
76851
77292
|
this.emojify = params.emojify;
|
|
76852
77293
|
this.text = params.text;
|
|
76853
77294
|
this.translateToLang = params.translateToLang;
|
|
76854
|
-
this.
|
|
77295
|
+
this.tone = params.tone;
|
|
76855
77296
|
}
|
|
76856
77297
|
static async read(_data, ..._args) {
|
|
76857
77298
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -76859,13 +77300,13 @@ var Raw;
|
|
|
76859
77300
|
let emojify = flags & (1 << 3) ? true : false;
|
|
76860
77301
|
let text = await index_js_1.TLObject.read(_data);
|
|
76861
77302
|
let translateToLang = flags & (1 << 1) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
76862
|
-
let
|
|
77303
|
+
let tone = flags & (1 << 2) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
76863
77304
|
return new Raw.messages.ComposeMessageWithAI({
|
|
76864
77305
|
proofread: proofread,
|
|
76865
77306
|
emojify: emojify,
|
|
76866
77307
|
text: text,
|
|
76867
77308
|
translateToLang: translateToLang,
|
|
76868
|
-
|
|
77309
|
+
tone: tone,
|
|
76869
77310
|
});
|
|
76870
77311
|
}
|
|
76871
77312
|
write() {
|
|
@@ -76875,7 +77316,7 @@ var Raw;
|
|
|
76875
77316
|
flags |= this.proofread ? 1 << 0 : 0;
|
|
76876
77317
|
flags |= this.emojify ? 1 << 3 : 0;
|
|
76877
77318
|
flags |= this.translateToLang !== undefined ? 1 << 1 : 0;
|
|
76878
|
-
flags |= this.
|
|
77319
|
+
flags |= this.tone !== undefined ? 1 << 2 : 0;
|
|
76879
77320
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
76880
77321
|
if (this.text !== undefined) {
|
|
76881
77322
|
b.write(this.text.write());
|
|
@@ -76883,8 +77324,8 @@ var Raw;
|
|
|
76883
77324
|
if (this.translateToLang !== undefined) {
|
|
76884
77325
|
b.write(index_js_1.Primitive.String.write(this.translateToLang));
|
|
76885
77326
|
}
|
|
76886
|
-
if (this.
|
|
76887
|
-
b.write(
|
|
77327
|
+
if (this.tone !== undefined) {
|
|
77328
|
+
b.write(this.tone.write());
|
|
76888
77329
|
}
|
|
76889
77330
|
return deps_js_1.Buffer.from(b.buffer);
|
|
76890
77331
|
}
|
|
@@ -77140,6 +77581,171 @@ var Raw;
|
|
|
77140
77581
|
}
|
|
77141
77582
|
}
|
|
77142
77583
|
messages_1.ReadPollVotes = ReadPollVotes;
|
|
77584
|
+
class SetBotGuestChatResult extends index_js_1.TLObject {
|
|
77585
|
+
__response__;
|
|
77586
|
+
queryId;
|
|
77587
|
+
result;
|
|
77588
|
+
constructor(params) {
|
|
77589
|
+
super();
|
|
77590
|
+
this.classType = 'functions';
|
|
77591
|
+
this.className = 'messages.SetBotGuestChatResult';
|
|
77592
|
+
this.constructorId = 0x52b08db;
|
|
77593
|
+
this.subclassOfId = 0xf5b399ac;
|
|
77594
|
+
this._slots = ['queryId', 'result'];
|
|
77595
|
+
this.queryId = params.queryId;
|
|
77596
|
+
this.result = params.result;
|
|
77597
|
+
}
|
|
77598
|
+
static async read(_data, ..._args) {
|
|
77599
|
+
let queryId = await index_js_1.Primitive.Long.read(_data);
|
|
77600
|
+
let result = await index_js_1.TLObject.read(_data);
|
|
77601
|
+
return new Raw.messages.SetBotGuestChatResult({ queryId: queryId, result: result });
|
|
77602
|
+
}
|
|
77603
|
+
write() {
|
|
77604
|
+
const b = new deps_js_1.BytesIO();
|
|
77605
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
77606
|
+
if (this.queryId !== undefined) {
|
|
77607
|
+
b.write(index_js_1.Primitive.Long.write(this.queryId));
|
|
77608
|
+
}
|
|
77609
|
+
if (this.result !== undefined) {
|
|
77610
|
+
b.write(this.result.write());
|
|
77611
|
+
}
|
|
77612
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
77613
|
+
}
|
|
77614
|
+
}
|
|
77615
|
+
messages_1.SetBotGuestChatResult = SetBotGuestChatResult;
|
|
77616
|
+
class DeleteParticipantReactions extends index_js_1.TLObject {
|
|
77617
|
+
__response__;
|
|
77618
|
+
peer;
|
|
77619
|
+
participant;
|
|
77620
|
+
constructor(params) {
|
|
77621
|
+
super();
|
|
77622
|
+
this.classType = 'functions';
|
|
77623
|
+
this.className = 'messages.DeleteParticipantReactions';
|
|
77624
|
+
this.constructorId = 0xa0b80cf8;
|
|
77625
|
+
this.subclassOfId = 0xf5b399ac;
|
|
77626
|
+
this._slots = ['peer', 'participant'];
|
|
77627
|
+
this.peer = params.peer;
|
|
77628
|
+
this.participant = params.participant;
|
|
77629
|
+
}
|
|
77630
|
+
static async read(_data, ..._args) {
|
|
77631
|
+
let peer = await index_js_1.TLObject.read(_data);
|
|
77632
|
+
let participant = await index_js_1.TLObject.read(_data);
|
|
77633
|
+
return new Raw.messages.DeleteParticipantReactions({
|
|
77634
|
+
peer: peer,
|
|
77635
|
+
participant: participant,
|
|
77636
|
+
});
|
|
77637
|
+
}
|
|
77638
|
+
write() {
|
|
77639
|
+
const b = new deps_js_1.BytesIO();
|
|
77640
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
77641
|
+
if (this.peer !== undefined) {
|
|
77642
|
+
b.write(this.peer.write());
|
|
77643
|
+
}
|
|
77644
|
+
if (this.participant !== undefined) {
|
|
77645
|
+
b.write(this.participant.write());
|
|
77646
|
+
}
|
|
77647
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
77648
|
+
}
|
|
77649
|
+
}
|
|
77650
|
+
messages_1.DeleteParticipantReactions = DeleteParticipantReactions;
|
|
77651
|
+
class DeleteParticipantReaction extends index_js_1.TLObject {
|
|
77652
|
+
__response__;
|
|
77653
|
+
peer;
|
|
77654
|
+
msgId;
|
|
77655
|
+
participant;
|
|
77656
|
+
constructor(params) {
|
|
77657
|
+
super();
|
|
77658
|
+
this.classType = 'functions';
|
|
77659
|
+
this.className = 'messages.DeleteParticipantReaction';
|
|
77660
|
+
this.constructorId = 0xe3b7f82c;
|
|
77661
|
+
this.subclassOfId = 0x8af52aac;
|
|
77662
|
+
this._slots = ['peer', 'msgId', 'participant'];
|
|
77663
|
+
this.peer = params.peer;
|
|
77664
|
+
this.msgId = params.msgId;
|
|
77665
|
+
this.participant = params.participant;
|
|
77666
|
+
}
|
|
77667
|
+
static async read(_data, ..._args) {
|
|
77668
|
+
let peer = await index_js_1.TLObject.read(_data);
|
|
77669
|
+
let msgId = await index_js_1.Primitive.Int.read(_data);
|
|
77670
|
+
let participant = await index_js_1.TLObject.read(_data);
|
|
77671
|
+
return new Raw.messages.DeleteParticipantReaction({
|
|
77672
|
+
peer: peer,
|
|
77673
|
+
msgId: msgId,
|
|
77674
|
+
participant: participant,
|
|
77675
|
+
});
|
|
77676
|
+
}
|
|
77677
|
+
write() {
|
|
77678
|
+
const b = new deps_js_1.BytesIO();
|
|
77679
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
77680
|
+
if (this.peer !== undefined) {
|
|
77681
|
+
b.write(this.peer.write());
|
|
77682
|
+
}
|
|
77683
|
+
if (this.msgId !== undefined) {
|
|
77684
|
+
b.write(index_js_1.Primitive.Int.write(this.msgId));
|
|
77685
|
+
}
|
|
77686
|
+
if (this.participant !== undefined) {
|
|
77687
|
+
b.write(this.participant.write());
|
|
77688
|
+
}
|
|
77689
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
77690
|
+
}
|
|
77691
|
+
}
|
|
77692
|
+
messages_1.DeleteParticipantReaction = DeleteParticipantReaction;
|
|
77693
|
+
class GetPersonalChannelHistory extends index_js_1.TLObject {
|
|
77694
|
+
__response__;
|
|
77695
|
+
userId;
|
|
77696
|
+
limit;
|
|
77697
|
+
maxId;
|
|
77698
|
+
minId;
|
|
77699
|
+
hash;
|
|
77700
|
+
constructor(params) {
|
|
77701
|
+
super();
|
|
77702
|
+
this.classType = 'functions';
|
|
77703
|
+
this.className = 'messages.GetPersonalChannelHistory';
|
|
77704
|
+
this.constructorId = 0x55fb0996;
|
|
77705
|
+
this.subclassOfId = 0xd4b40b5e;
|
|
77706
|
+
this._slots = ['userId', 'limit', 'maxId', 'minId', 'hash'];
|
|
77707
|
+
this.userId = params.userId;
|
|
77708
|
+
this.limit = params.limit;
|
|
77709
|
+
this.maxId = params.maxId;
|
|
77710
|
+
this.minId = params.minId;
|
|
77711
|
+
this.hash = params.hash;
|
|
77712
|
+
}
|
|
77713
|
+
static async read(_data, ..._args) {
|
|
77714
|
+
let userId = await index_js_1.TLObject.read(_data);
|
|
77715
|
+
let limit = await index_js_1.Primitive.Int.read(_data);
|
|
77716
|
+
let maxId = await index_js_1.Primitive.Int.read(_data);
|
|
77717
|
+
let minId = await index_js_1.Primitive.Int.read(_data);
|
|
77718
|
+
let hash = await index_js_1.Primitive.Long.read(_data);
|
|
77719
|
+
return new Raw.messages.GetPersonalChannelHistory({
|
|
77720
|
+
userId: userId,
|
|
77721
|
+
limit: limit,
|
|
77722
|
+
maxId: maxId,
|
|
77723
|
+
minId: minId,
|
|
77724
|
+
hash: hash,
|
|
77725
|
+
});
|
|
77726
|
+
}
|
|
77727
|
+
write() {
|
|
77728
|
+
const b = new deps_js_1.BytesIO();
|
|
77729
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
77730
|
+
if (this.userId !== undefined) {
|
|
77731
|
+
b.write(this.userId.write());
|
|
77732
|
+
}
|
|
77733
|
+
if (this.limit !== undefined) {
|
|
77734
|
+
b.write(index_js_1.Primitive.Int.write(this.limit));
|
|
77735
|
+
}
|
|
77736
|
+
if (this.maxId !== undefined) {
|
|
77737
|
+
b.write(index_js_1.Primitive.Int.write(this.maxId));
|
|
77738
|
+
}
|
|
77739
|
+
if (this.minId !== undefined) {
|
|
77740
|
+
b.write(index_js_1.Primitive.Int.write(this.minId));
|
|
77741
|
+
}
|
|
77742
|
+
if (this.hash !== undefined) {
|
|
77743
|
+
b.write(index_js_1.Primitive.Long.write(this.hash));
|
|
77744
|
+
}
|
|
77745
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
77746
|
+
}
|
|
77747
|
+
}
|
|
77748
|
+
messages_1.GetPersonalChannelHistory = GetPersonalChannelHistory;
|
|
77143
77749
|
})(messages = Raw.messages || (Raw.messages = {}));
|
|
77144
77750
|
let updates;
|
|
77145
77751
|
(function (updates) {
|
|
@@ -93086,6 +93692,31 @@ var Raw;
|
|
|
93086
93692
|
}
|
|
93087
93693
|
}
|
|
93088
93694
|
stats.PublicForwards = PublicForwards;
|
|
93695
|
+
class PollStats extends index_js_1.TLObject {
|
|
93696
|
+
votesGraph;
|
|
93697
|
+
constructor(params) {
|
|
93698
|
+
super();
|
|
93699
|
+
this.classType = 'types';
|
|
93700
|
+
this.className = 'stats.PollStats';
|
|
93701
|
+
this.constructorId = 0x2999beed;
|
|
93702
|
+
this.subclassOfId = 0xe95194cf;
|
|
93703
|
+
this._slots = ['votesGraph'];
|
|
93704
|
+
this.votesGraph = params.votesGraph;
|
|
93705
|
+
}
|
|
93706
|
+
static async read(_data, ..._args) {
|
|
93707
|
+
let votesGraph = await index_js_1.TLObject.read(_data);
|
|
93708
|
+
return new Raw.stats.PollStats({ votesGraph: votesGraph });
|
|
93709
|
+
}
|
|
93710
|
+
write() {
|
|
93711
|
+
const b = new deps_js_1.BytesIO();
|
|
93712
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
93713
|
+
if (this.votesGraph !== undefined) {
|
|
93714
|
+
b.write(this.votesGraph.write());
|
|
93715
|
+
}
|
|
93716
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
93717
|
+
}
|
|
93718
|
+
}
|
|
93719
|
+
stats.PollStats = PollStats;
|
|
93089
93720
|
class GetBroadcastStats extends index_js_1.TLObject {
|
|
93090
93721
|
__response__;
|
|
93091
93722
|
dark;
|
|
@@ -93364,6 +93995,45 @@ var Raw;
|
|
|
93364
93995
|
}
|
|
93365
93996
|
}
|
|
93366
93997
|
stats.GetStoryPublicForwards = GetStoryPublicForwards;
|
|
93998
|
+
class GetPollStats extends index_js_1.TLObject {
|
|
93999
|
+
__response__;
|
|
94000
|
+
dark;
|
|
94001
|
+
peer;
|
|
94002
|
+
msgId;
|
|
94003
|
+
constructor(params) {
|
|
94004
|
+
super();
|
|
94005
|
+
this.classType = 'functions';
|
|
94006
|
+
this.className = 'stats.GetPollStats';
|
|
94007
|
+
this.constructorId = 0xc27dfa68;
|
|
94008
|
+
this.subclassOfId = 0xe95194cf;
|
|
94009
|
+
this._slots = ['dark', 'peer', 'msgId'];
|
|
94010
|
+
this.dark = params.dark;
|
|
94011
|
+
this.peer = params.peer;
|
|
94012
|
+
this.msgId = params.msgId;
|
|
94013
|
+
}
|
|
94014
|
+
static async read(_data, ..._args) {
|
|
94015
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
94016
|
+
let dark = flags & (1 << 0) ? true : false;
|
|
94017
|
+
let peer = await index_js_1.TLObject.read(_data);
|
|
94018
|
+
let msgId = await index_js_1.Primitive.Int.read(_data);
|
|
94019
|
+
return new Raw.stats.GetPollStats({ dark: dark, peer: peer, msgId: msgId });
|
|
94020
|
+
}
|
|
94021
|
+
write() {
|
|
94022
|
+
const b = new deps_js_1.BytesIO();
|
|
94023
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
94024
|
+
let flags = 0;
|
|
94025
|
+
flags |= this.dark ? 1 << 0 : 0;
|
|
94026
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
94027
|
+
if (this.peer !== undefined) {
|
|
94028
|
+
b.write(this.peer.write());
|
|
94029
|
+
}
|
|
94030
|
+
if (this.msgId !== undefined) {
|
|
94031
|
+
b.write(index_js_1.Primitive.Int.write(this.msgId));
|
|
94032
|
+
}
|
|
94033
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
94034
|
+
}
|
|
94035
|
+
}
|
|
94036
|
+
stats.GetPollStats = GetPollStats;
|
|
93367
94037
|
})(stats = Raw.stats || (Raw.stats = {}));
|
|
93368
94038
|
let stickers;
|
|
93369
94039
|
(function (stickers_1) {
|
|
@@ -94930,6 +95600,39 @@ var Raw;
|
|
|
94930
95600
|
}
|
|
94931
95601
|
}
|
|
94932
95602
|
bots.RequestedButton = RequestedButton;
|
|
95603
|
+
class AccessSettings extends index_js_1.TLObject {
|
|
95604
|
+
restricted;
|
|
95605
|
+
addUsers;
|
|
95606
|
+
constructor(params) {
|
|
95607
|
+
super();
|
|
95608
|
+
this.classType = 'types';
|
|
95609
|
+
this.className = 'bots.AccessSettings';
|
|
95610
|
+
this.constructorId = 0xdd1fbf93;
|
|
95611
|
+
this.subclassOfId = 0xeca109c2;
|
|
95612
|
+
this._slots = ['restricted', 'addUsers'];
|
|
95613
|
+
this.restricted = params.restricted;
|
|
95614
|
+
this.addUsers = params.addUsers;
|
|
95615
|
+
}
|
|
95616
|
+
static async read(_data, ..._args) {
|
|
95617
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
95618
|
+
let restricted = flags & (1 << 0) ? true : false;
|
|
95619
|
+
let addUsers = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : [];
|
|
95620
|
+
return new Raw.bots.AccessSettings({ restricted: restricted, addUsers: addUsers });
|
|
95621
|
+
}
|
|
95622
|
+
write() {
|
|
95623
|
+
const b = new deps_js_1.BytesIO();
|
|
95624
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
95625
|
+
let flags = 0;
|
|
95626
|
+
flags |= this.restricted ? 1 << 0 : 0;
|
|
95627
|
+
flags |= this.addUsers ? 1 << 1 : 0;
|
|
95628
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
95629
|
+
if (this.addUsers) {
|
|
95630
|
+
b.write(index_js_1.Primitive.Vector.write(this.addUsers));
|
|
95631
|
+
}
|
|
95632
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
95633
|
+
}
|
|
95634
|
+
}
|
|
95635
|
+
bots.AccessSettings = AccessSettings;
|
|
94933
95636
|
class SendCustomRequest extends index_js_1.TLObject {
|
|
94934
95637
|
__response__;
|
|
94935
95638
|
customMethod;
|
|
@@ -96144,6 +96847,76 @@ var Raw;
|
|
|
96144
96847
|
}
|
|
96145
96848
|
}
|
|
96146
96849
|
bots.GetRequestedWebViewButton = GetRequestedWebViewButton;
|
|
96850
|
+
class GetAccessSettings extends index_js_1.TLObject {
|
|
96851
|
+
__response__;
|
|
96852
|
+
bot;
|
|
96853
|
+
constructor(params) {
|
|
96854
|
+
super();
|
|
96855
|
+
this.classType = 'functions';
|
|
96856
|
+
this.className = 'bots.GetAccessSettings';
|
|
96857
|
+
this.constructorId = 0x213853a3;
|
|
96858
|
+
this.subclassOfId = 0xeca109c2;
|
|
96859
|
+
this._slots = ['bot'];
|
|
96860
|
+
this.bot = params.bot;
|
|
96861
|
+
}
|
|
96862
|
+
static async read(_data, ..._args) {
|
|
96863
|
+
let bot = await index_js_1.TLObject.read(_data);
|
|
96864
|
+
return new Raw.bots.GetAccessSettings({ bot: bot });
|
|
96865
|
+
}
|
|
96866
|
+
write() {
|
|
96867
|
+
const b = new deps_js_1.BytesIO();
|
|
96868
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
96869
|
+
if (this.bot !== undefined) {
|
|
96870
|
+
b.write(this.bot.write());
|
|
96871
|
+
}
|
|
96872
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
96873
|
+
}
|
|
96874
|
+
}
|
|
96875
|
+
bots.GetAccessSettings = GetAccessSettings;
|
|
96876
|
+
class EditAccessSettings extends index_js_1.TLObject {
|
|
96877
|
+
__response__;
|
|
96878
|
+
restricted;
|
|
96879
|
+
bot;
|
|
96880
|
+
addUsers;
|
|
96881
|
+
constructor(params) {
|
|
96882
|
+
super();
|
|
96883
|
+
this.classType = 'functions';
|
|
96884
|
+
this.className = 'bots.EditAccessSettings';
|
|
96885
|
+
this.constructorId = 0x31813cd8;
|
|
96886
|
+
this.subclassOfId = 0xf5b399ac;
|
|
96887
|
+
this._slots = ['restricted', 'bot', 'addUsers'];
|
|
96888
|
+
this.restricted = params.restricted;
|
|
96889
|
+
this.bot = params.bot;
|
|
96890
|
+
this.addUsers = params.addUsers;
|
|
96891
|
+
}
|
|
96892
|
+
static async read(_data, ..._args) {
|
|
96893
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
96894
|
+
let restricted = flags & (1 << 0) ? true : false;
|
|
96895
|
+
let bot = await index_js_1.TLObject.read(_data);
|
|
96896
|
+
let addUsers = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : [];
|
|
96897
|
+
return new Raw.bots.EditAccessSettings({
|
|
96898
|
+
restricted: restricted,
|
|
96899
|
+
bot: bot,
|
|
96900
|
+
addUsers: addUsers,
|
|
96901
|
+
});
|
|
96902
|
+
}
|
|
96903
|
+
write() {
|
|
96904
|
+
const b = new deps_js_1.BytesIO();
|
|
96905
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
96906
|
+
let flags = 0;
|
|
96907
|
+
flags |= this.restricted ? 1 << 0 : 0;
|
|
96908
|
+
flags |= this.addUsers ? 1 << 1 : 0;
|
|
96909
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
96910
|
+
if (this.bot !== undefined) {
|
|
96911
|
+
b.write(this.bot.write());
|
|
96912
|
+
}
|
|
96913
|
+
if (this.addUsers) {
|
|
96914
|
+
b.write(index_js_1.Primitive.Vector.write(this.addUsers));
|
|
96915
|
+
}
|
|
96916
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
96917
|
+
}
|
|
96918
|
+
}
|
|
96919
|
+
bots.EditAccessSettings = EditAccessSettings;
|
|
96147
96920
|
})(bots = Raw.bots || (Raw.bots = {}));
|
|
96148
96921
|
let stories;
|
|
96149
96922
|
(function (stories_1) {
|
|
@@ -98902,6 +99675,320 @@ var Raw;
|
|
|
98902
99675
|
}
|
|
98903
99676
|
fragment.GetCollectibleInfo = GetCollectibleInfo;
|
|
98904
99677
|
})(fragment = Raw.fragment || (Raw.fragment = {}));
|
|
99678
|
+
let aicompose;
|
|
99679
|
+
(function (aicompose) {
|
|
99680
|
+
class TonesNotModified extends index_js_1.TLObject {
|
|
99681
|
+
constructor() {
|
|
99682
|
+
super();
|
|
99683
|
+
this.classType = 'types';
|
|
99684
|
+
this.className = 'aicompose.TonesNotModified';
|
|
99685
|
+
this.constructorId = 0xc1f46103;
|
|
99686
|
+
this.subclassOfId = 0xf25ffed9;
|
|
99687
|
+
this._slots = [];
|
|
99688
|
+
}
|
|
99689
|
+
static async read(_data, ..._args) {
|
|
99690
|
+
return new Raw.aicompose.TonesNotModified();
|
|
99691
|
+
}
|
|
99692
|
+
write() {
|
|
99693
|
+
const b = new deps_js_1.BytesIO();
|
|
99694
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
99695
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
99696
|
+
}
|
|
99697
|
+
}
|
|
99698
|
+
aicompose.TonesNotModified = TonesNotModified;
|
|
99699
|
+
class Tones extends index_js_1.TLObject {
|
|
99700
|
+
hash;
|
|
99701
|
+
tones;
|
|
99702
|
+
users;
|
|
99703
|
+
constructor(params) {
|
|
99704
|
+
super();
|
|
99705
|
+
this.classType = 'types';
|
|
99706
|
+
this.className = 'aicompose.Tones';
|
|
99707
|
+
this.constructorId = 0x6c9d0efe;
|
|
99708
|
+
this.subclassOfId = 0xf25ffed9;
|
|
99709
|
+
this._slots = ['hash', 'tones', 'users'];
|
|
99710
|
+
this.hash = params.hash;
|
|
99711
|
+
this.tones = params.tones;
|
|
99712
|
+
this.users = params.users;
|
|
99713
|
+
}
|
|
99714
|
+
static async read(_data, ..._args) {
|
|
99715
|
+
let hash = await index_js_1.Primitive.Long.read(_data);
|
|
99716
|
+
let tones = await index_js_1.TLObject.read(_data);
|
|
99717
|
+
let users = await index_js_1.TLObject.read(_data);
|
|
99718
|
+
return new Raw.aicompose.Tones({ hash: hash, tones: tones, users: users });
|
|
99719
|
+
}
|
|
99720
|
+
write() {
|
|
99721
|
+
const b = new deps_js_1.BytesIO();
|
|
99722
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
99723
|
+
if (this.hash !== undefined) {
|
|
99724
|
+
b.write(index_js_1.Primitive.Long.write(this.hash));
|
|
99725
|
+
}
|
|
99726
|
+
if (this.tones) {
|
|
99727
|
+
b.write(index_js_1.Primitive.Vector.write(this.tones));
|
|
99728
|
+
}
|
|
99729
|
+
if (this.users) {
|
|
99730
|
+
b.write(index_js_1.Primitive.Vector.write(this.users));
|
|
99731
|
+
}
|
|
99732
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
99733
|
+
}
|
|
99734
|
+
}
|
|
99735
|
+
aicompose.Tones = Tones;
|
|
99736
|
+
class CreateTone extends index_js_1.TLObject {
|
|
99737
|
+
__response__;
|
|
99738
|
+
displayAuthor;
|
|
99739
|
+
emojiId;
|
|
99740
|
+
title;
|
|
99741
|
+
prompt;
|
|
99742
|
+
constructor(params) {
|
|
99743
|
+
super();
|
|
99744
|
+
this.classType = 'functions';
|
|
99745
|
+
this.className = 'aicompose.CreateTone';
|
|
99746
|
+
this.constructorId = 0x4aa83913;
|
|
99747
|
+
this.subclassOfId = 0xd476f30d;
|
|
99748
|
+
this._slots = ['displayAuthor', 'emojiId', 'title', 'prompt'];
|
|
99749
|
+
this.displayAuthor = params.displayAuthor;
|
|
99750
|
+
this.emojiId = params.emojiId;
|
|
99751
|
+
this.title = params.title;
|
|
99752
|
+
this.prompt = params.prompt;
|
|
99753
|
+
}
|
|
99754
|
+
static async read(_data, ..._args) {
|
|
99755
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
99756
|
+
let displayAuthor = flags & (1 << 0) ? true : false;
|
|
99757
|
+
let emojiId = await index_js_1.Primitive.Long.read(_data);
|
|
99758
|
+
let title = await index_js_1.Primitive.String.read(_data);
|
|
99759
|
+
let prompt = await index_js_1.Primitive.String.read(_data);
|
|
99760
|
+
return new Raw.aicompose.CreateTone({
|
|
99761
|
+
displayAuthor: displayAuthor,
|
|
99762
|
+
emojiId: emojiId,
|
|
99763
|
+
title: title,
|
|
99764
|
+
prompt: prompt,
|
|
99765
|
+
});
|
|
99766
|
+
}
|
|
99767
|
+
write() {
|
|
99768
|
+
const b = new deps_js_1.BytesIO();
|
|
99769
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
99770
|
+
let flags = 0;
|
|
99771
|
+
flags |= this.displayAuthor ? 1 << 0 : 0;
|
|
99772
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
99773
|
+
if (this.emojiId !== undefined) {
|
|
99774
|
+
b.write(index_js_1.Primitive.Long.write(this.emojiId));
|
|
99775
|
+
}
|
|
99776
|
+
if (this.title !== undefined) {
|
|
99777
|
+
b.write(index_js_1.Primitive.String.write(this.title));
|
|
99778
|
+
}
|
|
99779
|
+
if (this.prompt !== undefined) {
|
|
99780
|
+
b.write(index_js_1.Primitive.String.write(this.prompt));
|
|
99781
|
+
}
|
|
99782
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
99783
|
+
}
|
|
99784
|
+
}
|
|
99785
|
+
aicompose.CreateTone = CreateTone;
|
|
99786
|
+
class UpdateTone extends index_js_1.TLObject {
|
|
99787
|
+
__response__;
|
|
99788
|
+
tone;
|
|
99789
|
+
displayAuthor;
|
|
99790
|
+
emojiId;
|
|
99791
|
+
title;
|
|
99792
|
+
prompt;
|
|
99793
|
+
constructor(params) {
|
|
99794
|
+
super();
|
|
99795
|
+
this.classType = 'functions';
|
|
99796
|
+
this.className = 'aicompose.UpdateTone';
|
|
99797
|
+
this.constructorId = 0x903bcf59;
|
|
99798
|
+
this.subclassOfId = 0xd476f30d;
|
|
99799
|
+
this._slots = ['tone', 'displayAuthor', 'emojiId', 'title', 'prompt'];
|
|
99800
|
+
this.tone = params.tone;
|
|
99801
|
+
this.displayAuthor = params.displayAuthor;
|
|
99802
|
+
this.emojiId = params.emojiId;
|
|
99803
|
+
this.title = params.title;
|
|
99804
|
+
this.prompt = params.prompt;
|
|
99805
|
+
}
|
|
99806
|
+
static async read(_data, ..._args) {
|
|
99807
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
99808
|
+
let tone = await index_js_1.TLObject.read(_data);
|
|
99809
|
+
let displayAuthor = flags & (1 << 0) ? await index_js_1.Primitive.Bool.read(_data) : undefined;
|
|
99810
|
+
let emojiId = flags & (1 << 1) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
99811
|
+
let title = flags & (1 << 2) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
99812
|
+
let prompt = flags & (1 << 3) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
99813
|
+
return new Raw.aicompose.UpdateTone({
|
|
99814
|
+
tone: tone,
|
|
99815
|
+
displayAuthor: displayAuthor,
|
|
99816
|
+
emojiId: emojiId,
|
|
99817
|
+
title: title,
|
|
99818
|
+
prompt: prompt,
|
|
99819
|
+
});
|
|
99820
|
+
}
|
|
99821
|
+
write() {
|
|
99822
|
+
const b = new deps_js_1.BytesIO();
|
|
99823
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
99824
|
+
let flags = 0;
|
|
99825
|
+
flags |= this.displayAuthor !== undefined ? 1 << 0 : 0;
|
|
99826
|
+
flags |= this.emojiId !== undefined ? 1 << 1 : 0;
|
|
99827
|
+
flags |= this.title !== undefined ? 1 << 2 : 0;
|
|
99828
|
+
flags |= this.prompt !== undefined ? 1 << 3 : 0;
|
|
99829
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
99830
|
+
if (this.tone !== undefined) {
|
|
99831
|
+
b.write(this.tone.write());
|
|
99832
|
+
}
|
|
99833
|
+
if (this.displayAuthor !== undefined) {
|
|
99834
|
+
b.write(index_js_1.Primitive.Bool.write(this.displayAuthor));
|
|
99835
|
+
}
|
|
99836
|
+
if (this.emojiId !== undefined) {
|
|
99837
|
+
b.write(index_js_1.Primitive.Long.write(this.emojiId));
|
|
99838
|
+
}
|
|
99839
|
+
if (this.title !== undefined) {
|
|
99840
|
+
b.write(index_js_1.Primitive.String.write(this.title));
|
|
99841
|
+
}
|
|
99842
|
+
if (this.prompt !== undefined) {
|
|
99843
|
+
b.write(index_js_1.Primitive.String.write(this.prompt));
|
|
99844
|
+
}
|
|
99845
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
99846
|
+
}
|
|
99847
|
+
}
|
|
99848
|
+
aicompose.UpdateTone = UpdateTone;
|
|
99849
|
+
class SaveTone extends index_js_1.TLObject {
|
|
99850
|
+
__response__;
|
|
99851
|
+
tone;
|
|
99852
|
+
unsave;
|
|
99853
|
+
constructor(params) {
|
|
99854
|
+
super();
|
|
99855
|
+
this.classType = 'functions';
|
|
99856
|
+
this.className = 'aicompose.SaveTone';
|
|
99857
|
+
this.constructorId = 0x1782cbb1;
|
|
99858
|
+
this.subclassOfId = 0xf5b399ac;
|
|
99859
|
+
this._slots = ['tone', 'unsave'];
|
|
99860
|
+
this.tone = params.tone;
|
|
99861
|
+
this.unsave = params.unsave;
|
|
99862
|
+
}
|
|
99863
|
+
static async read(_data, ..._args) {
|
|
99864
|
+
let tone = await index_js_1.TLObject.read(_data);
|
|
99865
|
+
let unsave = await index_js_1.Primitive.Bool.read(_data);
|
|
99866
|
+
return new Raw.aicompose.SaveTone({ tone: tone, unsave: unsave });
|
|
99867
|
+
}
|
|
99868
|
+
write() {
|
|
99869
|
+
const b = new deps_js_1.BytesIO();
|
|
99870
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
99871
|
+
if (this.tone !== undefined) {
|
|
99872
|
+
b.write(this.tone.write());
|
|
99873
|
+
}
|
|
99874
|
+
if (this.unsave !== undefined) {
|
|
99875
|
+
b.write(index_js_1.Primitive.Bool.write(this.unsave));
|
|
99876
|
+
}
|
|
99877
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
99878
|
+
}
|
|
99879
|
+
}
|
|
99880
|
+
aicompose.SaveTone = SaveTone;
|
|
99881
|
+
class DeleteTone extends index_js_1.TLObject {
|
|
99882
|
+
__response__;
|
|
99883
|
+
tone;
|
|
99884
|
+
constructor(params) {
|
|
99885
|
+
super();
|
|
99886
|
+
this.classType = 'functions';
|
|
99887
|
+
this.className = 'aicompose.DeleteTone';
|
|
99888
|
+
this.constructorId = 0xdd39316a;
|
|
99889
|
+
this.subclassOfId = 0xf5b399ac;
|
|
99890
|
+
this._slots = ['tone'];
|
|
99891
|
+
this.tone = params.tone;
|
|
99892
|
+
}
|
|
99893
|
+
static async read(_data, ..._args) {
|
|
99894
|
+
let tone = await index_js_1.TLObject.read(_data);
|
|
99895
|
+
return new Raw.aicompose.DeleteTone({ tone: tone });
|
|
99896
|
+
}
|
|
99897
|
+
write() {
|
|
99898
|
+
const b = new deps_js_1.BytesIO();
|
|
99899
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
99900
|
+
if (this.tone !== undefined) {
|
|
99901
|
+
b.write(this.tone.write());
|
|
99902
|
+
}
|
|
99903
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
99904
|
+
}
|
|
99905
|
+
}
|
|
99906
|
+
aicompose.DeleteTone = DeleteTone;
|
|
99907
|
+
class GetTone extends index_js_1.TLObject {
|
|
99908
|
+
__response__;
|
|
99909
|
+
tone;
|
|
99910
|
+
constructor(params) {
|
|
99911
|
+
super();
|
|
99912
|
+
this.classType = 'functions';
|
|
99913
|
+
this.className = 'aicompose.GetTone';
|
|
99914
|
+
this.constructorId = 0xb2e8ba03;
|
|
99915
|
+
this.subclassOfId = 0xf25ffed9;
|
|
99916
|
+
this._slots = ['tone'];
|
|
99917
|
+
this.tone = params.tone;
|
|
99918
|
+
}
|
|
99919
|
+
static async read(_data, ..._args) {
|
|
99920
|
+
let tone = await index_js_1.TLObject.read(_data);
|
|
99921
|
+
return new Raw.aicompose.GetTone({ tone: tone });
|
|
99922
|
+
}
|
|
99923
|
+
write() {
|
|
99924
|
+
const b = new deps_js_1.BytesIO();
|
|
99925
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
99926
|
+
if (this.tone !== undefined) {
|
|
99927
|
+
b.write(this.tone.write());
|
|
99928
|
+
}
|
|
99929
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
99930
|
+
}
|
|
99931
|
+
}
|
|
99932
|
+
aicompose.GetTone = GetTone;
|
|
99933
|
+
class GetTones extends index_js_1.TLObject {
|
|
99934
|
+
__response__;
|
|
99935
|
+
hash;
|
|
99936
|
+
constructor(params) {
|
|
99937
|
+
super();
|
|
99938
|
+
this.classType = 'functions';
|
|
99939
|
+
this.className = 'aicompose.GetTones';
|
|
99940
|
+
this.constructorId = 0xabd59201;
|
|
99941
|
+
this.subclassOfId = 0xf25ffed9;
|
|
99942
|
+
this._slots = ['hash'];
|
|
99943
|
+
this.hash = params.hash;
|
|
99944
|
+
}
|
|
99945
|
+
static async read(_data, ..._args) {
|
|
99946
|
+
let hash = await index_js_1.Primitive.Long.read(_data);
|
|
99947
|
+
return new Raw.aicompose.GetTones({ hash: hash });
|
|
99948
|
+
}
|
|
99949
|
+
write() {
|
|
99950
|
+
const b = new deps_js_1.BytesIO();
|
|
99951
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
99952
|
+
if (this.hash !== undefined) {
|
|
99953
|
+
b.write(index_js_1.Primitive.Long.write(this.hash));
|
|
99954
|
+
}
|
|
99955
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
99956
|
+
}
|
|
99957
|
+
}
|
|
99958
|
+
aicompose.GetTones = GetTones;
|
|
99959
|
+
class GetToneExample extends index_js_1.TLObject {
|
|
99960
|
+
__response__;
|
|
99961
|
+
tone;
|
|
99962
|
+
num;
|
|
99963
|
+
constructor(params) {
|
|
99964
|
+
super();
|
|
99965
|
+
this.classType = 'functions';
|
|
99966
|
+
this.className = 'aicompose.GetToneExample';
|
|
99967
|
+
this.constructorId = 0xd1b4ab14;
|
|
99968
|
+
this.subclassOfId = 0x8c2493d5;
|
|
99969
|
+
this._slots = ['tone', 'num'];
|
|
99970
|
+
this.tone = params.tone;
|
|
99971
|
+
this.num = params.num;
|
|
99972
|
+
}
|
|
99973
|
+
static async read(_data, ..._args) {
|
|
99974
|
+
let tone = await index_js_1.TLObject.read(_data);
|
|
99975
|
+
let num = await index_js_1.Primitive.Int.read(_data);
|
|
99976
|
+
return new Raw.aicompose.GetToneExample({ tone: tone, num: num });
|
|
99977
|
+
}
|
|
99978
|
+
write() {
|
|
99979
|
+
const b = new deps_js_1.BytesIO();
|
|
99980
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
99981
|
+
if (this.tone !== undefined) {
|
|
99982
|
+
b.write(this.tone.write());
|
|
99983
|
+
}
|
|
99984
|
+
if (this.num !== undefined) {
|
|
99985
|
+
b.write(index_js_1.Primitive.Int.write(this.num));
|
|
99986
|
+
}
|
|
99987
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
99988
|
+
}
|
|
99989
|
+
}
|
|
99990
|
+
aicompose.GetToneExample = GetToneExample;
|
|
99991
|
+
})(aicompose = Raw.aicompose || (Raw.aicompose = {}));
|
|
98905
99992
|
let langpack;
|
|
98906
99993
|
(function (langpack) {
|
|
98907
99994
|
class GetLangPack extends index_js_1.TLObject {
|