@tgsnake/skema 1.10.0 → 1.12.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 +72 -38
- package/dist/raw/All.js +72 -38
- package/dist/raw/Raw.d.ts +563 -39
- package/dist/raw/Raw.js +1976 -146
- 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 = 224;
|
|
9
9
|
Raw.HighestSCLayer = 144;
|
|
10
10
|
class ResPQ extends index_js_1.TLObject {
|
|
11
11
|
nonce;
|
|
@@ -2351,32 +2351,40 @@ var Raw;
|
|
|
2351
2351
|
Raw.InputMediaEmpty = InputMediaEmpty;
|
|
2352
2352
|
class InputMediaUploadedPhoto extends index_js_1.TLObject {
|
|
2353
2353
|
spoiler;
|
|
2354
|
+
livePhoto;
|
|
2354
2355
|
file;
|
|
2355
2356
|
stickers;
|
|
2356
2357
|
ttlSeconds;
|
|
2358
|
+
video;
|
|
2357
2359
|
constructor(params) {
|
|
2358
2360
|
super();
|
|
2359
2361
|
this.classType = 'types';
|
|
2360
2362
|
this.className = 'InputMediaUploadedPhoto';
|
|
2361
|
-
this.constructorId =
|
|
2363
|
+
this.constructorId = 0x7d8375da;
|
|
2362
2364
|
this.subclassOfId = 0xfaf846f4;
|
|
2363
|
-
this._slots = ['spoiler', 'file', 'stickers', 'ttlSeconds'];
|
|
2365
|
+
this._slots = ['spoiler', 'livePhoto', 'file', 'stickers', 'ttlSeconds', 'video'];
|
|
2364
2366
|
this.spoiler = params.spoiler;
|
|
2367
|
+
this.livePhoto = params.livePhoto;
|
|
2365
2368
|
this.file = params.file;
|
|
2366
2369
|
this.stickers = params.stickers;
|
|
2367
2370
|
this.ttlSeconds = params.ttlSeconds;
|
|
2371
|
+
this.video = params.video;
|
|
2368
2372
|
}
|
|
2369
2373
|
static async read(_data, ..._args) {
|
|
2370
2374
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
2371
2375
|
let spoiler = flags & (1 << 2) ? true : false;
|
|
2376
|
+
let livePhoto = flags & (1 << 3) ? true : false;
|
|
2372
2377
|
let file = await index_js_1.TLObject.read(_data);
|
|
2373
2378
|
let stickers = flags & (1 << 0) ? await index_js_1.TLObject.read(_data) : [];
|
|
2374
2379
|
let ttlSeconds = flags & (1 << 1) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
2380
|
+
let video = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
2375
2381
|
return new Raw.InputMediaUploadedPhoto({
|
|
2376
2382
|
spoiler: spoiler,
|
|
2383
|
+
livePhoto: livePhoto,
|
|
2377
2384
|
file: file,
|
|
2378
2385
|
stickers: stickers,
|
|
2379
2386
|
ttlSeconds: ttlSeconds,
|
|
2387
|
+
video: video,
|
|
2380
2388
|
});
|
|
2381
2389
|
}
|
|
2382
2390
|
write() {
|
|
@@ -2384,8 +2392,10 @@ var Raw;
|
|
|
2384
2392
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
2385
2393
|
let flags = 0;
|
|
2386
2394
|
flags |= this.spoiler ? 1 << 2 : 0;
|
|
2395
|
+
flags |= this.livePhoto ? 1 << 3 : 0;
|
|
2387
2396
|
flags |= this.stickers ? 1 << 0 : 0;
|
|
2388
2397
|
flags |= this.ttlSeconds !== undefined ? 1 << 1 : 0;
|
|
2398
|
+
flags |= this.video !== undefined ? 1 << 3 : 0;
|
|
2389
2399
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
2390
2400
|
if (this.file !== undefined) {
|
|
2391
2401
|
b.write(this.file.write());
|
|
@@ -2396,38 +2406,55 @@ var Raw;
|
|
|
2396
2406
|
if (this.ttlSeconds !== undefined) {
|
|
2397
2407
|
b.write(index_js_1.Primitive.Int.write(this.ttlSeconds));
|
|
2398
2408
|
}
|
|
2409
|
+
if (this.video !== undefined) {
|
|
2410
|
+
b.write(this.video.write());
|
|
2411
|
+
}
|
|
2399
2412
|
return deps_js_1.Buffer.from(b.buffer);
|
|
2400
2413
|
}
|
|
2401
2414
|
}
|
|
2402
2415
|
Raw.InputMediaUploadedPhoto = InputMediaUploadedPhoto;
|
|
2403
2416
|
class InputMediaPhoto extends index_js_1.TLObject {
|
|
2404
2417
|
spoiler;
|
|
2418
|
+
livePhoto;
|
|
2405
2419
|
id;
|
|
2406
2420
|
ttlSeconds;
|
|
2421
|
+
video;
|
|
2407
2422
|
constructor(params) {
|
|
2408
2423
|
super();
|
|
2409
2424
|
this.classType = 'types';
|
|
2410
2425
|
this.className = 'InputMediaPhoto';
|
|
2411
|
-
this.constructorId =
|
|
2426
|
+
this.constructorId = 0xe3af4434;
|
|
2412
2427
|
this.subclassOfId = 0xfaf846f4;
|
|
2413
|
-
this._slots = ['spoiler', 'id', 'ttlSeconds'];
|
|
2428
|
+
this._slots = ['spoiler', 'livePhoto', 'id', 'ttlSeconds', 'video'];
|
|
2414
2429
|
this.spoiler = params.spoiler;
|
|
2430
|
+
this.livePhoto = params.livePhoto;
|
|
2415
2431
|
this.id = params.id;
|
|
2416
2432
|
this.ttlSeconds = params.ttlSeconds;
|
|
2433
|
+
this.video = params.video;
|
|
2417
2434
|
}
|
|
2418
2435
|
static async read(_data, ..._args) {
|
|
2419
2436
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
2420
2437
|
let spoiler = flags & (1 << 1) ? true : false;
|
|
2438
|
+
let livePhoto = flags & (1 << 2) ? true : false;
|
|
2421
2439
|
let id = await index_js_1.TLObject.read(_data);
|
|
2422
2440
|
let ttlSeconds = flags & (1 << 0) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
2423
|
-
|
|
2441
|
+
let video = flags & (1 << 2) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
2442
|
+
return new Raw.InputMediaPhoto({
|
|
2443
|
+
spoiler: spoiler,
|
|
2444
|
+
livePhoto: livePhoto,
|
|
2445
|
+
id: id,
|
|
2446
|
+
ttlSeconds: ttlSeconds,
|
|
2447
|
+
video: video,
|
|
2448
|
+
});
|
|
2424
2449
|
}
|
|
2425
2450
|
write() {
|
|
2426
2451
|
const b = new deps_js_1.BytesIO();
|
|
2427
2452
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
2428
2453
|
let flags = 0;
|
|
2429
2454
|
flags |= this.spoiler ? 1 << 1 : 0;
|
|
2455
|
+
flags |= this.livePhoto ? 1 << 2 : 0;
|
|
2430
2456
|
flags |= this.ttlSeconds !== undefined ? 1 << 0 : 0;
|
|
2457
|
+
flags |= this.video !== undefined ? 1 << 2 : 0;
|
|
2431
2458
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
2432
2459
|
if (this.id !== undefined) {
|
|
2433
2460
|
b.write(this.id.write());
|
|
@@ -2435,6 +2462,9 @@ var Raw;
|
|
|
2435
2462
|
if (this.ttlSeconds !== undefined) {
|
|
2436
2463
|
b.write(index_js_1.Primitive.Int.write(this.ttlSeconds));
|
|
2437
2464
|
}
|
|
2465
|
+
if (this.video !== undefined) {
|
|
2466
|
+
b.write(this.video.write());
|
|
2467
|
+
}
|
|
2438
2468
|
return deps_js_1.Buffer.from(b.buffer);
|
|
2439
2469
|
}
|
|
2440
2470
|
}
|
|
@@ -3041,31 +3071,46 @@ var Raw;
|
|
|
3041
3071
|
class InputMediaPoll extends index_js_1.TLObject {
|
|
3042
3072
|
poll;
|
|
3043
3073
|
correctAnswers;
|
|
3074
|
+
attachedMedia;
|
|
3044
3075
|
solution;
|
|
3045
3076
|
solutionEntities;
|
|
3077
|
+
solutionMedia;
|
|
3046
3078
|
constructor(params) {
|
|
3047
3079
|
super();
|
|
3048
3080
|
this.classType = 'types';
|
|
3049
3081
|
this.className = 'InputMediaPoll';
|
|
3050
|
-
this.constructorId =
|
|
3082
|
+
this.constructorId = 0x883a4108;
|
|
3051
3083
|
this.subclassOfId = 0xfaf846f4;
|
|
3052
|
-
this._slots = [
|
|
3084
|
+
this._slots = [
|
|
3085
|
+
'poll',
|
|
3086
|
+
'correctAnswers',
|
|
3087
|
+
'attachedMedia',
|
|
3088
|
+
'solution',
|
|
3089
|
+
'solutionEntities',
|
|
3090
|
+
'solutionMedia',
|
|
3091
|
+
];
|
|
3053
3092
|
this.poll = params.poll;
|
|
3054
3093
|
this.correctAnswers = params.correctAnswers;
|
|
3094
|
+
this.attachedMedia = params.attachedMedia;
|
|
3055
3095
|
this.solution = params.solution;
|
|
3056
3096
|
this.solutionEntities = params.solutionEntities;
|
|
3097
|
+
this.solutionMedia = params.solutionMedia;
|
|
3057
3098
|
}
|
|
3058
3099
|
static async read(_data, ..._args) {
|
|
3059
3100
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
3060
3101
|
let poll = await index_js_1.TLObject.read(_data);
|
|
3061
|
-
let correctAnswers = flags & (1 << 0) ? await index_js_1.TLObject.read(_data, index_js_1.Primitive.
|
|
3102
|
+
let correctAnswers = flags & (1 << 0) ? await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int) : [];
|
|
3103
|
+
let attachedMedia = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
3062
3104
|
let solution = flags & (1 << 1) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
3063
3105
|
let solutionEntities = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : [];
|
|
3106
|
+
let solutionMedia = flags & (1 << 2) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
3064
3107
|
return new Raw.InputMediaPoll({
|
|
3065
3108
|
poll: poll,
|
|
3066
3109
|
correctAnswers: correctAnswers,
|
|
3110
|
+
attachedMedia: attachedMedia,
|
|
3067
3111
|
solution: solution,
|
|
3068
3112
|
solutionEntities: solutionEntities,
|
|
3113
|
+
solutionMedia: solutionMedia,
|
|
3069
3114
|
});
|
|
3070
3115
|
}
|
|
3071
3116
|
write() {
|
|
@@ -3073,14 +3118,19 @@ var Raw;
|
|
|
3073
3118
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
3074
3119
|
let flags = 0;
|
|
3075
3120
|
flags |= this.correctAnswers ? 1 << 0 : 0;
|
|
3121
|
+
flags |= this.attachedMedia !== undefined ? 1 << 3 : 0;
|
|
3076
3122
|
flags |= this.solution !== undefined ? 1 << 1 : 0;
|
|
3077
3123
|
flags |= this.solutionEntities ? 1 << 1 : 0;
|
|
3124
|
+
flags |= this.solutionMedia !== undefined ? 1 << 2 : 0;
|
|
3078
3125
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
3079
3126
|
if (this.poll !== undefined) {
|
|
3080
3127
|
b.write(this.poll.write());
|
|
3081
3128
|
}
|
|
3082
3129
|
if (this.correctAnswers) {
|
|
3083
|
-
b.write(index_js_1.Primitive.Vector.write(this.correctAnswers, index_js_1.Primitive.
|
|
3130
|
+
b.write(index_js_1.Primitive.Vector.write(this.correctAnswers, index_js_1.Primitive.Int));
|
|
3131
|
+
}
|
|
3132
|
+
if (this.attachedMedia !== undefined) {
|
|
3133
|
+
b.write(this.attachedMedia.write());
|
|
3084
3134
|
}
|
|
3085
3135
|
if (this.solution !== undefined) {
|
|
3086
3136
|
b.write(index_js_1.Primitive.String.write(this.solution));
|
|
@@ -3088,6 +3138,9 @@ var Raw;
|
|
|
3088
3138
|
if (this.solutionEntities) {
|
|
3089
3139
|
b.write(index_js_1.Primitive.Vector.write(this.solutionEntities));
|
|
3090
3140
|
}
|
|
3141
|
+
if (this.solutionMedia !== undefined) {
|
|
3142
|
+
b.write(this.solutionMedia.write());
|
|
3143
|
+
}
|
|
3091
3144
|
return deps_js_1.Buffer.from(b.buffer);
|
|
3092
3145
|
}
|
|
3093
3146
|
}
|
|
@@ -4063,6 +4116,7 @@ var Raw;
|
|
|
4063
4116
|
botHasMainApp;
|
|
4064
4117
|
botForumView;
|
|
4065
4118
|
botForumCanManageTopics;
|
|
4119
|
+
botCanManageBots;
|
|
4066
4120
|
id;
|
|
4067
4121
|
accessHash;
|
|
4068
4122
|
firstName;
|
|
@@ -4117,6 +4171,7 @@ var Raw;
|
|
|
4117
4171
|
'botHasMainApp',
|
|
4118
4172
|
'botForumView',
|
|
4119
4173
|
'botForumCanManageTopics',
|
|
4174
|
+
'botCanManageBots',
|
|
4120
4175
|
'id',
|
|
4121
4176
|
'accessHash',
|
|
4122
4177
|
'firstName',
|
|
@@ -4165,6 +4220,7 @@ var Raw;
|
|
|
4165
4220
|
this.botHasMainApp = params.botHasMainApp;
|
|
4166
4221
|
this.botForumView = params.botForumView;
|
|
4167
4222
|
this.botForumCanManageTopics = params.botForumCanManageTopics;
|
|
4223
|
+
this.botCanManageBots = params.botCanManageBots;
|
|
4168
4224
|
this.id = params.id;
|
|
4169
4225
|
this.accessHash = params.accessHash;
|
|
4170
4226
|
this.firstName = params.firstName;
|
|
@@ -4216,6 +4272,7 @@ var Raw;
|
|
|
4216
4272
|
let botHasMainApp = flags2 & (1 << 13) ? true : false;
|
|
4217
4273
|
let botForumView = flags2 & (1 << 16) ? true : false;
|
|
4218
4274
|
let botForumCanManageTopics = flags2 & (1 << 17) ? true : false;
|
|
4275
|
+
let botCanManageBots = flags2 & (1 << 18) ? true : false;
|
|
4219
4276
|
let id = await index_js_1.Primitive.Long.read(_data);
|
|
4220
4277
|
let accessHash = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
4221
4278
|
let firstName = flags & (1 << 1) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
@@ -4264,6 +4321,7 @@ var Raw;
|
|
|
4264
4321
|
botHasMainApp: botHasMainApp,
|
|
4265
4322
|
botForumView: botForumView,
|
|
4266
4323
|
botForumCanManageTopics: botForumCanManageTopics,
|
|
4324
|
+
botCanManageBots: botCanManageBots,
|
|
4267
4325
|
id: id,
|
|
4268
4326
|
accessHash: accessHash,
|
|
4269
4327
|
firstName: firstName,
|
|
@@ -4331,6 +4389,7 @@ var Raw;
|
|
|
4331
4389
|
flags2 |= this.botHasMainApp ? 1 << 13 : 0;
|
|
4332
4390
|
flags2 |= this.botForumView ? 1 << 16 : 0;
|
|
4333
4391
|
flags2 |= this.botForumCanManageTopics ? 1 << 17 : 0;
|
|
4392
|
+
flags2 |= this.botCanManageBots ? 1 << 18 : 0;
|
|
4334
4393
|
flags2 |= this.usernames ? 1 << 0 : 0;
|
|
4335
4394
|
flags2 |= this.storiesMaxId !== undefined ? 1 << 5 : 0;
|
|
4336
4395
|
flags2 |= this.color !== undefined ? 1 << 8 : 0;
|
|
@@ -6014,26 +6073,38 @@ var Raw;
|
|
|
6014
6073
|
userId;
|
|
6015
6074
|
inviterId;
|
|
6016
6075
|
date;
|
|
6076
|
+
rank;
|
|
6017
6077
|
constructor(params) {
|
|
6018
6078
|
super();
|
|
6019
6079
|
this.classType = 'types';
|
|
6020
6080
|
this.className = 'ChatParticipant';
|
|
6021
|
-
this.constructorId =
|
|
6081
|
+
this.constructorId = 0x38e79fde;
|
|
6022
6082
|
this.subclassOfId = 0x7d7c6f86;
|
|
6023
|
-
this._slots = ['userId', 'inviterId', 'date'];
|
|
6083
|
+
this._slots = ['userId', 'inviterId', 'date', 'rank'];
|
|
6024
6084
|
this.userId = params.userId;
|
|
6025
6085
|
this.inviterId = params.inviterId;
|
|
6026
6086
|
this.date = params.date;
|
|
6087
|
+
this.rank = params.rank;
|
|
6027
6088
|
}
|
|
6028
6089
|
static async read(_data, ..._args) {
|
|
6090
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
6029
6091
|
let userId = await index_js_1.Primitive.Long.read(_data);
|
|
6030
6092
|
let inviterId = await index_js_1.Primitive.Long.read(_data);
|
|
6031
6093
|
let date = await index_js_1.Primitive.Int.read(_data);
|
|
6032
|
-
|
|
6094
|
+
let rank = flags & (1 << 0) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
6095
|
+
return new Raw.ChatParticipant({
|
|
6096
|
+
userId: userId,
|
|
6097
|
+
inviterId: inviterId,
|
|
6098
|
+
date: date,
|
|
6099
|
+
rank: rank,
|
|
6100
|
+
});
|
|
6033
6101
|
}
|
|
6034
6102
|
write() {
|
|
6035
6103
|
const b = new deps_js_1.BytesIO();
|
|
6036
6104
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
6105
|
+
let flags = 0;
|
|
6106
|
+
flags |= this.rank !== undefined ? 1 << 0 : 0;
|
|
6107
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
6037
6108
|
if (this.userId !== undefined) {
|
|
6038
6109
|
b.write(index_js_1.Primitive.Long.write(this.userId));
|
|
6039
6110
|
}
|
|
@@ -6043,31 +6114,44 @@ var Raw;
|
|
|
6043
6114
|
if (this.date !== undefined) {
|
|
6044
6115
|
b.write(index_js_1.Primitive.Int.write(this.date));
|
|
6045
6116
|
}
|
|
6117
|
+
if (this.rank !== undefined) {
|
|
6118
|
+
b.write(index_js_1.Primitive.String.write(this.rank));
|
|
6119
|
+
}
|
|
6046
6120
|
return deps_js_1.Buffer.from(b.buffer);
|
|
6047
6121
|
}
|
|
6048
6122
|
}
|
|
6049
6123
|
Raw.ChatParticipant = ChatParticipant;
|
|
6050
6124
|
class ChatParticipantCreator extends index_js_1.TLObject {
|
|
6051
6125
|
userId;
|
|
6126
|
+
rank;
|
|
6052
6127
|
constructor(params) {
|
|
6053
6128
|
super();
|
|
6054
6129
|
this.classType = 'types';
|
|
6055
6130
|
this.className = 'ChatParticipantCreator';
|
|
6056
|
-
this.constructorId =
|
|
6131
|
+
this.constructorId = 0xe1f867b8;
|
|
6057
6132
|
this.subclassOfId = 0x7d7c6f86;
|
|
6058
|
-
this._slots = ['userId'];
|
|
6133
|
+
this._slots = ['userId', 'rank'];
|
|
6059
6134
|
this.userId = params.userId;
|
|
6135
|
+
this.rank = params.rank;
|
|
6060
6136
|
}
|
|
6061
6137
|
static async read(_data, ..._args) {
|
|
6138
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
6062
6139
|
let userId = await index_js_1.Primitive.Long.read(_data);
|
|
6063
|
-
|
|
6140
|
+
let rank = flags & (1 << 0) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
6141
|
+
return new Raw.ChatParticipantCreator({ userId: userId, rank: rank });
|
|
6064
6142
|
}
|
|
6065
6143
|
write() {
|
|
6066
6144
|
const b = new deps_js_1.BytesIO();
|
|
6067
6145
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
6146
|
+
let flags = 0;
|
|
6147
|
+
flags |= this.rank !== undefined ? 1 << 0 : 0;
|
|
6148
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
6068
6149
|
if (this.userId !== undefined) {
|
|
6069
6150
|
b.write(index_js_1.Primitive.Long.write(this.userId));
|
|
6070
6151
|
}
|
|
6152
|
+
if (this.rank !== undefined) {
|
|
6153
|
+
b.write(index_js_1.Primitive.String.write(this.rank));
|
|
6154
|
+
}
|
|
6071
6155
|
return deps_js_1.Buffer.from(b.buffer);
|
|
6072
6156
|
}
|
|
6073
6157
|
}
|
|
@@ -6076,26 +6160,38 @@ var Raw;
|
|
|
6076
6160
|
userId;
|
|
6077
6161
|
inviterId;
|
|
6078
6162
|
date;
|
|
6163
|
+
rank;
|
|
6079
6164
|
constructor(params) {
|
|
6080
6165
|
super();
|
|
6081
6166
|
this.classType = 'types';
|
|
6082
6167
|
this.className = 'ChatParticipantAdmin';
|
|
6083
|
-
this.constructorId =
|
|
6168
|
+
this.constructorId = 0x360d5d2;
|
|
6084
6169
|
this.subclassOfId = 0x7d7c6f86;
|
|
6085
|
-
this._slots = ['userId', 'inviterId', 'date'];
|
|
6170
|
+
this._slots = ['userId', 'inviterId', 'date', 'rank'];
|
|
6086
6171
|
this.userId = params.userId;
|
|
6087
6172
|
this.inviterId = params.inviterId;
|
|
6088
6173
|
this.date = params.date;
|
|
6174
|
+
this.rank = params.rank;
|
|
6089
6175
|
}
|
|
6090
6176
|
static async read(_data, ..._args) {
|
|
6177
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
6091
6178
|
let userId = await index_js_1.Primitive.Long.read(_data);
|
|
6092
6179
|
let inviterId = await index_js_1.Primitive.Long.read(_data);
|
|
6093
6180
|
let date = await index_js_1.Primitive.Int.read(_data);
|
|
6094
|
-
|
|
6181
|
+
let rank = flags & (1 << 0) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
6182
|
+
return new Raw.ChatParticipantAdmin({
|
|
6183
|
+
userId: userId,
|
|
6184
|
+
inviterId: inviterId,
|
|
6185
|
+
date: date,
|
|
6186
|
+
rank: rank,
|
|
6187
|
+
});
|
|
6095
6188
|
}
|
|
6096
6189
|
write() {
|
|
6097
6190
|
const b = new deps_js_1.BytesIO();
|
|
6098
6191
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
6192
|
+
let flags = 0;
|
|
6193
|
+
flags |= this.rank !== undefined ? 1 << 0 : 0;
|
|
6194
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
6099
6195
|
if (this.userId !== undefined) {
|
|
6100
6196
|
b.write(index_js_1.Primitive.Long.write(this.userId));
|
|
6101
6197
|
}
|
|
@@ -6105,6 +6201,9 @@ var Raw;
|
|
|
6105
6201
|
if (this.date !== undefined) {
|
|
6106
6202
|
b.write(index_js_1.Primitive.Int.write(this.date));
|
|
6107
6203
|
}
|
|
6204
|
+
if (this.rank !== undefined) {
|
|
6205
|
+
b.write(index_js_1.Primitive.String.write(this.rank));
|
|
6206
|
+
}
|
|
6108
6207
|
return deps_js_1.Buffer.from(b.buffer);
|
|
6109
6208
|
}
|
|
6110
6209
|
}
|
|
@@ -6311,6 +6410,7 @@ var Raw;
|
|
|
6311
6410
|
id;
|
|
6312
6411
|
fromId;
|
|
6313
6412
|
fromBoostsApplied;
|
|
6413
|
+
fromRank;
|
|
6314
6414
|
peerId;
|
|
6315
6415
|
savedPeerId;
|
|
6316
6416
|
fwdFrom;
|
|
@@ -6343,7 +6443,7 @@ var Raw;
|
|
|
6343
6443
|
super();
|
|
6344
6444
|
this.classType = 'types';
|
|
6345
6445
|
this.className = 'Message';
|
|
6346
|
-
this.constructorId =
|
|
6446
|
+
this.constructorId = 0x3ae56482;
|
|
6347
6447
|
this.subclassOfId = 0x790009e3;
|
|
6348
6448
|
this._slots = [
|
|
6349
6449
|
'out',
|
|
@@ -6364,6 +6464,7 @@ var Raw;
|
|
|
6364
6464
|
'id',
|
|
6365
6465
|
'fromId',
|
|
6366
6466
|
'fromBoostsApplied',
|
|
6467
|
+
'fromRank',
|
|
6367
6468
|
'peerId',
|
|
6368
6469
|
'savedPeerId',
|
|
6369
6470
|
'fwdFrom',
|
|
@@ -6411,6 +6512,7 @@ var Raw;
|
|
|
6411
6512
|
this.id = params.id;
|
|
6412
6513
|
this.fromId = params.fromId;
|
|
6413
6514
|
this.fromBoostsApplied = params.fromBoostsApplied;
|
|
6515
|
+
this.fromRank = params.fromRank;
|
|
6414
6516
|
this.peerId = params.peerId;
|
|
6415
6517
|
this.savedPeerId = params.savedPeerId;
|
|
6416
6518
|
this.fwdFrom = params.fwdFrom;
|
|
@@ -6461,6 +6563,7 @@ var Raw;
|
|
|
6461
6563
|
let id = await index_js_1.Primitive.Int.read(_data);
|
|
6462
6564
|
let fromId = flags & (1 << 8) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
6463
6565
|
let fromBoostsApplied = flags & (1 << 29) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
6566
|
+
let fromRank = flags2 & (1 << 12) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
6464
6567
|
let peerId = await index_js_1.TLObject.read(_data);
|
|
6465
6568
|
let savedPeerId = flags & (1 << 28) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
6466
6569
|
let fwdFrom = flags & (1 << 2) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
@@ -6508,6 +6611,7 @@ var Raw;
|
|
|
6508
6611
|
id: id,
|
|
6509
6612
|
fromId: fromId,
|
|
6510
6613
|
fromBoostsApplied: fromBoostsApplied,
|
|
6614
|
+
fromRank: fromRank,
|
|
6511
6615
|
peerId: peerId,
|
|
6512
6616
|
savedPeerId: savedPeerId,
|
|
6513
6617
|
fwdFrom: fwdFrom,
|
|
@@ -6578,6 +6682,7 @@ var Raw;
|
|
|
6578
6682
|
flags2 |= this.videoProcessingPending ? 1 << 4 : 0;
|
|
6579
6683
|
flags2 |= this.paidSuggestedPostStars ? 1 << 8 : 0;
|
|
6580
6684
|
flags2 |= this.paidSuggestedPostTon ? 1 << 9 : 0;
|
|
6685
|
+
flags2 |= this.fromRank !== undefined ? 1 << 12 : 0;
|
|
6581
6686
|
flags2 |= this.viaBusinessBotId !== undefined ? 1 << 0 : 0;
|
|
6582
6687
|
flags2 |= this.effect !== undefined ? 1 << 2 : 0;
|
|
6583
6688
|
flags2 |= this.factcheck !== undefined ? 1 << 3 : 0;
|
|
@@ -6596,6 +6701,9 @@ var Raw;
|
|
|
6596
6701
|
if (this.fromBoostsApplied !== undefined) {
|
|
6597
6702
|
b.write(index_js_1.Primitive.Int.write(this.fromBoostsApplied));
|
|
6598
6703
|
}
|
|
6704
|
+
if (this.fromRank !== undefined) {
|
|
6705
|
+
b.write(index_js_1.Primitive.String.write(this.fromRank));
|
|
6706
|
+
}
|
|
6599
6707
|
if (this.peerId !== undefined) {
|
|
6600
6708
|
b.write(this.peerId.write());
|
|
6601
6709
|
}
|
|
@@ -6848,33 +6956,47 @@ var Raw;
|
|
|
6848
6956
|
Raw.MessageMediaEmpty = MessageMediaEmpty;
|
|
6849
6957
|
class MessageMediaPhoto extends index_js_1.TLObject {
|
|
6850
6958
|
spoiler;
|
|
6959
|
+
livePhoto;
|
|
6851
6960
|
photo;
|
|
6852
6961
|
ttlSeconds;
|
|
6962
|
+
video;
|
|
6853
6963
|
constructor(params) {
|
|
6854
6964
|
super();
|
|
6855
6965
|
this.classType = 'types';
|
|
6856
6966
|
this.className = 'MessageMediaPhoto';
|
|
6857
|
-
this.constructorId =
|
|
6967
|
+
this.constructorId = 0xe216eb63;
|
|
6858
6968
|
this.subclassOfId = 0x476cbe32;
|
|
6859
|
-
this._slots = ['spoiler', 'photo', 'ttlSeconds'];
|
|
6969
|
+
this._slots = ['spoiler', 'livePhoto', 'photo', 'ttlSeconds', 'video'];
|
|
6860
6970
|
this.spoiler = params.spoiler;
|
|
6971
|
+
this.livePhoto = params.livePhoto;
|
|
6861
6972
|
this.photo = params.photo;
|
|
6862
6973
|
this.ttlSeconds = params.ttlSeconds;
|
|
6974
|
+
this.video = params.video;
|
|
6863
6975
|
}
|
|
6864
6976
|
static async read(_data, ..._args) {
|
|
6865
6977
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
6866
6978
|
let spoiler = flags & (1 << 3) ? true : false;
|
|
6979
|
+
let livePhoto = flags & (1 << 4) ? true : false;
|
|
6867
6980
|
let photo = flags & (1 << 0) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
6868
6981
|
let ttlSeconds = flags & (1 << 2) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
6869
|
-
|
|
6982
|
+
let video = flags & (1 << 4) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
6983
|
+
return new Raw.MessageMediaPhoto({
|
|
6984
|
+
spoiler: spoiler,
|
|
6985
|
+
livePhoto: livePhoto,
|
|
6986
|
+
photo: photo,
|
|
6987
|
+
ttlSeconds: ttlSeconds,
|
|
6988
|
+
video: video,
|
|
6989
|
+
});
|
|
6870
6990
|
}
|
|
6871
6991
|
write() {
|
|
6872
6992
|
const b = new deps_js_1.BytesIO();
|
|
6873
6993
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
6874
6994
|
let flags = 0;
|
|
6875
6995
|
flags |= this.spoiler ? 1 << 3 : 0;
|
|
6996
|
+
flags |= this.livePhoto ? 1 << 4 : 0;
|
|
6876
6997
|
flags |= this.photo !== undefined ? 1 << 0 : 0;
|
|
6877
6998
|
flags |= this.ttlSeconds !== undefined ? 1 << 2 : 0;
|
|
6999
|
+
flags |= this.video !== undefined ? 1 << 4 : 0;
|
|
6878
7000
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
6879
7001
|
if (this.photo !== undefined) {
|
|
6880
7002
|
b.write(this.photo.write());
|
|
@@ -6882,6 +7004,9 @@ var Raw;
|
|
|
6882
7004
|
if (this.ttlSeconds !== undefined) {
|
|
6883
7005
|
b.write(index_js_1.Primitive.Int.write(this.ttlSeconds));
|
|
6884
7006
|
}
|
|
7007
|
+
if (this.video !== undefined) {
|
|
7008
|
+
b.write(this.video.write());
|
|
7009
|
+
}
|
|
6885
7010
|
return deps_js_1.Buffer.from(b.buffer);
|
|
6886
7011
|
}
|
|
6887
7012
|
}
|
|
@@ -7380,30 +7505,44 @@ var Raw;
|
|
|
7380
7505
|
class MessageMediaPoll extends index_js_1.TLObject {
|
|
7381
7506
|
poll;
|
|
7382
7507
|
results;
|
|
7508
|
+
attachedMedia;
|
|
7383
7509
|
constructor(params) {
|
|
7384
7510
|
super();
|
|
7385
7511
|
this.classType = 'types';
|
|
7386
7512
|
this.className = 'MessageMediaPoll';
|
|
7387
|
-
this.constructorId =
|
|
7513
|
+
this.constructorId = 0x773f4e66;
|
|
7388
7514
|
this.subclassOfId = 0x476cbe32;
|
|
7389
|
-
this._slots = ['poll', 'results'];
|
|
7515
|
+
this._slots = ['poll', 'results', 'attachedMedia'];
|
|
7390
7516
|
this.poll = params.poll;
|
|
7391
7517
|
this.results = params.results;
|
|
7518
|
+
this.attachedMedia = params.attachedMedia;
|
|
7392
7519
|
}
|
|
7393
7520
|
static async read(_data, ..._args) {
|
|
7521
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
7394
7522
|
let poll = await index_js_1.TLObject.read(_data);
|
|
7395
7523
|
let results = await index_js_1.TLObject.read(_data);
|
|
7396
|
-
|
|
7524
|
+
let attachedMedia = flags & (1 << 0) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
7525
|
+
return new Raw.MessageMediaPoll({
|
|
7526
|
+
poll: poll,
|
|
7527
|
+
results: results,
|
|
7528
|
+
attachedMedia: attachedMedia,
|
|
7529
|
+
});
|
|
7397
7530
|
}
|
|
7398
7531
|
write() {
|
|
7399
7532
|
const b = new deps_js_1.BytesIO();
|
|
7400
7533
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
7534
|
+
let flags = 0;
|
|
7535
|
+
flags |= this.attachedMedia !== undefined ? 1 << 0 : 0;
|
|
7536
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
7401
7537
|
if (this.poll !== undefined) {
|
|
7402
7538
|
b.write(this.poll.write());
|
|
7403
7539
|
}
|
|
7404
7540
|
if (this.results !== undefined) {
|
|
7405
7541
|
b.write(this.results.write());
|
|
7406
7542
|
}
|
|
7543
|
+
if (this.attachedMedia !== undefined) {
|
|
7544
|
+
b.write(this.attachedMedia.write());
|
|
7545
|
+
}
|
|
7407
7546
|
return deps_js_1.Buffer.from(b.buffer);
|
|
7408
7547
|
}
|
|
7409
7548
|
}
|
|
@@ -10395,6 +10534,154 @@ var Raw;
|
|
|
10395
10534
|
}
|
|
10396
10535
|
}
|
|
10397
10536
|
Raw.MessageActionChangeCreator = MessageActionChangeCreator;
|
|
10537
|
+
class MessageActionNoForwardsToggle extends index_js_1.TLObject {
|
|
10538
|
+
prevValue;
|
|
10539
|
+
newValue;
|
|
10540
|
+
constructor(params) {
|
|
10541
|
+
super();
|
|
10542
|
+
this.classType = 'types';
|
|
10543
|
+
this.className = 'MessageActionNoForwardsToggle';
|
|
10544
|
+
this.constructorId = 0xbf7d6572;
|
|
10545
|
+
this.subclassOfId = 0x8680d126;
|
|
10546
|
+
this._slots = ['prevValue', 'newValue'];
|
|
10547
|
+
this.prevValue = params.prevValue;
|
|
10548
|
+
this.newValue = params.newValue;
|
|
10549
|
+
}
|
|
10550
|
+
static async read(_data, ..._args) {
|
|
10551
|
+
let prevValue = await index_js_1.Primitive.Bool.read(_data);
|
|
10552
|
+
let newValue = await index_js_1.Primitive.Bool.read(_data);
|
|
10553
|
+
return new Raw.MessageActionNoForwardsToggle({ prevValue: prevValue, newValue: newValue });
|
|
10554
|
+
}
|
|
10555
|
+
write() {
|
|
10556
|
+
const b = new deps_js_1.BytesIO();
|
|
10557
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
10558
|
+
if (this.prevValue !== undefined) {
|
|
10559
|
+
b.write(index_js_1.Primitive.Bool.write(this.prevValue));
|
|
10560
|
+
}
|
|
10561
|
+
if (this.newValue !== undefined) {
|
|
10562
|
+
b.write(index_js_1.Primitive.Bool.write(this.newValue));
|
|
10563
|
+
}
|
|
10564
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
10565
|
+
}
|
|
10566
|
+
}
|
|
10567
|
+
Raw.MessageActionNoForwardsToggle = MessageActionNoForwardsToggle;
|
|
10568
|
+
class MessageActionNoForwardsRequest extends index_js_1.TLObject {
|
|
10569
|
+
expired;
|
|
10570
|
+
prevValue;
|
|
10571
|
+
newValue;
|
|
10572
|
+
constructor(params) {
|
|
10573
|
+
super();
|
|
10574
|
+
this.classType = 'types';
|
|
10575
|
+
this.className = 'MessageActionNoForwardsRequest';
|
|
10576
|
+
this.constructorId = 0x3e2793ba;
|
|
10577
|
+
this.subclassOfId = 0x8680d126;
|
|
10578
|
+
this._slots = ['expired', 'prevValue', 'newValue'];
|
|
10579
|
+
this.expired = params.expired;
|
|
10580
|
+
this.prevValue = params.prevValue;
|
|
10581
|
+
this.newValue = params.newValue;
|
|
10582
|
+
}
|
|
10583
|
+
static async read(_data, ..._args) {
|
|
10584
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
10585
|
+
let expired = flags & (1 << 0) ? true : false;
|
|
10586
|
+
let prevValue = await index_js_1.Primitive.Bool.read(_data);
|
|
10587
|
+
let newValue = await index_js_1.Primitive.Bool.read(_data);
|
|
10588
|
+
return new Raw.MessageActionNoForwardsRequest({
|
|
10589
|
+
expired: expired,
|
|
10590
|
+
prevValue: prevValue,
|
|
10591
|
+
newValue: newValue,
|
|
10592
|
+
});
|
|
10593
|
+
}
|
|
10594
|
+
write() {
|
|
10595
|
+
const b = new deps_js_1.BytesIO();
|
|
10596
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
10597
|
+
let flags = 0;
|
|
10598
|
+
flags |= this.expired ? 1 << 0 : 0;
|
|
10599
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
10600
|
+
if (this.prevValue !== undefined) {
|
|
10601
|
+
b.write(index_js_1.Primitive.Bool.write(this.prevValue));
|
|
10602
|
+
}
|
|
10603
|
+
if (this.newValue !== undefined) {
|
|
10604
|
+
b.write(index_js_1.Primitive.Bool.write(this.newValue));
|
|
10605
|
+
}
|
|
10606
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
10607
|
+
}
|
|
10608
|
+
}
|
|
10609
|
+
Raw.MessageActionNoForwardsRequest = MessageActionNoForwardsRequest;
|
|
10610
|
+
class MessageActionPollAppendAnswer extends index_js_1.TLObject {
|
|
10611
|
+
answer;
|
|
10612
|
+
constructor(params) {
|
|
10613
|
+
super();
|
|
10614
|
+
this.classType = 'types';
|
|
10615
|
+
this.className = 'MessageActionPollAppendAnswer';
|
|
10616
|
+
this.constructorId = 0x9da1cd6c;
|
|
10617
|
+
this.subclassOfId = 0x8680d126;
|
|
10618
|
+
this._slots = ['answer'];
|
|
10619
|
+
this.answer = params.answer;
|
|
10620
|
+
}
|
|
10621
|
+
static async read(_data, ..._args) {
|
|
10622
|
+
let answer = await index_js_1.TLObject.read(_data);
|
|
10623
|
+
return new Raw.MessageActionPollAppendAnswer({ answer: answer });
|
|
10624
|
+
}
|
|
10625
|
+
write() {
|
|
10626
|
+
const b = new deps_js_1.BytesIO();
|
|
10627
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
10628
|
+
if (this.answer !== undefined) {
|
|
10629
|
+
b.write(this.answer.write());
|
|
10630
|
+
}
|
|
10631
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
10632
|
+
}
|
|
10633
|
+
}
|
|
10634
|
+
Raw.MessageActionPollAppendAnswer = MessageActionPollAppendAnswer;
|
|
10635
|
+
class MessageActionPollDeleteAnswer extends index_js_1.TLObject {
|
|
10636
|
+
answer;
|
|
10637
|
+
constructor(params) {
|
|
10638
|
+
super();
|
|
10639
|
+
this.classType = 'types';
|
|
10640
|
+
this.className = 'MessageActionPollDeleteAnswer';
|
|
10641
|
+
this.constructorId = 0x399674dc;
|
|
10642
|
+
this.subclassOfId = 0x8680d126;
|
|
10643
|
+
this._slots = ['answer'];
|
|
10644
|
+
this.answer = params.answer;
|
|
10645
|
+
}
|
|
10646
|
+
static async read(_data, ..._args) {
|
|
10647
|
+
let answer = await index_js_1.TLObject.read(_data);
|
|
10648
|
+
return new Raw.MessageActionPollDeleteAnswer({ answer: answer });
|
|
10649
|
+
}
|
|
10650
|
+
write() {
|
|
10651
|
+
const b = new deps_js_1.BytesIO();
|
|
10652
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
10653
|
+
if (this.answer !== undefined) {
|
|
10654
|
+
b.write(this.answer.write());
|
|
10655
|
+
}
|
|
10656
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
10657
|
+
}
|
|
10658
|
+
}
|
|
10659
|
+
Raw.MessageActionPollDeleteAnswer = MessageActionPollDeleteAnswer;
|
|
10660
|
+
class MessageActionManagedBotCreated extends index_js_1.TLObject {
|
|
10661
|
+
botId;
|
|
10662
|
+
constructor(params) {
|
|
10663
|
+
super();
|
|
10664
|
+
this.classType = 'types';
|
|
10665
|
+
this.className = 'MessageActionManagedBotCreated';
|
|
10666
|
+
this.constructorId = 0x16605e3e;
|
|
10667
|
+
this.subclassOfId = 0x8680d126;
|
|
10668
|
+
this._slots = ['botId'];
|
|
10669
|
+
this.botId = params.botId;
|
|
10670
|
+
}
|
|
10671
|
+
static async read(_data, ..._args) {
|
|
10672
|
+
let botId = await index_js_1.Primitive.Long.read(_data);
|
|
10673
|
+
return new Raw.MessageActionManagedBotCreated({ botId: botId });
|
|
10674
|
+
}
|
|
10675
|
+
write() {
|
|
10676
|
+
const b = new deps_js_1.BytesIO();
|
|
10677
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
10678
|
+
if (this.botId !== undefined) {
|
|
10679
|
+
b.write(index_js_1.Primitive.Long.write(this.botId));
|
|
10680
|
+
}
|
|
10681
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
10682
|
+
}
|
|
10683
|
+
}
|
|
10684
|
+
Raw.MessageActionManagedBotCreated = MessageActionManagedBotCreated;
|
|
10398
10685
|
class Dialog extends index_js_1.TLObject {
|
|
10399
10686
|
pinned;
|
|
10400
10687
|
unreadMark;
|
|
@@ -10406,6 +10693,7 @@ var Raw;
|
|
|
10406
10693
|
unreadCount;
|
|
10407
10694
|
unreadMentionsCount;
|
|
10408
10695
|
unreadReactionsCount;
|
|
10696
|
+
unreadPollVotesCount;
|
|
10409
10697
|
notifySettings;
|
|
10410
10698
|
pts;
|
|
10411
10699
|
draft;
|
|
@@ -10415,7 +10703,7 @@ var Raw;
|
|
|
10415
10703
|
super();
|
|
10416
10704
|
this.classType = 'types';
|
|
10417
10705
|
this.className = 'Dialog';
|
|
10418
|
-
this.constructorId =
|
|
10706
|
+
this.constructorId = 0xfc89f7f3;
|
|
10419
10707
|
this.subclassOfId = 0x42cddd54;
|
|
10420
10708
|
this._slots = [
|
|
10421
10709
|
'pinned',
|
|
@@ -10428,6 +10716,7 @@ var Raw;
|
|
|
10428
10716
|
'unreadCount',
|
|
10429
10717
|
'unreadMentionsCount',
|
|
10430
10718
|
'unreadReactionsCount',
|
|
10719
|
+
'unreadPollVotesCount',
|
|
10431
10720
|
'notifySettings',
|
|
10432
10721
|
'pts',
|
|
10433
10722
|
'draft',
|
|
@@ -10444,6 +10733,7 @@ var Raw;
|
|
|
10444
10733
|
this.unreadCount = params.unreadCount;
|
|
10445
10734
|
this.unreadMentionsCount = params.unreadMentionsCount;
|
|
10446
10735
|
this.unreadReactionsCount = params.unreadReactionsCount;
|
|
10736
|
+
this.unreadPollVotesCount = params.unreadPollVotesCount;
|
|
10447
10737
|
this.notifySettings = params.notifySettings;
|
|
10448
10738
|
this.pts = params.pts;
|
|
10449
10739
|
this.draft = params.draft;
|
|
@@ -10462,6 +10752,7 @@ var Raw;
|
|
|
10462
10752
|
let unreadCount = await index_js_1.Primitive.Int.read(_data);
|
|
10463
10753
|
let unreadMentionsCount = await index_js_1.Primitive.Int.read(_data);
|
|
10464
10754
|
let unreadReactionsCount = await index_js_1.Primitive.Int.read(_data);
|
|
10755
|
+
let unreadPollVotesCount = await index_js_1.Primitive.Int.read(_data);
|
|
10465
10756
|
let notifySettings = await index_js_1.TLObject.read(_data);
|
|
10466
10757
|
let pts = flags & (1 << 0) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
10467
10758
|
let draft = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
@@ -10478,6 +10769,7 @@ var Raw;
|
|
|
10478
10769
|
unreadCount: unreadCount,
|
|
10479
10770
|
unreadMentionsCount: unreadMentionsCount,
|
|
10480
10771
|
unreadReactionsCount: unreadReactionsCount,
|
|
10772
|
+
unreadPollVotesCount: unreadPollVotesCount,
|
|
10481
10773
|
notifySettings: notifySettings,
|
|
10482
10774
|
pts: pts,
|
|
10483
10775
|
draft: draft,
|
|
@@ -10518,6 +10810,9 @@ var Raw;
|
|
|
10518
10810
|
if (this.unreadReactionsCount !== undefined) {
|
|
10519
10811
|
b.write(index_js_1.Primitive.Int.write(this.unreadReactionsCount));
|
|
10520
10812
|
}
|
|
10813
|
+
if (this.unreadPollVotesCount !== undefined) {
|
|
10814
|
+
b.write(index_js_1.Primitive.Int.write(this.unreadPollVotesCount));
|
|
10815
|
+
}
|
|
10521
10816
|
if (this.notifySettings !== undefined) {
|
|
10522
10817
|
b.write(this.notifySettings.write());
|
|
10523
10818
|
}
|
|
@@ -11865,6 +12160,9 @@ var Raw;
|
|
|
11865
12160
|
canViewRevenue;
|
|
11866
12161
|
botCanManageEmojiStatus;
|
|
11867
12162
|
displayGiftsButton;
|
|
12163
|
+
noforwardsMyEnabled;
|
|
12164
|
+
noforwardsPeerEnabled;
|
|
12165
|
+
unofficialSecurityRisk;
|
|
11868
12166
|
id;
|
|
11869
12167
|
about;
|
|
11870
12168
|
settings;
|
|
@@ -11902,11 +12200,12 @@ var Raw;
|
|
|
11902
12200
|
mainTab;
|
|
11903
12201
|
savedMusic;
|
|
11904
12202
|
note;
|
|
12203
|
+
botManagerId;
|
|
11905
12204
|
constructor(params) {
|
|
11906
12205
|
super();
|
|
11907
12206
|
this.classType = 'types';
|
|
11908
12207
|
this.className = 'UserFull';
|
|
11909
|
-
this.constructorId =
|
|
12208
|
+
this.constructorId = 0x6cbe645;
|
|
11910
12209
|
this.subclassOfId = 0x1f4661b9;
|
|
11911
12210
|
this._slots = [
|
|
11912
12211
|
'blocked',
|
|
@@ -11926,6 +12225,9 @@ var Raw;
|
|
|
11926
12225
|
'canViewRevenue',
|
|
11927
12226
|
'botCanManageEmojiStatus',
|
|
11928
12227
|
'displayGiftsButton',
|
|
12228
|
+
'noforwardsMyEnabled',
|
|
12229
|
+
'noforwardsPeerEnabled',
|
|
12230
|
+
'unofficialSecurityRisk',
|
|
11929
12231
|
'id',
|
|
11930
12232
|
'about',
|
|
11931
12233
|
'settings',
|
|
@@ -11963,6 +12265,7 @@ var Raw;
|
|
|
11963
12265
|
'mainTab',
|
|
11964
12266
|
'savedMusic',
|
|
11965
12267
|
'note',
|
|
12268
|
+
'botManagerId',
|
|
11966
12269
|
];
|
|
11967
12270
|
this.blocked = params.blocked;
|
|
11968
12271
|
this.phoneCallsAvailable = params.phoneCallsAvailable;
|
|
@@ -11981,6 +12284,9 @@ var Raw;
|
|
|
11981
12284
|
this.canViewRevenue = params.canViewRevenue;
|
|
11982
12285
|
this.botCanManageEmojiStatus = params.botCanManageEmojiStatus;
|
|
11983
12286
|
this.displayGiftsButton = params.displayGiftsButton;
|
|
12287
|
+
this.noforwardsMyEnabled = params.noforwardsMyEnabled;
|
|
12288
|
+
this.noforwardsPeerEnabled = params.noforwardsPeerEnabled;
|
|
12289
|
+
this.unofficialSecurityRisk = params.unofficialSecurityRisk;
|
|
11984
12290
|
this.id = params.id;
|
|
11985
12291
|
this.about = params.about;
|
|
11986
12292
|
this.settings = params.settings;
|
|
@@ -12018,6 +12324,7 @@ var Raw;
|
|
|
12018
12324
|
this.mainTab = params.mainTab;
|
|
12019
12325
|
this.savedMusic = params.savedMusic;
|
|
12020
12326
|
this.note = params.note;
|
|
12327
|
+
this.botManagerId = params.botManagerId;
|
|
12021
12328
|
}
|
|
12022
12329
|
static async read(_data, ..._args) {
|
|
12023
12330
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -12039,6 +12346,9 @@ var Raw;
|
|
|
12039
12346
|
let canViewRevenue = flags2 & (1 << 9) ? true : false;
|
|
12040
12347
|
let botCanManageEmojiStatus = flags2 & (1 << 10) ? true : false;
|
|
12041
12348
|
let displayGiftsButton = flags2 & (1 << 16) ? true : false;
|
|
12349
|
+
let noforwardsMyEnabled = flags2 & (1 << 23) ? true : false;
|
|
12350
|
+
let noforwardsPeerEnabled = flags2 & (1 << 24) ? true : false;
|
|
12351
|
+
let unofficialSecurityRisk = flags2 & (1 << 26) ? true : false;
|
|
12042
12352
|
let id = await index_js_1.Primitive.Long.read(_data);
|
|
12043
12353
|
let about = flags & (1 << 1) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
12044
12354
|
let settings = await index_js_1.TLObject.read(_data);
|
|
@@ -12076,6 +12386,7 @@ var Raw;
|
|
|
12076
12386
|
let mainTab = flags2 & (1 << 20) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
12077
12387
|
let savedMusic = flags2 & (1 << 21) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
12078
12388
|
let note = flags2 & (1 << 22) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
12389
|
+
let botManagerId = flags2 & (1 << 25) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
12079
12390
|
return new Raw.UserFull({
|
|
12080
12391
|
blocked: blocked,
|
|
12081
12392
|
phoneCallsAvailable: phoneCallsAvailable,
|
|
@@ -12094,6 +12405,9 @@ var Raw;
|
|
|
12094
12405
|
canViewRevenue: canViewRevenue,
|
|
12095
12406
|
botCanManageEmojiStatus: botCanManageEmojiStatus,
|
|
12096
12407
|
displayGiftsButton: displayGiftsButton,
|
|
12408
|
+
noforwardsMyEnabled: noforwardsMyEnabled,
|
|
12409
|
+
noforwardsPeerEnabled: noforwardsPeerEnabled,
|
|
12410
|
+
unofficialSecurityRisk: unofficialSecurityRisk,
|
|
12097
12411
|
id: id,
|
|
12098
12412
|
about: about,
|
|
12099
12413
|
settings: settings,
|
|
@@ -12131,6 +12445,7 @@ var Raw;
|
|
|
12131
12445
|
mainTab: mainTab,
|
|
12132
12446
|
savedMusic: savedMusic,
|
|
12133
12447
|
note: note,
|
|
12448
|
+
botManagerId: botManagerId,
|
|
12134
12449
|
});
|
|
12135
12450
|
}
|
|
12136
12451
|
write() {
|
|
@@ -12170,6 +12485,9 @@ var Raw;
|
|
|
12170
12485
|
flags2 |= this.canViewRevenue ? 1 << 9 : 0;
|
|
12171
12486
|
flags2 |= this.botCanManageEmojiStatus ? 1 << 10 : 0;
|
|
12172
12487
|
flags2 |= this.displayGiftsButton ? 1 << 16 : 0;
|
|
12488
|
+
flags2 |= this.noforwardsMyEnabled ? 1 << 23 : 0;
|
|
12489
|
+
flags2 |= this.noforwardsPeerEnabled ? 1 << 24 : 0;
|
|
12490
|
+
flags2 |= this.unofficialSecurityRisk ? 1 << 26 : 0;
|
|
12173
12491
|
flags2 |= this.businessWorkHours !== undefined ? 1 << 0 : 0;
|
|
12174
12492
|
flags2 |= this.businessLocation !== undefined ? 1 << 1 : 0;
|
|
12175
12493
|
flags2 |= this.businessGreetingMessage !== undefined ? 1 << 2 : 0;
|
|
@@ -12189,6 +12507,7 @@ var Raw;
|
|
|
12189
12507
|
flags2 |= this.mainTab !== undefined ? 1 << 20 : 0;
|
|
12190
12508
|
flags2 |= this.savedMusic !== undefined ? 1 << 21 : 0;
|
|
12191
12509
|
flags2 |= this.note !== undefined ? 1 << 22 : 0;
|
|
12510
|
+
flags2 |= this.botManagerId !== undefined ? 1 << 25 : 0;
|
|
12192
12511
|
b.write(index_js_1.Primitive.Int.write(flags2));
|
|
12193
12512
|
if (this.id !== undefined) {
|
|
12194
12513
|
b.write(index_js_1.Primitive.Long.write(this.id));
|
|
@@ -12301,6 +12620,9 @@ var Raw;
|
|
|
12301
12620
|
if (this.note !== undefined) {
|
|
12302
12621
|
b.write(this.note.write());
|
|
12303
12622
|
}
|
|
12623
|
+
if (this.botManagerId !== undefined) {
|
|
12624
|
+
b.write(index_js_1.Primitive.Long.write(this.botManagerId));
|
|
12625
|
+
}
|
|
12304
12626
|
return deps_js_1.Buffer.from(b.buffer);
|
|
12305
12627
|
}
|
|
12306
12628
|
}
|
|
@@ -12728,6 +13050,25 @@ var Raw;
|
|
|
12728
13050
|
}
|
|
12729
13051
|
}
|
|
12730
13052
|
Raw.InputMessagesFilterPinned = InputMessagesFilterPinned;
|
|
13053
|
+
class InputMessagesFilterPoll extends index_js_1.TLObject {
|
|
13054
|
+
constructor() {
|
|
13055
|
+
super();
|
|
13056
|
+
this.classType = 'types';
|
|
13057
|
+
this.className = 'InputMessagesFilterPoll';
|
|
13058
|
+
this.constructorId = 0xfa2bc90a;
|
|
13059
|
+
this.subclassOfId = 0x8a36ec14;
|
|
13060
|
+
this._slots = [];
|
|
13061
|
+
}
|
|
13062
|
+
static async read(_data, ..._args) {
|
|
13063
|
+
return new Raw.InputMessagesFilterPoll();
|
|
13064
|
+
}
|
|
13065
|
+
write() {
|
|
13066
|
+
const b = new deps_js_1.BytesIO();
|
|
13067
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
13068
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
13069
|
+
}
|
|
13070
|
+
}
|
|
13071
|
+
Raw.InputMessagesFilterPoll = InputMessagesFilterPoll;
|
|
12731
13072
|
class UpdateNewMessage extends index_js_1.TLObject {
|
|
12732
13073
|
message;
|
|
12733
13074
|
pts;
|
|
@@ -15160,6 +15501,9 @@ var Raw;
|
|
|
15160
15501
|
}
|
|
15161
15502
|
Raw.UpdateDialogUnreadMark = UpdateDialogUnreadMark;
|
|
15162
15503
|
class UpdateMessagePoll extends index_js_1.TLObject {
|
|
15504
|
+
peer;
|
|
15505
|
+
msgId;
|
|
15506
|
+
topMsgId;
|
|
15163
15507
|
pollId;
|
|
15164
15508
|
poll;
|
|
15165
15509
|
results;
|
|
@@ -15167,26 +15511,51 @@ var Raw;
|
|
|
15167
15511
|
super();
|
|
15168
15512
|
this.classType = 'types';
|
|
15169
15513
|
this.className = 'UpdateMessagePoll';
|
|
15170
|
-
this.constructorId =
|
|
15514
|
+
this.constructorId = 0xd64c522b;
|
|
15171
15515
|
this.subclassOfId = 0x9f89304e;
|
|
15172
|
-
this._slots = ['pollId', 'poll', 'results'];
|
|
15516
|
+
this._slots = ['peer', 'msgId', 'topMsgId', 'pollId', 'poll', 'results'];
|
|
15517
|
+
this.peer = params.peer;
|
|
15518
|
+
this.msgId = params.msgId;
|
|
15519
|
+
this.topMsgId = params.topMsgId;
|
|
15173
15520
|
this.pollId = params.pollId;
|
|
15174
15521
|
this.poll = params.poll;
|
|
15175
15522
|
this.results = params.results;
|
|
15176
15523
|
}
|
|
15177
15524
|
static async read(_data, ..._args) {
|
|
15178
15525
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
15526
|
+
let peer = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
15527
|
+
let msgId = flags & (1 << 1) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
15528
|
+
let topMsgId = flags & (1 << 2) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
15179
15529
|
let pollId = await index_js_1.Primitive.Long.read(_data);
|
|
15180
15530
|
let poll = flags & (1 << 0) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
15181
15531
|
let results = await index_js_1.TLObject.read(_data);
|
|
15182
|
-
return new Raw.UpdateMessagePoll({
|
|
15532
|
+
return new Raw.UpdateMessagePoll({
|
|
15533
|
+
peer: peer,
|
|
15534
|
+
msgId: msgId,
|
|
15535
|
+
topMsgId: topMsgId,
|
|
15536
|
+
pollId: pollId,
|
|
15537
|
+
poll: poll,
|
|
15538
|
+
results: results,
|
|
15539
|
+
});
|
|
15183
15540
|
}
|
|
15184
15541
|
write() {
|
|
15185
15542
|
const b = new deps_js_1.BytesIO();
|
|
15186
15543
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
15187
15544
|
let flags = 0;
|
|
15545
|
+
flags |= this.peer !== undefined ? 1 << 1 : 0;
|
|
15546
|
+
flags |= this.msgId !== undefined ? 1 << 1 : 0;
|
|
15547
|
+
flags |= this.topMsgId !== undefined ? 1 << 2 : 0;
|
|
15188
15548
|
flags |= this.poll !== undefined ? 1 << 0 : 0;
|
|
15189
15549
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
15550
|
+
if (this.peer !== undefined) {
|
|
15551
|
+
b.write(this.peer.write());
|
|
15552
|
+
}
|
|
15553
|
+
if (this.msgId !== undefined) {
|
|
15554
|
+
b.write(index_js_1.Primitive.Int.write(this.msgId));
|
|
15555
|
+
}
|
|
15556
|
+
if (this.topMsgId !== undefined) {
|
|
15557
|
+
b.write(index_js_1.Primitive.Int.write(this.topMsgId));
|
|
15558
|
+
}
|
|
15190
15559
|
if (this.pollId !== undefined) {
|
|
15191
15560
|
b.write(index_js_1.Primitive.Long.write(this.pollId));
|
|
15192
15561
|
}
|
|
@@ -15483,28 +15852,32 @@ var Raw;
|
|
|
15483
15852
|
pollId;
|
|
15484
15853
|
peer;
|
|
15485
15854
|
options;
|
|
15855
|
+
positions;
|
|
15486
15856
|
qts;
|
|
15487
15857
|
constructor(params) {
|
|
15488
15858
|
super();
|
|
15489
15859
|
this.classType = 'types';
|
|
15490
15860
|
this.className = 'UpdateMessagePollVote';
|
|
15491
|
-
this.constructorId =
|
|
15861
|
+
this.constructorId = 0x7699f014;
|
|
15492
15862
|
this.subclassOfId = 0x9f89304e;
|
|
15493
|
-
this._slots = ['pollId', 'peer', 'options', 'qts'];
|
|
15863
|
+
this._slots = ['pollId', 'peer', 'options', 'positions', 'qts'];
|
|
15494
15864
|
this.pollId = params.pollId;
|
|
15495
15865
|
this.peer = params.peer;
|
|
15496
15866
|
this.options = params.options;
|
|
15867
|
+
this.positions = params.positions;
|
|
15497
15868
|
this.qts = params.qts;
|
|
15498
15869
|
}
|
|
15499
15870
|
static async read(_data, ..._args) {
|
|
15500
15871
|
let pollId = await index_js_1.Primitive.Long.read(_data);
|
|
15501
15872
|
let peer = await index_js_1.TLObject.read(_data);
|
|
15502
15873
|
let options = await index_js_1.TLObject.read(_data, index_js_1.Primitive.Bytes);
|
|
15874
|
+
let positions = await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int);
|
|
15503
15875
|
let qts = await index_js_1.Primitive.Int.read(_data);
|
|
15504
15876
|
return new Raw.UpdateMessagePollVote({
|
|
15505
15877
|
pollId: pollId,
|
|
15506
15878
|
peer: peer,
|
|
15507
15879
|
options: options,
|
|
15880
|
+
positions: positions,
|
|
15508
15881
|
qts: qts,
|
|
15509
15882
|
});
|
|
15510
15883
|
}
|
|
@@ -15520,6 +15893,9 @@ var Raw;
|
|
|
15520
15893
|
if (this.options) {
|
|
15521
15894
|
b.write(index_js_1.Primitive.Vector.write(this.options, index_js_1.Primitive.Bytes));
|
|
15522
15895
|
}
|
|
15896
|
+
if (this.positions) {
|
|
15897
|
+
b.write(index_js_1.Primitive.Vector.write(this.positions, index_js_1.Primitive.Int));
|
|
15898
|
+
}
|
|
15523
15899
|
if (this.qts !== undefined) {
|
|
15524
15900
|
b.write(index_js_1.Primitive.Int.write(this.qts));
|
|
15525
15901
|
}
|
|
@@ -18474,6 +18850,91 @@ var Raw;
|
|
|
18474
18850
|
}
|
|
18475
18851
|
}
|
|
18476
18852
|
Raw.UpdateStarGiftCraftFail = UpdateStarGiftCraftFail;
|
|
18853
|
+
class UpdateChatParticipantRank extends index_js_1.TLObject {
|
|
18854
|
+
chatId;
|
|
18855
|
+
userId;
|
|
18856
|
+
rank;
|
|
18857
|
+
version;
|
|
18858
|
+
constructor(params) {
|
|
18859
|
+
super();
|
|
18860
|
+
this.classType = 'types';
|
|
18861
|
+
this.className = 'UpdateChatParticipantRank';
|
|
18862
|
+
this.constructorId = 0xbd8367b9;
|
|
18863
|
+
this.subclassOfId = 0x9f89304e;
|
|
18864
|
+
this._slots = ['chatId', 'userId', 'rank', 'version'];
|
|
18865
|
+
this.chatId = params.chatId;
|
|
18866
|
+
this.userId = params.userId;
|
|
18867
|
+
this.rank = params.rank;
|
|
18868
|
+
this.version = params.version;
|
|
18869
|
+
}
|
|
18870
|
+
static async read(_data, ..._args) {
|
|
18871
|
+
let chatId = await index_js_1.Primitive.Long.read(_data);
|
|
18872
|
+
let userId = await index_js_1.Primitive.Long.read(_data);
|
|
18873
|
+
let rank = await index_js_1.Primitive.String.read(_data);
|
|
18874
|
+
let version = await index_js_1.Primitive.Int.read(_data);
|
|
18875
|
+
return new Raw.UpdateChatParticipantRank({
|
|
18876
|
+
chatId: chatId,
|
|
18877
|
+
userId: userId,
|
|
18878
|
+
rank: rank,
|
|
18879
|
+
version: version,
|
|
18880
|
+
});
|
|
18881
|
+
}
|
|
18882
|
+
write() {
|
|
18883
|
+
const b = new deps_js_1.BytesIO();
|
|
18884
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
18885
|
+
if (this.chatId !== undefined) {
|
|
18886
|
+
b.write(index_js_1.Primitive.Long.write(this.chatId));
|
|
18887
|
+
}
|
|
18888
|
+
if (this.userId !== undefined) {
|
|
18889
|
+
b.write(index_js_1.Primitive.Long.write(this.userId));
|
|
18890
|
+
}
|
|
18891
|
+
if (this.rank !== undefined) {
|
|
18892
|
+
b.write(index_js_1.Primitive.String.write(this.rank));
|
|
18893
|
+
}
|
|
18894
|
+
if (this.version !== undefined) {
|
|
18895
|
+
b.write(index_js_1.Primitive.Int.write(this.version));
|
|
18896
|
+
}
|
|
18897
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
18898
|
+
}
|
|
18899
|
+
}
|
|
18900
|
+
Raw.UpdateChatParticipantRank = UpdateChatParticipantRank;
|
|
18901
|
+
class UpdateManagedBot extends index_js_1.TLObject {
|
|
18902
|
+
userId;
|
|
18903
|
+
botId;
|
|
18904
|
+
qts;
|
|
18905
|
+
constructor(params) {
|
|
18906
|
+
super();
|
|
18907
|
+
this.classType = 'types';
|
|
18908
|
+
this.className = 'UpdateManagedBot';
|
|
18909
|
+
this.constructorId = 0x4880ed9a;
|
|
18910
|
+
this.subclassOfId = 0x9f89304e;
|
|
18911
|
+
this._slots = ['userId', 'botId', 'qts'];
|
|
18912
|
+
this.userId = params.userId;
|
|
18913
|
+
this.botId = params.botId;
|
|
18914
|
+
this.qts = params.qts;
|
|
18915
|
+
}
|
|
18916
|
+
static async read(_data, ..._args) {
|
|
18917
|
+
let userId = await index_js_1.Primitive.Long.read(_data);
|
|
18918
|
+
let botId = await index_js_1.Primitive.Long.read(_data);
|
|
18919
|
+
let qts = await index_js_1.Primitive.Int.read(_data);
|
|
18920
|
+
return new Raw.UpdateManagedBot({ userId: userId, botId: botId, qts: qts });
|
|
18921
|
+
}
|
|
18922
|
+
write() {
|
|
18923
|
+
const b = new deps_js_1.BytesIO();
|
|
18924
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
18925
|
+
if (this.userId !== undefined) {
|
|
18926
|
+
b.write(index_js_1.Primitive.Long.write(this.userId));
|
|
18927
|
+
}
|
|
18928
|
+
if (this.botId !== undefined) {
|
|
18929
|
+
b.write(index_js_1.Primitive.Long.write(this.botId));
|
|
18930
|
+
}
|
|
18931
|
+
if (this.qts !== undefined) {
|
|
18932
|
+
b.write(index_js_1.Primitive.Int.write(this.qts));
|
|
18933
|
+
}
|
|
18934
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
18935
|
+
}
|
|
18936
|
+
}
|
|
18937
|
+
Raw.UpdateManagedBot = UpdateManagedBot;
|
|
18477
18938
|
class UpdatesTooLong extends index_js_1.TLObject {
|
|
18478
18939
|
constructor() {
|
|
18479
18940
|
super();
|
|
@@ -25447,6 +25908,189 @@ var Raw;
|
|
|
25447
25908
|
}
|
|
25448
25909
|
}
|
|
25449
25910
|
Raw.MessageEntityBlockquote = MessageEntityBlockquote;
|
|
25911
|
+
class MessageEntityFormattedDate extends index_js_1.TLObject {
|
|
25912
|
+
relative;
|
|
25913
|
+
shortTime;
|
|
25914
|
+
longTime;
|
|
25915
|
+
shortDate;
|
|
25916
|
+
longDate;
|
|
25917
|
+
dayOfWeek;
|
|
25918
|
+
offset;
|
|
25919
|
+
length;
|
|
25920
|
+
date;
|
|
25921
|
+
constructor(params) {
|
|
25922
|
+
super();
|
|
25923
|
+
this.classType = 'types';
|
|
25924
|
+
this.className = 'MessageEntityFormattedDate';
|
|
25925
|
+
this.constructorId = 0x904ac7c7;
|
|
25926
|
+
this.subclassOfId = 0xcf6419dc;
|
|
25927
|
+
this._slots = [
|
|
25928
|
+
'relative',
|
|
25929
|
+
'shortTime',
|
|
25930
|
+
'longTime',
|
|
25931
|
+
'shortDate',
|
|
25932
|
+
'longDate',
|
|
25933
|
+
'dayOfWeek',
|
|
25934
|
+
'offset',
|
|
25935
|
+
'length',
|
|
25936
|
+
'date',
|
|
25937
|
+
];
|
|
25938
|
+
this.relative = params.relative;
|
|
25939
|
+
this.shortTime = params.shortTime;
|
|
25940
|
+
this.longTime = params.longTime;
|
|
25941
|
+
this.shortDate = params.shortDate;
|
|
25942
|
+
this.longDate = params.longDate;
|
|
25943
|
+
this.dayOfWeek = params.dayOfWeek;
|
|
25944
|
+
this.offset = params.offset;
|
|
25945
|
+
this.length = params.length;
|
|
25946
|
+
this.date = params.date;
|
|
25947
|
+
}
|
|
25948
|
+
static async read(_data, ..._args) {
|
|
25949
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
25950
|
+
let relative = flags & (1 << 0) ? true : false;
|
|
25951
|
+
let shortTime = flags & (1 << 1) ? true : false;
|
|
25952
|
+
let longTime = flags & (1 << 2) ? true : false;
|
|
25953
|
+
let shortDate = flags & (1 << 3) ? true : false;
|
|
25954
|
+
let longDate = flags & (1 << 4) ? true : false;
|
|
25955
|
+
let dayOfWeek = flags & (1 << 5) ? true : false;
|
|
25956
|
+
let offset = await index_js_1.Primitive.Int.read(_data);
|
|
25957
|
+
let length = await index_js_1.Primitive.Int.read(_data);
|
|
25958
|
+
let date = await index_js_1.Primitive.Int.read(_data);
|
|
25959
|
+
return new Raw.MessageEntityFormattedDate({
|
|
25960
|
+
relative: relative,
|
|
25961
|
+
shortTime: shortTime,
|
|
25962
|
+
longTime: longTime,
|
|
25963
|
+
shortDate: shortDate,
|
|
25964
|
+
longDate: longDate,
|
|
25965
|
+
dayOfWeek: dayOfWeek,
|
|
25966
|
+
offset: offset,
|
|
25967
|
+
length: length,
|
|
25968
|
+
date: date,
|
|
25969
|
+
});
|
|
25970
|
+
}
|
|
25971
|
+
write() {
|
|
25972
|
+
const b = new deps_js_1.BytesIO();
|
|
25973
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
25974
|
+
let flags = 0;
|
|
25975
|
+
flags |= this.relative ? 1 << 0 : 0;
|
|
25976
|
+
flags |= this.shortTime ? 1 << 1 : 0;
|
|
25977
|
+
flags |= this.longTime ? 1 << 2 : 0;
|
|
25978
|
+
flags |= this.shortDate ? 1 << 3 : 0;
|
|
25979
|
+
flags |= this.longDate ? 1 << 4 : 0;
|
|
25980
|
+
flags |= this.dayOfWeek ? 1 << 5 : 0;
|
|
25981
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
25982
|
+
if (this.offset !== undefined) {
|
|
25983
|
+
b.write(index_js_1.Primitive.Int.write(this.offset));
|
|
25984
|
+
}
|
|
25985
|
+
if (this.length !== undefined) {
|
|
25986
|
+
b.write(index_js_1.Primitive.Int.write(this.length));
|
|
25987
|
+
}
|
|
25988
|
+
if (this.date !== undefined) {
|
|
25989
|
+
b.write(index_js_1.Primitive.Int.write(this.date));
|
|
25990
|
+
}
|
|
25991
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
25992
|
+
}
|
|
25993
|
+
}
|
|
25994
|
+
Raw.MessageEntityFormattedDate = MessageEntityFormattedDate;
|
|
25995
|
+
class MessageEntityDiffInsert extends index_js_1.TLObject {
|
|
25996
|
+
offset;
|
|
25997
|
+
length;
|
|
25998
|
+
constructor(params) {
|
|
25999
|
+
super();
|
|
26000
|
+
this.classType = 'types';
|
|
26001
|
+
this.className = 'MessageEntityDiffInsert';
|
|
26002
|
+
this.constructorId = 0x71777116;
|
|
26003
|
+
this.subclassOfId = 0xcf6419dc;
|
|
26004
|
+
this._slots = ['offset', 'length'];
|
|
26005
|
+
this.offset = params.offset;
|
|
26006
|
+
this.length = params.length;
|
|
26007
|
+
}
|
|
26008
|
+
static async read(_data, ..._args) {
|
|
26009
|
+
let offset = await index_js_1.Primitive.Int.read(_data);
|
|
26010
|
+
let length = await index_js_1.Primitive.Int.read(_data);
|
|
26011
|
+
return new Raw.MessageEntityDiffInsert({ offset: offset, length: length });
|
|
26012
|
+
}
|
|
26013
|
+
write() {
|
|
26014
|
+
const b = new deps_js_1.BytesIO();
|
|
26015
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
26016
|
+
if (this.offset !== undefined) {
|
|
26017
|
+
b.write(index_js_1.Primitive.Int.write(this.offset));
|
|
26018
|
+
}
|
|
26019
|
+
if (this.length !== undefined) {
|
|
26020
|
+
b.write(index_js_1.Primitive.Int.write(this.length));
|
|
26021
|
+
}
|
|
26022
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
26023
|
+
}
|
|
26024
|
+
}
|
|
26025
|
+
Raw.MessageEntityDiffInsert = MessageEntityDiffInsert;
|
|
26026
|
+
class MessageEntityDiffReplace extends index_js_1.TLObject {
|
|
26027
|
+
offset;
|
|
26028
|
+
length;
|
|
26029
|
+
oldText;
|
|
26030
|
+
constructor(params) {
|
|
26031
|
+
super();
|
|
26032
|
+
this.classType = 'types';
|
|
26033
|
+
this.className = 'MessageEntityDiffReplace';
|
|
26034
|
+
this.constructorId = 0xc6c1e5a7;
|
|
26035
|
+
this.subclassOfId = 0xcf6419dc;
|
|
26036
|
+
this._slots = ['offset', 'length', 'oldText'];
|
|
26037
|
+
this.offset = params.offset;
|
|
26038
|
+
this.length = params.length;
|
|
26039
|
+
this.oldText = params.oldText;
|
|
26040
|
+
}
|
|
26041
|
+
static async read(_data, ..._args) {
|
|
26042
|
+
let offset = await index_js_1.Primitive.Int.read(_data);
|
|
26043
|
+
let length = await index_js_1.Primitive.Int.read(_data);
|
|
26044
|
+
let oldText = await index_js_1.Primitive.String.read(_data);
|
|
26045
|
+
return new Raw.MessageEntityDiffReplace({ offset: offset, length: length, oldText: oldText });
|
|
26046
|
+
}
|
|
26047
|
+
write() {
|
|
26048
|
+
const b = new deps_js_1.BytesIO();
|
|
26049
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
26050
|
+
if (this.offset !== undefined) {
|
|
26051
|
+
b.write(index_js_1.Primitive.Int.write(this.offset));
|
|
26052
|
+
}
|
|
26053
|
+
if (this.length !== undefined) {
|
|
26054
|
+
b.write(index_js_1.Primitive.Int.write(this.length));
|
|
26055
|
+
}
|
|
26056
|
+
if (this.oldText !== undefined) {
|
|
26057
|
+
b.write(index_js_1.Primitive.String.write(this.oldText));
|
|
26058
|
+
}
|
|
26059
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
26060
|
+
}
|
|
26061
|
+
}
|
|
26062
|
+
Raw.MessageEntityDiffReplace = MessageEntityDiffReplace;
|
|
26063
|
+
class MessageEntityDiffDelete extends index_js_1.TLObject {
|
|
26064
|
+
offset;
|
|
26065
|
+
length;
|
|
26066
|
+
constructor(params) {
|
|
26067
|
+
super();
|
|
26068
|
+
this.classType = 'types';
|
|
26069
|
+
this.className = 'MessageEntityDiffDelete';
|
|
26070
|
+
this.constructorId = 0x652c1c5;
|
|
26071
|
+
this.subclassOfId = 0xcf6419dc;
|
|
26072
|
+
this._slots = ['offset', 'length'];
|
|
26073
|
+
this.offset = params.offset;
|
|
26074
|
+
this.length = params.length;
|
|
26075
|
+
}
|
|
26076
|
+
static async read(_data, ..._args) {
|
|
26077
|
+
let offset = await index_js_1.Primitive.Int.read(_data);
|
|
26078
|
+
let length = await index_js_1.Primitive.Int.read(_data);
|
|
26079
|
+
return new Raw.MessageEntityDiffDelete({ offset: offset, length: length });
|
|
26080
|
+
}
|
|
26081
|
+
write() {
|
|
26082
|
+
const b = new deps_js_1.BytesIO();
|
|
26083
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
26084
|
+
if (this.offset !== undefined) {
|
|
26085
|
+
b.write(index_js_1.Primitive.Int.write(this.offset));
|
|
26086
|
+
}
|
|
26087
|
+
if (this.length !== undefined) {
|
|
26088
|
+
b.write(index_js_1.Primitive.Int.write(this.length));
|
|
26089
|
+
}
|
|
26090
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
26091
|
+
}
|
|
26092
|
+
}
|
|
26093
|
+
Raw.MessageEntityDiffDelete = MessageEntityDiffDelete;
|
|
25450
26094
|
class InputChannelEmpty extends index_js_1.TLObject {
|
|
25451
26095
|
constructor() {
|
|
25452
26096
|
super();
|
|
@@ -25623,26 +26267,30 @@ var Raw;
|
|
|
25623
26267
|
userId;
|
|
25624
26268
|
date;
|
|
25625
26269
|
subscriptionUntilDate;
|
|
26270
|
+
rank;
|
|
25626
26271
|
constructor(params) {
|
|
25627
26272
|
super();
|
|
25628
26273
|
this.classType = 'types';
|
|
25629
26274
|
this.className = 'ChannelParticipant';
|
|
25630
|
-
this.constructorId =
|
|
26275
|
+
this.constructorId = 0x1bd54456;
|
|
25631
26276
|
this.subclassOfId = 0xd9c7fc18;
|
|
25632
|
-
this._slots = ['userId', 'date', 'subscriptionUntilDate'];
|
|
26277
|
+
this._slots = ['userId', 'date', 'subscriptionUntilDate', 'rank'];
|
|
25633
26278
|
this.userId = params.userId;
|
|
25634
26279
|
this.date = params.date;
|
|
25635
26280
|
this.subscriptionUntilDate = params.subscriptionUntilDate;
|
|
26281
|
+
this.rank = params.rank;
|
|
25636
26282
|
}
|
|
25637
26283
|
static async read(_data, ..._args) {
|
|
25638
26284
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
25639
26285
|
let userId = await index_js_1.Primitive.Long.read(_data);
|
|
25640
26286
|
let date = await index_js_1.Primitive.Int.read(_data);
|
|
25641
26287
|
let subscriptionUntilDate = flags & (1 << 0) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
26288
|
+
let rank = flags & (1 << 2) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
25642
26289
|
return new Raw.ChannelParticipant({
|
|
25643
26290
|
userId: userId,
|
|
25644
26291
|
date: date,
|
|
25645
26292
|
subscriptionUntilDate: subscriptionUntilDate,
|
|
26293
|
+
rank: rank,
|
|
25646
26294
|
});
|
|
25647
26295
|
}
|
|
25648
26296
|
write() {
|
|
@@ -25650,6 +26298,7 @@ var Raw;
|
|
|
25650
26298
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
25651
26299
|
let flags = 0;
|
|
25652
26300
|
flags |= this.subscriptionUntilDate !== undefined ? 1 << 0 : 0;
|
|
26301
|
+
flags |= this.rank !== undefined ? 1 << 2 : 0;
|
|
25653
26302
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
25654
26303
|
if (this.userId !== undefined) {
|
|
25655
26304
|
b.write(index_js_1.Primitive.Long.write(this.userId));
|
|
@@ -25660,6 +26309,9 @@ var Raw;
|
|
|
25660
26309
|
if (this.subscriptionUntilDate !== undefined) {
|
|
25661
26310
|
b.write(index_js_1.Primitive.Int.write(this.subscriptionUntilDate));
|
|
25662
26311
|
}
|
|
26312
|
+
if (this.rank !== undefined) {
|
|
26313
|
+
b.write(index_js_1.Primitive.String.write(this.rank));
|
|
26314
|
+
}
|
|
25663
26315
|
return deps_js_1.Buffer.from(b.buffer);
|
|
25664
26316
|
}
|
|
25665
26317
|
}
|
|
@@ -25670,18 +26322,20 @@ var Raw;
|
|
|
25670
26322
|
inviterId;
|
|
25671
26323
|
date;
|
|
25672
26324
|
subscriptionUntilDate;
|
|
26325
|
+
rank;
|
|
25673
26326
|
constructor(params) {
|
|
25674
26327
|
super();
|
|
25675
26328
|
this.classType = 'types';
|
|
25676
26329
|
this.className = 'ChannelParticipantSelf';
|
|
25677
|
-
this.constructorId =
|
|
26330
|
+
this.constructorId = 0xa9478a1a;
|
|
25678
26331
|
this.subclassOfId = 0xd9c7fc18;
|
|
25679
|
-
this._slots = ['viaRequest', 'userId', 'inviterId', 'date', 'subscriptionUntilDate'];
|
|
26332
|
+
this._slots = ['viaRequest', 'userId', 'inviterId', 'date', 'subscriptionUntilDate', 'rank'];
|
|
25680
26333
|
this.viaRequest = params.viaRequest;
|
|
25681
26334
|
this.userId = params.userId;
|
|
25682
26335
|
this.inviterId = params.inviterId;
|
|
25683
26336
|
this.date = params.date;
|
|
25684
26337
|
this.subscriptionUntilDate = params.subscriptionUntilDate;
|
|
26338
|
+
this.rank = params.rank;
|
|
25685
26339
|
}
|
|
25686
26340
|
static async read(_data, ..._args) {
|
|
25687
26341
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -25690,12 +26344,14 @@ var Raw;
|
|
|
25690
26344
|
let inviterId = await index_js_1.Primitive.Long.read(_data);
|
|
25691
26345
|
let date = await index_js_1.Primitive.Int.read(_data);
|
|
25692
26346
|
let subscriptionUntilDate = flags & (1 << 1) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
26347
|
+
let rank = flags & (1 << 2) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
25693
26348
|
return new Raw.ChannelParticipantSelf({
|
|
25694
26349
|
viaRequest: viaRequest,
|
|
25695
26350
|
userId: userId,
|
|
25696
26351
|
inviterId: inviterId,
|
|
25697
26352
|
date: date,
|
|
25698
26353
|
subscriptionUntilDate: subscriptionUntilDate,
|
|
26354
|
+
rank: rank,
|
|
25699
26355
|
});
|
|
25700
26356
|
}
|
|
25701
26357
|
write() {
|
|
@@ -25704,6 +26360,7 @@ var Raw;
|
|
|
25704
26360
|
let flags = 0;
|
|
25705
26361
|
flags |= this.viaRequest ? 1 << 0 : 0;
|
|
25706
26362
|
flags |= this.subscriptionUntilDate !== undefined ? 1 << 1 : 0;
|
|
26363
|
+
flags |= this.rank !== undefined ? 1 << 2 : 0;
|
|
25707
26364
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
25708
26365
|
if (this.userId !== undefined) {
|
|
25709
26366
|
b.write(index_js_1.Primitive.Long.write(this.userId));
|
|
@@ -25717,6 +26374,9 @@ var Raw;
|
|
|
25717
26374
|
if (this.subscriptionUntilDate !== undefined) {
|
|
25718
26375
|
b.write(index_js_1.Primitive.Int.write(this.subscriptionUntilDate));
|
|
25719
26376
|
}
|
|
26377
|
+
if (this.rank !== undefined) {
|
|
26378
|
+
b.write(index_js_1.Primitive.String.write(this.rank));
|
|
26379
|
+
}
|
|
25720
26380
|
return deps_js_1.Buffer.from(b.buffer);
|
|
25721
26381
|
}
|
|
25722
26382
|
}
|
|
@@ -25858,18 +26518,20 @@ var Raw;
|
|
|
25858
26518
|
kickedBy;
|
|
25859
26519
|
date;
|
|
25860
26520
|
bannedRights;
|
|
26521
|
+
rank;
|
|
25861
26522
|
constructor(params) {
|
|
25862
26523
|
super();
|
|
25863
26524
|
this.classType = 'types';
|
|
25864
26525
|
this.className = 'ChannelParticipantBanned';
|
|
25865
|
-
this.constructorId =
|
|
26526
|
+
this.constructorId = 0xd5f0ad91;
|
|
25866
26527
|
this.subclassOfId = 0xd9c7fc18;
|
|
25867
|
-
this._slots = ['left', 'peer', 'kickedBy', 'date', 'bannedRights'];
|
|
26528
|
+
this._slots = ['left', 'peer', 'kickedBy', 'date', 'bannedRights', 'rank'];
|
|
25868
26529
|
this.left = params.left;
|
|
25869
26530
|
this.peer = params.peer;
|
|
25870
26531
|
this.kickedBy = params.kickedBy;
|
|
25871
26532
|
this.date = params.date;
|
|
25872
26533
|
this.bannedRights = params.bannedRights;
|
|
26534
|
+
this.rank = params.rank;
|
|
25873
26535
|
}
|
|
25874
26536
|
static async read(_data, ..._args) {
|
|
25875
26537
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -25878,12 +26540,14 @@ var Raw;
|
|
|
25878
26540
|
let kickedBy = await index_js_1.Primitive.Long.read(_data);
|
|
25879
26541
|
let date = await index_js_1.Primitive.Int.read(_data);
|
|
25880
26542
|
let bannedRights = await index_js_1.TLObject.read(_data);
|
|
26543
|
+
let rank = flags & (1 << 2) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
25881
26544
|
return new Raw.ChannelParticipantBanned({
|
|
25882
26545
|
left: left,
|
|
25883
26546
|
peer: peer,
|
|
25884
26547
|
kickedBy: kickedBy,
|
|
25885
26548
|
date: date,
|
|
25886
26549
|
bannedRights: bannedRights,
|
|
26550
|
+
rank: rank,
|
|
25887
26551
|
});
|
|
25888
26552
|
}
|
|
25889
26553
|
write() {
|
|
@@ -25891,6 +26555,7 @@ var Raw;
|
|
|
25891
26555
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
25892
26556
|
let flags = 0;
|
|
25893
26557
|
flags |= this.left ? 1 << 0 : 0;
|
|
26558
|
+
flags |= this.rank !== undefined ? 1 << 2 : 0;
|
|
25894
26559
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
25895
26560
|
if (this.peer !== undefined) {
|
|
25896
26561
|
b.write(this.peer.write());
|
|
@@ -25904,6 +26569,9 @@ var Raw;
|
|
|
25904
26569
|
if (this.bannedRights !== undefined) {
|
|
25905
26570
|
b.write(this.bannedRights.write());
|
|
25906
26571
|
}
|
|
26572
|
+
if (this.rank !== undefined) {
|
|
26573
|
+
b.write(index_js_1.Primitive.String.write(this.rank));
|
|
26574
|
+
}
|
|
25907
26575
|
return deps_js_1.Buffer.from(b.buffer);
|
|
25908
26576
|
}
|
|
25909
26577
|
}
|
|
@@ -33508,6 +34176,47 @@ var Raw;
|
|
|
33508
34176
|
}
|
|
33509
34177
|
}
|
|
33510
34178
|
Raw.ChannelAdminLogEventActionToggleAutotranslation = ChannelAdminLogEventActionToggleAutotranslation;
|
|
34179
|
+
class ChannelAdminLogEventActionParticipantEditRank extends index_js_1.TLObject {
|
|
34180
|
+
userId;
|
|
34181
|
+
prevRank;
|
|
34182
|
+
newRank;
|
|
34183
|
+
constructor(params) {
|
|
34184
|
+
super();
|
|
34185
|
+
this.classType = 'types';
|
|
34186
|
+
this.className = 'ChannelAdminLogEventActionParticipantEditRank';
|
|
34187
|
+
this.constructorId = 0x5806b4ec;
|
|
34188
|
+
this.subclassOfId = 0xb2b987f3;
|
|
34189
|
+
this._slots = ['userId', 'prevRank', 'newRank'];
|
|
34190
|
+
this.userId = params.userId;
|
|
34191
|
+
this.prevRank = params.prevRank;
|
|
34192
|
+
this.newRank = params.newRank;
|
|
34193
|
+
}
|
|
34194
|
+
static async read(_data, ..._args) {
|
|
34195
|
+
let userId = await index_js_1.Primitive.Long.read(_data);
|
|
34196
|
+
let prevRank = await index_js_1.Primitive.String.read(_data);
|
|
34197
|
+
let newRank = await index_js_1.Primitive.String.read(_data);
|
|
34198
|
+
return new Raw.ChannelAdminLogEventActionParticipantEditRank({
|
|
34199
|
+
userId: userId,
|
|
34200
|
+
prevRank: prevRank,
|
|
34201
|
+
newRank: newRank,
|
|
34202
|
+
});
|
|
34203
|
+
}
|
|
34204
|
+
write() {
|
|
34205
|
+
const b = new deps_js_1.BytesIO();
|
|
34206
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
34207
|
+
if (this.userId !== undefined) {
|
|
34208
|
+
b.write(index_js_1.Primitive.Long.write(this.userId));
|
|
34209
|
+
}
|
|
34210
|
+
if (this.prevRank !== undefined) {
|
|
34211
|
+
b.write(index_js_1.Primitive.String.write(this.prevRank));
|
|
34212
|
+
}
|
|
34213
|
+
if (this.newRank !== undefined) {
|
|
34214
|
+
b.write(index_js_1.Primitive.String.write(this.newRank));
|
|
34215
|
+
}
|
|
34216
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
34217
|
+
}
|
|
34218
|
+
}
|
|
34219
|
+
Raw.ChannelAdminLogEventActionParticipantEditRank = ChannelAdminLogEventActionParticipantEditRank;
|
|
33511
34220
|
class ChannelAdminLogEvent extends index_js_1.TLObject {
|
|
33512
34221
|
id;
|
|
33513
34222
|
date;
|
|
@@ -33571,6 +34280,7 @@ var Raw;
|
|
|
33571
34280
|
send;
|
|
33572
34281
|
forums;
|
|
33573
34282
|
subExtend;
|
|
34283
|
+
editRank;
|
|
33574
34284
|
constructor(params) {
|
|
33575
34285
|
super();
|
|
33576
34286
|
this.classType = 'types';
|
|
@@ -33597,6 +34307,7 @@ var Raw;
|
|
|
33597
34307
|
'send',
|
|
33598
34308
|
'forums',
|
|
33599
34309
|
'subExtend',
|
|
34310
|
+
'editRank',
|
|
33600
34311
|
];
|
|
33601
34312
|
this.join = params.join;
|
|
33602
34313
|
this.leave = params.leave;
|
|
@@ -33617,6 +34328,7 @@ var Raw;
|
|
|
33617
34328
|
this.send = params.send;
|
|
33618
34329
|
this.forums = params.forums;
|
|
33619
34330
|
this.subExtend = params.subExtend;
|
|
34331
|
+
this.editRank = params.editRank;
|
|
33620
34332
|
}
|
|
33621
34333
|
static async read(_data, ..._args) {
|
|
33622
34334
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -33639,6 +34351,7 @@ var Raw;
|
|
|
33639
34351
|
let send = flags & (1 << 16) ? true : false;
|
|
33640
34352
|
let forums = flags & (1 << 17) ? true : false;
|
|
33641
34353
|
let subExtend = flags & (1 << 18) ? true : false;
|
|
34354
|
+
let editRank = flags & (1 << 19) ? true : false;
|
|
33642
34355
|
return new Raw.ChannelAdminLogEventsFilter({
|
|
33643
34356
|
join: join,
|
|
33644
34357
|
leave: leave,
|
|
@@ -33659,6 +34372,7 @@ var Raw;
|
|
|
33659
34372
|
send: send,
|
|
33660
34373
|
forums: forums,
|
|
33661
34374
|
subExtend: subExtend,
|
|
34375
|
+
editRank: editRank,
|
|
33662
34376
|
});
|
|
33663
34377
|
}
|
|
33664
34378
|
write() {
|
|
@@ -33684,6 +34398,7 @@ var Raw;
|
|
|
33684
34398
|
flags |= this.send ? 1 << 16 : 0;
|
|
33685
34399
|
flags |= this.forums ? 1 << 17 : 0;
|
|
33686
34400
|
flags |= this.subExtend ? 1 << 18 : 0;
|
|
34401
|
+
flags |= this.editRank ? 1 << 19 : 0;
|
|
33687
34402
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
33688
34403
|
return deps_js_1.Buffer.from(b.buffer);
|
|
33689
34404
|
}
|
|
@@ -36388,49 +37103,120 @@ var Raw;
|
|
|
36388
37103
|
class PollAnswer extends index_js_1.TLObject {
|
|
36389
37104
|
text;
|
|
36390
37105
|
option;
|
|
37106
|
+
media;
|
|
37107
|
+
addedBy;
|
|
37108
|
+
date;
|
|
36391
37109
|
constructor(params) {
|
|
36392
37110
|
super();
|
|
36393
37111
|
this.classType = 'types';
|
|
36394
37112
|
this.className = 'PollAnswer';
|
|
36395
|
-
this.constructorId =
|
|
37113
|
+
this.constructorId = 0x4b7d786a;
|
|
36396
37114
|
this.subclassOfId = 0x7ea5dd9e;
|
|
36397
|
-
this._slots = ['text', 'option'];
|
|
37115
|
+
this._slots = ['text', 'option', 'media', 'addedBy', 'date'];
|
|
36398
37116
|
this.text = params.text;
|
|
36399
37117
|
this.option = params.option;
|
|
37118
|
+
this.media = params.media;
|
|
37119
|
+
this.addedBy = params.addedBy;
|
|
37120
|
+
this.date = params.date;
|
|
36400
37121
|
}
|
|
36401
37122
|
static async read(_data, ..._args) {
|
|
37123
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
36402
37124
|
let text = await index_js_1.TLObject.read(_data);
|
|
36403
37125
|
let option = await index_js_1.Primitive.Bytes.read(_data);
|
|
36404
|
-
|
|
37126
|
+
let media = flags & (1 << 0) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
37127
|
+
let addedBy = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
37128
|
+
let date = flags & (1 << 1) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
37129
|
+
return new Raw.PollAnswer({
|
|
37130
|
+
text: text,
|
|
37131
|
+
option: option,
|
|
37132
|
+
media: media,
|
|
37133
|
+
addedBy: addedBy,
|
|
37134
|
+
date: date,
|
|
37135
|
+
});
|
|
36405
37136
|
}
|
|
36406
37137
|
write() {
|
|
36407
37138
|
const b = new deps_js_1.BytesIO();
|
|
36408
37139
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
37140
|
+
let flags = 0;
|
|
37141
|
+
flags |= this.media !== undefined ? 1 << 0 : 0;
|
|
37142
|
+
flags |= this.addedBy !== undefined ? 1 << 1 : 0;
|
|
37143
|
+
flags |= this.date !== undefined ? 1 << 1 : 0;
|
|
37144
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
36409
37145
|
if (this.text !== undefined) {
|
|
36410
37146
|
b.write(this.text.write());
|
|
36411
37147
|
}
|
|
36412
37148
|
if (this.option !== undefined) {
|
|
36413
37149
|
b.write(index_js_1.Primitive.Bytes.write(this.option));
|
|
36414
37150
|
}
|
|
37151
|
+
if (this.media !== undefined) {
|
|
37152
|
+
b.write(this.media.write());
|
|
37153
|
+
}
|
|
37154
|
+
if (this.addedBy !== undefined) {
|
|
37155
|
+
b.write(this.addedBy.write());
|
|
37156
|
+
}
|
|
37157
|
+
if (this.date !== undefined) {
|
|
37158
|
+
b.write(index_js_1.Primitive.Int.write(this.date));
|
|
37159
|
+
}
|
|
36415
37160
|
return deps_js_1.Buffer.from(b.buffer);
|
|
36416
37161
|
}
|
|
36417
37162
|
}
|
|
36418
37163
|
Raw.PollAnswer = PollAnswer;
|
|
37164
|
+
class InputPollAnswer extends index_js_1.TLObject {
|
|
37165
|
+
text;
|
|
37166
|
+
media;
|
|
37167
|
+
constructor(params) {
|
|
37168
|
+
super();
|
|
37169
|
+
this.classType = 'types';
|
|
37170
|
+
this.className = 'InputPollAnswer';
|
|
37171
|
+
this.constructorId = 0x199fed96;
|
|
37172
|
+
this.subclassOfId = 0x7ea5dd9e;
|
|
37173
|
+
this._slots = ['text', 'media'];
|
|
37174
|
+
this.text = params.text;
|
|
37175
|
+
this.media = params.media;
|
|
37176
|
+
}
|
|
37177
|
+
static async read(_data, ..._args) {
|
|
37178
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
37179
|
+
let text = await index_js_1.TLObject.read(_data);
|
|
37180
|
+
let media = flags & (1 << 0) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
37181
|
+
return new Raw.InputPollAnswer({ text: text, media: media });
|
|
37182
|
+
}
|
|
37183
|
+
write() {
|
|
37184
|
+
const b = new deps_js_1.BytesIO();
|
|
37185
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
37186
|
+
let flags = 0;
|
|
37187
|
+
flags |= this.media !== undefined ? 1 << 0 : 0;
|
|
37188
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
37189
|
+
if (this.text !== undefined) {
|
|
37190
|
+
b.write(this.text.write());
|
|
37191
|
+
}
|
|
37192
|
+
if (this.media !== undefined) {
|
|
37193
|
+
b.write(this.media.write());
|
|
37194
|
+
}
|
|
37195
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
37196
|
+
}
|
|
37197
|
+
}
|
|
37198
|
+
Raw.InputPollAnswer = InputPollAnswer;
|
|
36419
37199
|
class Poll extends index_js_1.TLObject {
|
|
36420
37200
|
id;
|
|
36421
37201
|
closed;
|
|
36422
37202
|
publicVoters;
|
|
36423
37203
|
multipleChoice;
|
|
36424
37204
|
quiz;
|
|
37205
|
+
openAnswers;
|
|
37206
|
+
revotingDisabled;
|
|
37207
|
+
shuffleAnswers;
|
|
37208
|
+
hideResultsUntilClose;
|
|
37209
|
+
creator;
|
|
36425
37210
|
question;
|
|
36426
37211
|
answers;
|
|
36427
37212
|
closePeriod;
|
|
36428
37213
|
closeDate;
|
|
37214
|
+
hash;
|
|
36429
37215
|
constructor(params) {
|
|
36430
37216
|
super();
|
|
36431
37217
|
this.classType = 'types';
|
|
36432
37218
|
this.className = 'Poll';
|
|
36433
|
-
this.constructorId =
|
|
37219
|
+
this.constructorId = 0xb8425be9;
|
|
36434
37220
|
this.subclassOfId = 0x248e557b;
|
|
36435
37221
|
this._slots = [
|
|
36436
37222
|
'id',
|
|
@@ -36438,20 +37224,32 @@ var Raw;
|
|
|
36438
37224
|
'publicVoters',
|
|
36439
37225
|
'multipleChoice',
|
|
36440
37226
|
'quiz',
|
|
37227
|
+
'openAnswers',
|
|
37228
|
+
'revotingDisabled',
|
|
37229
|
+
'shuffleAnswers',
|
|
37230
|
+
'hideResultsUntilClose',
|
|
37231
|
+
'creator',
|
|
36441
37232
|
'question',
|
|
36442
37233
|
'answers',
|
|
36443
37234
|
'closePeriod',
|
|
36444
37235
|
'closeDate',
|
|
37236
|
+
'hash',
|
|
36445
37237
|
];
|
|
36446
37238
|
this.id = params.id;
|
|
36447
37239
|
this.closed = params.closed;
|
|
36448
37240
|
this.publicVoters = params.publicVoters;
|
|
36449
37241
|
this.multipleChoice = params.multipleChoice;
|
|
36450
37242
|
this.quiz = params.quiz;
|
|
37243
|
+
this.openAnswers = params.openAnswers;
|
|
37244
|
+
this.revotingDisabled = params.revotingDisabled;
|
|
37245
|
+
this.shuffleAnswers = params.shuffleAnswers;
|
|
37246
|
+
this.hideResultsUntilClose = params.hideResultsUntilClose;
|
|
37247
|
+
this.creator = params.creator;
|
|
36451
37248
|
this.question = params.question;
|
|
36452
37249
|
this.answers = params.answers;
|
|
36453
37250
|
this.closePeriod = params.closePeriod;
|
|
36454
37251
|
this.closeDate = params.closeDate;
|
|
37252
|
+
this.hash = params.hash;
|
|
36455
37253
|
}
|
|
36456
37254
|
static async read(_data, ..._args) {
|
|
36457
37255
|
let id = await index_js_1.Primitive.Long.read(_data);
|
|
@@ -36460,20 +37258,32 @@ var Raw;
|
|
|
36460
37258
|
let publicVoters = flags & (1 << 1) ? true : false;
|
|
36461
37259
|
let multipleChoice = flags & (1 << 2) ? true : false;
|
|
36462
37260
|
let quiz = flags & (1 << 3) ? true : false;
|
|
37261
|
+
let openAnswers = flags & (1 << 6) ? true : false;
|
|
37262
|
+
let revotingDisabled = flags & (1 << 7) ? true : false;
|
|
37263
|
+
let shuffleAnswers = flags & (1 << 8) ? true : false;
|
|
37264
|
+
let hideResultsUntilClose = flags & (1 << 9) ? true : false;
|
|
37265
|
+
let creator = flags & (1 << 10) ? true : false;
|
|
36463
37266
|
let question = await index_js_1.TLObject.read(_data);
|
|
36464
37267
|
let answers = await index_js_1.TLObject.read(_data);
|
|
36465
37268
|
let closePeriod = flags & (1 << 4) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
36466
37269
|
let closeDate = flags & (1 << 5) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
37270
|
+
let hash = await index_js_1.Primitive.Long.read(_data);
|
|
36467
37271
|
return new Raw.Poll({
|
|
36468
37272
|
id: id,
|
|
36469
37273
|
closed: closed,
|
|
36470
37274
|
publicVoters: publicVoters,
|
|
36471
37275
|
multipleChoice: multipleChoice,
|
|
36472
37276
|
quiz: quiz,
|
|
37277
|
+
openAnswers: openAnswers,
|
|
37278
|
+
revotingDisabled: revotingDisabled,
|
|
37279
|
+
shuffleAnswers: shuffleAnswers,
|
|
37280
|
+
hideResultsUntilClose: hideResultsUntilClose,
|
|
37281
|
+
creator: creator,
|
|
36473
37282
|
question: question,
|
|
36474
37283
|
answers: answers,
|
|
36475
37284
|
closePeriod: closePeriod,
|
|
36476
37285
|
closeDate: closeDate,
|
|
37286
|
+
hash: hash,
|
|
36477
37287
|
});
|
|
36478
37288
|
}
|
|
36479
37289
|
write() {
|
|
@@ -36487,6 +37297,11 @@ var Raw;
|
|
|
36487
37297
|
flags |= this.publicVoters ? 1 << 1 : 0;
|
|
36488
37298
|
flags |= this.multipleChoice ? 1 << 2 : 0;
|
|
36489
37299
|
flags |= this.quiz ? 1 << 3 : 0;
|
|
37300
|
+
flags |= this.openAnswers ? 1 << 6 : 0;
|
|
37301
|
+
flags |= this.revotingDisabled ? 1 << 7 : 0;
|
|
37302
|
+
flags |= this.shuffleAnswers ? 1 << 8 : 0;
|
|
37303
|
+
flags |= this.hideResultsUntilClose ? 1 << 9 : 0;
|
|
37304
|
+
flags |= this.creator ? 1 << 10 : 0;
|
|
36490
37305
|
flags |= this.closePeriod !== undefined ? 1 << 4 : 0;
|
|
36491
37306
|
flags |= this.closeDate !== undefined ? 1 << 5 : 0;
|
|
36492
37307
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
@@ -36502,6 +37317,9 @@ var Raw;
|
|
|
36502
37317
|
if (this.closeDate !== undefined) {
|
|
36503
37318
|
b.write(index_js_1.Primitive.Int.write(this.closeDate));
|
|
36504
37319
|
}
|
|
37320
|
+
if (this.hash !== undefined) {
|
|
37321
|
+
b.write(index_js_1.Primitive.Long.write(this.hash));
|
|
37322
|
+
}
|
|
36505
37323
|
return deps_js_1.Buffer.from(b.buffer);
|
|
36506
37324
|
}
|
|
36507
37325
|
}
|
|
@@ -36511,29 +37329,33 @@ var Raw;
|
|
|
36511
37329
|
correct;
|
|
36512
37330
|
option;
|
|
36513
37331
|
voters;
|
|
37332
|
+
recentVoters;
|
|
36514
37333
|
constructor(params) {
|
|
36515
37334
|
super();
|
|
36516
37335
|
this.classType = 'types';
|
|
36517
37336
|
this.className = 'PollAnswerVoters';
|
|
36518
|
-
this.constructorId =
|
|
37337
|
+
this.constructorId = 0x3645230a;
|
|
36519
37338
|
this.subclassOfId = 0x7ce0cf91;
|
|
36520
|
-
this._slots = ['chosen', 'correct', 'option', 'voters'];
|
|
37339
|
+
this._slots = ['chosen', 'correct', 'option', 'voters', 'recentVoters'];
|
|
36521
37340
|
this.chosen = params.chosen;
|
|
36522
37341
|
this.correct = params.correct;
|
|
36523
37342
|
this.option = params.option;
|
|
36524
37343
|
this.voters = params.voters;
|
|
37344
|
+
this.recentVoters = params.recentVoters;
|
|
36525
37345
|
}
|
|
36526
37346
|
static async read(_data, ..._args) {
|
|
36527
37347
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
36528
37348
|
let chosen = flags & (1 << 0) ? true : false;
|
|
36529
37349
|
let correct = flags & (1 << 1) ? true : false;
|
|
36530
37350
|
let option = await index_js_1.Primitive.Bytes.read(_data);
|
|
36531
|
-
let voters = await index_js_1.Primitive.Int.read(_data);
|
|
37351
|
+
let voters = flags & (1 << 2) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
37352
|
+
let recentVoters = flags & (1 << 2) ? await index_js_1.TLObject.read(_data) : [];
|
|
36532
37353
|
return new Raw.PollAnswerVoters({
|
|
36533
37354
|
chosen: chosen,
|
|
36534
37355
|
correct: correct,
|
|
36535
37356
|
option: option,
|
|
36536
37357
|
voters: voters,
|
|
37358
|
+
recentVoters: recentVoters,
|
|
36537
37359
|
});
|
|
36538
37360
|
}
|
|
36539
37361
|
write() {
|
|
@@ -36542,6 +37364,8 @@ var Raw;
|
|
|
36542
37364
|
let flags = 0;
|
|
36543
37365
|
flags |= this.chosen ? 1 << 0 : 0;
|
|
36544
37366
|
flags |= this.correct ? 1 << 1 : 0;
|
|
37367
|
+
flags |= this.voters !== undefined ? 1 << 2 : 0;
|
|
37368
|
+
flags |= this.recentVoters ? 1 << 2 : 0;
|
|
36545
37369
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
36546
37370
|
if (this.option !== undefined) {
|
|
36547
37371
|
b.write(index_js_1.Primitive.Bytes.write(this.option));
|
|
@@ -36549,53 +37373,66 @@ var Raw;
|
|
|
36549
37373
|
if (this.voters !== undefined) {
|
|
36550
37374
|
b.write(index_js_1.Primitive.Int.write(this.voters));
|
|
36551
37375
|
}
|
|
37376
|
+
if (this.recentVoters) {
|
|
37377
|
+
b.write(index_js_1.Primitive.Vector.write(this.recentVoters));
|
|
37378
|
+
}
|
|
36552
37379
|
return deps_js_1.Buffer.from(b.buffer);
|
|
36553
37380
|
}
|
|
36554
37381
|
}
|
|
36555
37382
|
Raw.PollAnswerVoters = PollAnswerVoters;
|
|
36556
37383
|
class PollResults extends index_js_1.TLObject {
|
|
36557
37384
|
min;
|
|
37385
|
+
hasUnreadVotes;
|
|
36558
37386
|
results;
|
|
36559
37387
|
totalVoters;
|
|
36560
37388
|
recentVoters;
|
|
36561
37389
|
solution;
|
|
36562
37390
|
solutionEntities;
|
|
37391
|
+
solutionMedia;
|
|
36563
37392
|
constructor(params) {
|
|
36564
37393
|
super();
|
|
36565
37394
|
this.classType = 'types';
|
|
36566
37395
|
this.className = 'PollResults';
|
|
36567
|
-
this.constructorId =
|
|
37396
|
+
this.constructorId = 0xba7bb15e;
|
|
36568
37397
|
this.subclassOfId = 0xc3b4f687;
|
|
36569
37398
|
this._slots = [
|
|
36570
37399
|
'min',
|
|
37400
|
+
'hasUnreadVotes',
|
|
36571
37401
|
'results',
|
|
36572
37402
|
'totalVoters',
|
|
36573
37403
|
'recentVoters',
|
|
36574
37404
|
'solution',
|
|
36575
37405
|
'solutionEntities',
|
|
37406
|
+
'solutionMedia',
|
|
36576
37407
|
];
|
|
36577
37408
|
this.min = params.min;
|
|
37409
|
+
this.hasUnreadVotes = params.hasUnreadVotes;
|
|
36578
37410
|
this.results = params.results;
|
|
36579
37411
|
this.totalVoters = params.totalVoters;
|
|
36580
37412
|
this.recentVoters = params.recentVoters;
|
|
36581
37413
|
this.solution = params.solution;
|
|
36582
37414
|
this.solutionEntities = params.solutionEntities;
|
|
37415
|
+
this.solutionMedia = params.solutionMedia;
|
|
36583
37416
|
}
|
|
36584
37417
|
static async read(_data, ..._args) {
|
|
36585
37418
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
36586
37419
|
let min = flags & (1 << 0) ? true : false;
|
|
37420
|
+
let hasUnreadVotes = flags & (1 << 6) ? true : false;
|
|
36587
37421
|
let results = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : [];
|
|
36588
37422
|
let totalVoters = flags & (1 << 2) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
36589
37423
|
let recentVoters = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : [];
|
|
36590
37424
|
let solution = flags & (1 << 4) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
36591
37425
|
let solutionEntities = flags & (1 << 4) ? await index_js_1.TLObject.read(_data) : [];
|
|
37426
|
+
let solutionMedia = flags & (1 << 5) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
36592
37427
|
return new Raw.PollResults({
|
|
36593
37428
|
min: min,
|
|
37429
|
+
hasUnreadVotes: hasUnreadVotes,
|
|
36594
37430
|
results: results,
|
|
36595
37431
|
totalVoters: totalVoters,
|
|
36596
37432
|
recentVoters: recentVoters,
|
|
36597
37433
|
solution: solution,
|
|
36598
37434
|
solutionEntities: solutionEntities,
|
|
37435
|
+
solutionMedia: solutionMedia,
|
|
36599
37436
|
});
|
|
36600
37437
|
}
|
|
36601
37438
|
write() {
|
|
@@ -36603,11 +37440,13 @@ var Raw;
|
|
|
36603
37440
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
36604
37441
|
let flags = 0;
|
|
36605
37442
|
flags |= this.min ? 1 << 0 : 0;
|
|
37443
|
+
flags |= this.hasUnreadVotes ? 1 << 6 : 0;
|
|
36606
37444
|
flags |= this.results ? 1 << 1 : 0;
|
|
36607
37445
|
flags |= this.totalVoters !== undefined ? 1 << 2 : 0;
|
|
36608
37446
|
flags |= this.recentVoters ? 1 << 3 : 0;
|
|
36609
37447
|
flags |= this.solution !== undefined ? 1 << 4 : 0;
|
|
36610
37448
|
flags |= this.solutionEntities ? 1 << 4 : 0;
|
|
37449
|
+
flags |= this.solutionMedia !== undefined ? 1 << 5 : 0;
|
|
36611
37450
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
36612
37451
|
if (this.results) {
|
|
36613
37452
|
b.write(index_js_1.Primitive.Vector.write(this.results));
|
|
@@ -36624,6 +37463,9 @@ var Raw;
|
|
|
36624
37463
|
if (this.solutionEntities) {
|
|
36625
37464
|
b.write(index_js_1.Primitive.Vector.write(this.solutionEntities));
|
|
36626
37465
|
}
|
|
37466
|
+
if (this.solutionMedia !== undefined) {
|
|
37467
|
+
b.write(this.solutionMedia.write());
|
|
37468
|
+
}
|
|
36627
37469
|
return deps_js_1.Buffer.from(b.buffer);
|
|
36628
37470
|
}
|
|
36629
37471
|
}
|
|
@@ -36695,6 +37537,7 @@ var Raw;
|
|
|
36695
37537
|
editStories;
|
|
36696
37538
|
deleteStories;
|
|
36697
37539
|
manageDirectMessages;
|
|
37540
|
+
manageRanks;
|
|
36698
37541
|
constructor(params) {
|
|
36699
37542
|
super();
|
|
36700
37543
|
this.classType = 'types';
|
|
@@ -36718,6 +37561,7 @@ var Raw;
|
|
|
36718
37561
|
'editStories',
|
|
36719
37562
|
'deleteStories',
|
|
36720
37563
|
'manageDirectMessages',
|
|
37564
|
+
'manageRanks',
|
|
36721
37565
|
];
|
|
36722
37566
|
this.changeInfo = params.changeInfo;
|
|
36723
37567
|
this.postMessages = params.postMessages;
|
|
@@ -36735,6 +37579,7 @@ var Raw;
|
|
|
36735
37579
|
this.editStories = params.editStories;
|
|
36736
37580
|
this.deleteStories = params.deleteStories;
|
|
36737
37581
|
this.manageDirectMessages = params.manageDirectMessages;
|
|
37582
|
+
this.manageRanks = params.manageRanks;
|
|
36738
37583
|
}
|
|
36739
37584
|
static async read(_data, ..._args) {
|
|
36740
37585
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -36754,6 +37599,7 @@ var Raw;
|
|
|
36754
37599
|
let editStories = flags & (1 << 15) ? true : false;
|
|
36755
37600
|
let deleteStories = flags & (1 << 16) ? true : false;
|
|
36756
37601
|
let manageDirectMessages = flags & (1 << 17) ? true : false;
|
|
37602
|
+
let manageRanks = flags & (1 << 18) ? true : false;
|
|
36757
37603
|
return new Raw.ChatAdminRights({
|
|
36758
37604
|
changeInfo: changeInfo,
|
|
36759
37605
|
postMessages: postMessages,
|
|
@@ -36771,6 +37617,7 @@ var Raw;
|
|
|
36771
37617
|
editStories: editStories,
|
|
36772
37618
|
deleteStories: deleteStories,
|
|
36773
37619
|
manageDirectMessages: manageDirectMessages,
|
|
37620
|
+
manageRanks: manageRanks,
|
|
36774
37621
|
});
|
|
36775
37622
|
}
|
|
36776
37623
|
write() {
|
|
@@ -36793,6 +37640,7 @@ var Raw;
|
|
|
36793
37640
|
flags |= this.editStories ? 1 << 15 : 0;
|
|
36794
37641
|
flags |= this.deleteStories ? 1 << 16 : 0;
|
|
36795
37642
|
flags |= this.manageDirectMessages ? 1 << 17 : 0;
|
|
37643
|
+
flags |= this.manageRanks ? 1 << 18 : 0;
|
|
36796
37644
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
36797
37645
|
return deps_js_1.Buffer.from(b.buffer);
|
|
36798
37646
|
}
|
|
@@ -36819,6 +37667,7 @@ var Raw;
|
|
|
36819
37667
|
sendVoices;
|
|
36820
37668
|
sendDocs;
|
|
36821
37669
|
sendPlain;
|
|
37670
|
+
editRank;
|
|
36822
37671
|
untilDate;
|
|
36823
37672
|
constructor(params) {
|
|
36824
37673
|
super();
|
|
@@ -36847,6 +37696,7 @@ var Raw;
|
|
|
36847
37696
|
'sendVoices',
|
|
36848
37697
|
'sendDocs',
|
|
36849
37698
|
'sendPlain',
|
|
37699
|
+
'editRank',
|
|
36850
37700
|
'untilDate',
|
|
36851
37701
|
];
|
|
36852
37702
|
this.viewMessages = params.viewMessages;
|
|
@@ -36869,6 +37719,7 @@ var Raw;
|
|
|
36869
37719
|
this.sendVoices = params.sendVoices;
|
|
36870
37720
|
this.sendDocs = params.sendDocs;
|
|
36871
37721
|
this.sendPlain = params.sendPlain;
|
|
37722
|
+
this.editRank = params.editRank;
|
|
36872
37723
|
this.untilDate = params.untilDate;
|
|
36873
37724
|
}
|
|
36874
37725
|
static async read(_data, ..._args) {
|
|
@@ -36893,6 +37744,7 @@ var Raw;
|
|
|
36893
37744
|
let sendVoices = flags & (1 << 23) ? true : false;
|
|
36894
37745
|
let sendDocs = flags & (1 << 24) ? true : false;
|
|
36895
37746
|
let sendPlain = flags & (1 << 25) ? true : false;
|
|
37747
|
+
let editRank = flags & (1 << 26) ? true : false;
|
|
36896
37748
|
let untilDate = await index_js_1.Primitive.Int.read(_data);
|
|
36897
37749
|
return new Raw.ChatBannedRights({
|
|
36898
37750
|
viewMessages: viewMessages,
|
|
@@ -36915,6 +37767,7 @@ var Raw;
|
|
|
36915
37767
|
sendVoices: sendVoices,
|
|
36916
37768
|
sendDocs: sendDocs,
|
|
36917
37769
|
sendPlain: sendPlain,
|
|
37770
|
+
editRank: editRank,
|
|
36918
37771
|
untilDate: untilDate,
|
|
36919
37772
|
});
|
|
36920
37773
|
}
|
|
@@ -36942,6 +37795,7 @@ var Raw;
|
|
|
36942
37795
|
flags |= this.sendVoices ? 1 << 23 : 0;
|
|
36943
37796
|
flags |= this.sendDocs ? 1 << 24 : 0;
|
|
36944
37797
|
flags |= this.sendPlain ? 1 << 25 : 0;
|
|
37798
|
+
flags |= this.editRank ? 1 << 26 : 0;
|
|
36945
37799
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
36946
37800
|
if (this.untilDate !== undefined) {
|
|
36947
37801
|
b.write(index_js_1.Primitive.Int.write(this.untilDate));
|
|
@@ -37611,56 +38465,81 @@ var Raw;
|
|
|
37611
38465
|
class UrlAuthResultRequest extends index_js_1.TLObject {
|
|
37612
38466
|
requestWriteAccess;
|
|
37613
38467
|
requestPhoneNumber;
|
|
38468
|
+
matchCodesFirst;
|
|
38469
|
+
isApp;
|
|
37614
38470
|
bot;
|
|
37615
38471
|
domain;
|
|
37616
38472
|
browser;
|
|
37617
38473
|
platform;
|
|
37618
38474
|
ip;
|
|
37619
38475
|
region;
|
|
38476
|
+
matchCodes;
|
|
38477
|
+
userIdHint;
|
|
38478
|
+
verifiedAppName;
|
|
37620
38479
|
constructor(params) {
|
|
37621
38480
|
super();
|
|
37622
38481
|
this.classType = 'types';
|
|
37623
38482
|
this.className = 'UrlAuthResultRequest';
|
|
37624
|
-
this.constructorId =
|
|
38483
|
+
this.constructorId = 0x3cd623ec;
|
|
37625
38484
|
this.subclassOfId = 0x7765cb1e;
|
|
37626
38485
|
this._slots = [
|
|
37627
38486
|
'requestWriteAccess',
|
|
37628
38487
|
'requestPhoneNumber',
|
|
38488
|
+
'matchCodesFirst',
|
|
38489
|
+
'isApp',
|
|
37629
38490
|
'bot',
|
|
37630
38491
|
'domain',
|
|
37631
38492
|
'browser',
|
|
37632
38493
|
'platform',
|
|
37633
38494
|
'ip',
|
|
37634
38495
|
'region',
|
|
38496
|
+
'matchCodes',
|
|
38497
|
+
'userIdHint',
|
|
38498
|
+
'verifiedAppName',
|
|
37635
38499
|
];
|
|
37636
38500
|
this.requestWriteAccess = params.requestWriteAccess;
|
|
37637
38501
|
this.requestPhoneNumber = params.requestPhoneNumber;
|
|
38502
|
+
this.matchCodesFirst = params.matchCodesFirst;
|
|
38503
|
+
this.isApp = params.isApp;
|
|
37638
38504
|
this.bot = params.bot;
|
|
37639
38505
|
this.domain = params.domain;
|
|
37640
38506
|
this.browser = params.browser;
|
|
37641
38507
|
this.platform = params.platform;
|
|
37642
38508
|
this.ip = params.ip;
|
|
37643
38509
|
this.region = params.region;
|
|
38510
|
+
this.matchCodes = params.matchCodes;
|
|
38511
|
+
this.userIdHint = params.userIdHint;
|
|
38512
|
+
this.verifiedAppName = params.verifiedAppName;
|
|
37644
38513
|
}
|
|
37645
38514
|
static async read(_data, ..._args) {
|
|
37646
38515
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
37647
38516
|
let requestWriteAccess = flags & (1 << 0) ? true : false;
|
|
37648
38517
|
let requestPhoneNumber = flags & (1 << 1) ? true : false;
|
|
38518
|
+
let matchCodesFirst = flags & (1 << 5) ? true : false;
|
|
38519
|
+
let isApp = flags & (1 << 6) ? true : false;
|
|
37649
38520
|
let bot = await index_js_1.TLObject.read(_data);
|
|
37650
38521
|
let domain = await index_js_1.Primitive.String.read(_data);
|
|
37651
38522
|
let browser = flags & (1 << 2) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
37652
38523
|
let platform = flags & (1 << 2) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
37653
38524
|
let ip = flags & (1 << 2) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
37654
38525
|
let region = flags & (1 << 2) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
38526
|
+
let matchCodes = flags & (1 << 3) ? await index_js_1.TLObject.read(_data, index_js_1.Primitive.String) : [];
|
|
38527
|
+
let userIdHint = flags & (1 << 4) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
38528
|
+
let verifiedAppName = flags & (1 << 7) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
37655
38529
|
return new Raw.UrlAuthResultRequest({
|
|
37656
38530
|
requestWriteAccess: requestWriteAccess,
|
|
37657
38531
|
requestPhoneNumber: requestPhoneNumber,
|
|
38532
|
+
matchCodesFirst: matchCodesFirst,
|
|
38533
|
+
isApp: isApp,
|
|
37658
38534
|
bot: bot,
|
|
37659
38535
|
domain: domain,
|
|
37660
38536
|
browser: browser,
|
|
37661
38537
|
platform: platform,
|
|
37662
38538
|
ip: ip,
|
|
37663
38539
|
region: region,
|
|
38540
|
+
matchCodes: matchCodes,
|
|
38541
|
+
userIdHint: userIdHint,
|
|
38542
|
+
verifiedAppName: verifiedAppName,
|
|
37664
38543
|
});
|
|
37665
38544
|
}
|
|
37666
38545
|
write() {
|
|
@@ -37669,10 +38548,15 @@ var Raw;
|
|
|
37669
38548
|
let flags = 0;
|
|
37670
38549
|
flags |= this.requestWriteAccess ? 1 << 0 : 0;
|
|
37671
38550
|
flags |= this.requestPhoneNumber ? 1 << 1 : 0;
|
|
38551
|
+
flags |= this.matchCodesFirst ? 1 << 5 : 0;
|
|
38552
|
+
flags |= this.isApp ? 1 << 6 : 0;
|
|
37672
38553
|
flags |= this.browser !== undefined ? 1 << 2 : 0;
|
|
37673
38554
|
flags |= this.platform !== undefined ? 1 << 2 : 0;
|
|
37674
38555
|
flags |= this.ip !== undefined ? 1 << 2 : 0;
|
|
37675
38556
|
flags |= this.region !== undefined ? 1 << 2 : 0;
|
|
38557
|
+
flags |= this.matchCodes ? 1 << 3 : 0;
|
|
38558
|
+
flags |= this.userIdHint !== undefined ? 1 << 4 : 0;
|
|
38559
|
+
flags |= this.verifiedAppName !== undefined ? 1 << 7 : 0;
|
|
37676
38560
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
37677
38561
|
if (this.bot !== undefined) {
|
|
37678
38562
|
b.write(this.bot.write());
|
|
@@ -37692,6 +38576,15 @@ var Raw;
|
|
|
37692
38576
|
if (this.region !== undefined) {
|
|
37693
38577
|
b.write(index_js_1.Primitive.String.write(this.region));
|
|
37694
38578
|
}
|
|
38579
|
+
if (this.matchCodes) {
|
|
38580
|
+
b.write(index_js_1.Primitive.Vector.write(this.matchCodes, index_js_1.Primitive.String));
|
|
38581
|
+
}
|
|
38582
|
+
if (this.userIdHint !== undefined) {
|
|
38583
|
+
b.write(index_js_1.Primitive.Long.write(this.userIdHint));
|
|
38584
|
+
}
|
|
38585
|
+
if (this.verifiedAppName !== undefined) {
|
|
38586
|
+
b.write(index_js_1.Primitive.String.write(this.verifiedAppName));
|
|
38587
|
+
}
|
|
37695
38588
|
return deps_js_1.Buffer.from(b.buffer);
|
|
37696
38589
|
}
|
|
37697
38590
|
}
|
|
@@ -39367,11 +40260,12 @@ var Raw;
|
|
|
39367
40260
|
quoteEntities;
|
|
39368
40261
|
quoteOffset;
|
|
39369
40262
|
todoItemId;
|
|
40263
|
+
pollOption;
|
|
39370
40264
|
constructor(params) {
|
|
39371
40265
|
super();
|
|
39372
40266
|
this.classType = 'types';
|
|
39373
40267
|
this.className = 'MessageReplyHeader';
|
|
39374
|
-
this.constructorId =
|
|
40268
|
+
this.constructorId = 0x1b97dd66;
|
|
39375
40269
|
this.subclassOfId = 0x5b4d9167;
|
|
39376
40270
|
this._slots = [
|
|
39377
40271
|
'replyToScheduled',
|
|
@@ -39386,6 +40280,7 @@ var Raw;
|
|
|
39386
40280
|
'quoteEntities',
|
|
39387
40281
|
'quoteOffset',
|
|
39388
40282
|
'todoItemId',
|
|
40283
|
+
'pollOption',
|
|
39389
40284
|
];
|
|
39390
40285
|
this.replyToScheduled = params.replyToScheduled;
|
|
39391
40286
|
this.forumTopic = params.forumTopic;
|
|
@@ -39399,6 +40294,7 @@ var Raw;
|
|
|
39399
40294
|
this.quoteEntities = params.quoteEntities;
|
|
39400
40295
|
this.quoteOffset = params.quoteOffset;
|
|
39401
40296
|
this.todoItemId = params.todoItemId;
|
|
40297
|
+
this.pollOption = params.pollOption;
|
|
39402
40298
|
}
|
|
39403
40299
|
static async read(_data, ..._args) {
|
|
39404
40300
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -39414,6 +40310,7 @@ var Raw;
|
|
|
39414
40310
|
let quoteEntities = flags & (1 << 7) ? await index_js_1.TLObject.read(_data) : [];
|
|
39415
40311
|
let quoteOffset = flags & (1 << 10) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
39416
40312
|
let todoItemId = flags & (1 << 11) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
40313
|
+
let pollOption = flags & (1 << 12) ? await index_js_1.Primitive.Bytes.read(_data) : undefined;
|
|
39417
40314
|
return new Raw.MessageReplyHeader({
|
|
39418
40315
|
replyToScheduled: replyToScheduled,
|
|
39419
40316
|
forumTopic: forumTopic,
|
|
@@ -39427,6 +40324,7 @@ var Raw;
|
|
|
39427
40324
|
quoteEntities: quoteEntities,
|
|
39428
40325
|
quoteOffset: quoteOffset,
|
|
39429
40326
|
todoItemId: todoItemId,
|
|
40327
|
+
pollOption: pollOption,
|
|
39430
40328
|
});
|
|
39431
40329
|
}
|
|
39432
40330
|
write() {
|
|
@@ -39445,6 +40343,7 @@ var Raw;
|
|
|
39445
40343
|
flags |= this.quoteEntities ? 1 << 7 : 0;
|
|
39446
40344
|
flags |= this.quoteOffset !== undefined ? 1 << 10 : 0;
|
|
39447
40345
|
flags |= this.todoItemId !== undefined ? 1 << 11 : 0;
|
|
40346
|
+
flags |= this.pollOption !== undefined ? 1 << 12 : 0;
|
|
39448
40347
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
39449
40348
|
if (this.replyToMsgId !== undefined) {
|
|
39450
40349
|
b.write(index_js_1.Primitive.Int.write(this.replyToMsgId));
|
|
@@ -39473,6 +40372,9 @@ var Raw;
|
|
|
39473
40372
|
if (this.todoItemId !== undefined) {
|
|
39474
40373
|
b.write(index_js_1.Primitive.Int.write(this.todoItemId));
|
|
39475
40374
|
}
|
|
40375
|
+
if (this.pollOption !== undefined) {
|
|
40376
|
+
b.write(index_js_1.Primitive.Bytes.write(this.pollOption));
|
|
40377
|
+
}
|
|
39476
40378
|
return deps_js_1.Buffer.from(b.buffer);
|
|
39477
40379
|
}
|
|
39478
40380
|
}
|
|
@@ -43642,6 +44544,7 @@ var Raw;
|
|
|
43642
44544
|
unreadCount;
|
|
43643
44545
|
unreadMentionsCount;
|
|
43644
44546
|
unreadReactionsCount;
|
|
44547
|
+
unreadPollVotesCount;
|
|
43645
44548
|
fromId;
|
|
43646
44549
|
notifySettings;
|
|
43647
44550
|
draft;
|
|
@@ -43649,7 +44552,7 @@ var Raw;
|
|
|
43649
44552
|
super();
|
|
43650
44553
|
this.classType = 'types';
|
|
43651
44554
|
this.className = 'ForumTopic';
|
|
43652
|
-
this.constructorId =
|
|
44555
|
+
this.constructorId = 0xfcdad815;
|
|
43653
44556
|
this.subclassOfId = 0x8d182203;
|
|
43654
44557
|
this._slots = [
|
|
43655
44558
|
'my',
|
|
@@ -43670,6 +44573,7 @@ var Raw;
|
|
|
43670
44573
|
'unreadCount',
|
|
43671
44574
|
'unreadMentionsCount',
|
|
43672
44575
|
'unreadReactionsCount',
|
|
44576
|
+
'unreadPollVotesCount',
|
|
43673
44577
|
'fromId',
|
|
43674
44578
|
'notifySettings',
|
|
43675
44579
|
'draft',
|
|
@@ -43692,6 +44596,7 @@ var Raw;
|
|
|
43692
44596
|
this.unreadCount = params.unreadCount;
|
|
43693
44597
|
this.unreadMentionsCount = params.unreadMentionsCount;
|
|
43694
44598
|
this.unreadReactionsCount = params.unreadReactionsCount;
|
|
44599
|
+
this.unreadPollVotesCount = params.unreadPollVotesCount;
|
|
43695
44600
|
this.fromId = params.fromId;
|
|
43696
44601
|
this.notifySettings = params.notifySettings;
|
|
43697
44602
|
this.draft = params.draft;
|
|
@@ -43716,6 +44621,7 @@ var Raw;
|
|
|
43716
44621
|
let unreadCount = await index_js_1.Primitive.Int.read(_data);
|
|
43717
44622
|
let unreadMentionsCount = await index_js_1.Primitive.Int.read(_data);
|
|
43718
44623
|
let unreadReactionsCount = await index_js_1.Primitive.Int.read(_data);
|
|
44624
|
+
let unreadPollVotesCount = await index_js_1.Primitive.Int.read(_data);
|
|
43719
44625
|
let fromId = await index_js_1.TLObject.read(_data);
|
|
43720
44626
|
let notifySettings = await index_js_1.TLObject.read(_data);
|
|
43721
44627
|
let draft = flags & (1 << 4) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
@@ -43738,6 +44644,7 @@ var Raw;
|
|
|
43738
44644
|
unreadCount: unreadCount,
|
|
43739
44645
|
unreadMentionsCount: unreadMentionsCount,
|
|
43740
44646
|
unreadReactionsCount: unreadReactionsCount,
|
|
44647
|
+
unreadPollVotesCount: unreadPollVotesCount,
|
|
43741
44648
|
fromId: fromId,
|
|
43742
44649
|
notifySettings: notifySettings,
|
|
43743
44650
|
draft: draft,
|
|
@@ -43792,6 +44699,9 @@ var Raw;
|
|
|
43792
44699
|
if (this.unreadReactionsCount !== undefined) {
|
|
43793
44700
|
b.write(index_js_1.Primitive.Int.write(this.unreadReactionsCount));
|
|
43794
44701
|
}
|
|
44702
|
+
if (this.unreadPollVotesCount !== undefined) {
|
|
44703
|
+
b.write(index_js_1.Primitive.Int.write(this.unreadPollVotesCount));
|
|
44704
|
+
}
|
|
43795
44705
|
if (this.fromId !== undefined) {
|
|
43796
44706
|
b.write(this.fromId.write());
|
|
43797
44707
|
}
|
|
@@ -44021,6 +44931,50 @@ var Raw;
|
|
|
44021
44931
|
}
|
|
44022
44932
|
}
|
|
44023
44933
|
Raw.RequestPeerTypeBroadcast = RequestPeerTypeBroadcast;
|
|
44934
|
+
class RequestPeerTypeCreateBot extends index_js_1.TLObject {
|
|
44935
|
+
botManaged;
|
|
44936
|
+
suggestedName;
|
|
44937
|
+
suggestedUsername;
|
|
44938
|
+
constructor(params) {
|
|
44939
|
+
super();
|
|
44940
|
+
this.classType = 'types';
|
|
44941
|
+
this.className = 'RequestPeerTypeCreateBot';
|
|
44942
|
+
this.constructorId = 0x3e81e078;
|
|
44943
|
+
this.subclassOfId = 0xe9a0e814;
|
|
44944
|
+
this._slots = ['botManaged', 'suggestedName', 'suggestedUsername'];
|
|
44945
|
+
this.botManaged = params.botManaged;
|
|
44946
|
+
this.suggestedName = params.suggestedName;
|
|
44947
|
+
this.suggestedUsername = params.suggestedUsername;
|
|
44948
|
+
}
|
|
44949
|
+
static async read(_data, ..._args) {
|
|
44950
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
44951
|
+
let botManaged = flags & (1 << 0) ? true : false;
|
|
44952
|
+
let suggestedName = flags & (1 << 1) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
44953
|
+
let suggestedUsername = flags & (1 << 2) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
44954
|
+
return new Raw.RequestPeerTypeCreateBot({
|
|
44955
|
+
botManaged: botManaged,
|
|
44956
|
+
suggestedName: suggestedName,
|
|
44957
|
+
suggestedUsername: suggestedUsername,
|
|
44958
|
+
});
|
|
44959
|
+
}
|
|
44960
|
+
write() {
|
|
44961
|
+
const b = new deps_js_1.BytesIO();
|
|
44962
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
44963
|
+
let flags = 0;
|
|
44964
|
+
flags |= this.botManaged ? 1 << 0 : 0;
|
|
44965
|
+
flags |= this.suggestedName !== undefined ? 1 << 1 : 0;
|
|
44966
|
+
flags |= this.suggestedUsername !== undefined ? 1 << 2 : 0;
|
|
44967
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
44968
|
+
if (this.suggestedName !== undefined) {
|
|
44969
|
+
b.write(index_js_1.Primitive.String.write(this.suggestedName));
|
|
44970
|
+
}
|
|
44971
|
+
if (this.suggestedUsername !== undefined) {
|
|
44972
|
+
b.write(index_js_1.Primitive.String.write(this.suggestedUsername));
|
|
44973
|
+
}
|
|
44974
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
44975
|
+
}
|
|
44976
|
+
}
|
|
44977
|
+
Raw.RequestPeerTypeCreateBot = RequestPeerTypeCreateBot;
|
|
44024
44978
|
class EmojiListNotModified extends index_js_1.TLObject {
|
|
44025
44979
|
constructor() {
|
|
44026
44980
|
super();
|
|
@@ -44861,11 +45815,12 @@ var Raw;
|
|
|
44861
45815
|
views;
|
|
44862
45816
|
sentReaction;
|
|
44863
45817
|
albums;
|
|
45818
|
+
music;
|
|
44864
45819
|
constructor(params) {
|
|
44865
45820
|
super();
|
|
44866
45821
|
this.classType = 'types';
|
|
44867
45822
|
this.className = 'StoryItem';
|
|
44868
|
-
this.constructorId =
|
|
45823
|
+
this.constructorId = 0x16a4b93c;
|
|
44869
45824
|
this.subclassOfId = 0xd477b133;
|
|
44870
45825
|
this._slots = [
|
|
44871
45826
|
'pinned',
|
|
@@ -44890,6 +45845,7 @@ var Raw;
|
|
|
44890
45845
|
'views',
|
|
44891
45846
|
'sentReaction',
|
|
44892
45847
|
'albums',
|
|
45848
|
+
'music',
|
|
44893
45849
|
];
|
|
44894
45850
|
this.pinned = params.pinned;
|
|
44895
45851
|
this.public = params.public;
|
|
@@ -44913,6 +45869,7 @@ var Raw;
|
|
|
44913
45869
|
this.views = params.views;
|
|
44914
45870
|
this.sentReaction = params.sentReaction;
|
|
44915
45871
|
this.albums = params.albums;
|
|
45872
|
+
this.music = params.music;
|
|
44916
45873
|
}
|
|
44917
45874
|
static async read(_data, ..._args) {
|
|
44918
45875
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -44938,6 +45895,7 @@ var Raw;
|
|
|
44938
45895
|
let views = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
44939
45896
|
let sentReaction = flags & (1 << 15) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
44940
45897
|
let albums = flags & (1 << 19) ? await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int) : [];
|
|
45898
|
+
let music = flags & (1 << 20) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
44941
45899
|
return new Raw.StoryItem({
|
|
44942
45900
|
pinned: pinned,
|
|
44943
45901
|
public: _public,
|
|
@@ -44961,6 +45919,7 @@ var Raw;
|
|
|
44961
45919
|
views: views,
|
|
44962
45920
|
sentReaction: sentReaction,
|
|
44963
45921
|
albums: albums,
|
|
45922
|
+
music: music,
|
|
44964
45923
|
});
|
|
44965
45924
|
}
|
|
44966
45925
|
write() {
|
|
@@ -44985,6 +45944,7 @@ var Raw;
|
|
|
44985
45944
|
flags |= this.views !== undefined ? 1 << 3 : 0;
|
|
44986
45945
|
flags |= this.sentReaction !== undefined ? 1 << 15 : 0;
|
|
44987
45946
|
flags |= this.albums ? 1 << 19 : 0;
|
|
45947
|
+
flags |= this.music !== undefined ? 1 << 20 : 0;
|
|
44988
45948
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
44989
45949
|
if (this.id !== undefined) {
|
|
44990
45950
|
b.write(index_js_1.Primitive.Int.write(this.id));
|
|
@@ -45025,6 +45985,9 @@ var Raw;
|
|
|
45025
45985
|
if (this.albums) {
|
|
45026
45986
|
b.write(index_js_1.Primitive.Vector.write(this.albums, index_js_1.Primitive.Int));
|
|
45027
45987
|
}
|
|
45988
|
+
if (this.music !== undefined) {
|
|
45989
|
+
b.write(this.music.write());
|
|
45990
|
+
}
|
|
45028
45991
|
return deps_js_1.Buffer.from(b.buffer);
|
|
45029
45992
|
}
|
|
45030
45993
|
}
|
|
@@ -45180,11 +46143,12 @@ var Raw;
|
|
|
45180
46143
|
quoteOffset;
|
|
45181
46144
|
monoforumPeerId;
|
|
45182
46145
|
todoItemId;
|
|
46146
|
+
pollOption;
|
|
45183
46147
|
constructor(params) {
|
|
45184
46148
|
super();
|
|
45185
46149
|
this.classType = 'types';
|
|
45186
46150
|
this.className = 'InputReplyToMessage';
|
|
45187
|
-
this.constructorId =
|
|
46151
|
+
this.constructorId = 0x3bd4b7c2;
|
|
45188
46152
|
this.subclassOfId = 0x8c71131d;
|
|
45189
46153
|
this._slots = [
|
|
45190
46154
|
'replyToMsgId',
|
|
@@ -45195,6 +46159,7 @@ var Raw;
|
|
|
45195
46159
|
'quoteOffset',
|
|
45196
46160
|
'monoforumPeerId',
|
|
45197
46161
|
'todoItemId',
|
|
46162
|
+
'pollOption',
|
|
45198
46163
|
];
|
|
45199
46164
|
this.replyToMsgId = params.replyToMsgId;
|
|
45200
46165
|
this.topMsgId = params.topMsgId;
|
|
@@ -45204,6 +46169,7 @@ var Raw;
|
|
|
45204
46169
|
this.quoteOffset = params.quoteOffset;
|
|
45205
46170
|
this.monoforumPeerId = params.monoforumPeerId;
|
|
45206
46171
|
this.todoItemId = params.todoItemId;
|
|
46172
|
+
this.pollOption = params.pollOption;
|
|
45207
46173
|
}
|
|
45208
46174
|
static async read(_data, ..._args) {
|
|
45209
46175
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -45215,6 +46181,7 @@ var Raw;
|
|
|
45215
46181
|
let quoteOffset = flags & (1 << 4) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
45216
46182
|
let monoforumPeerId = flags & (1 << 5) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
45217
46183
|
let todoItemId = flags & (1 << 6) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
46184
|
+
let pollOption = flags & (1 << 7) ? await index_js_1.Primitive.Bytes.read(_data) : undefined;
|
|
45218
46185
|
return new Raw.InputReplyToMessage({
|
|
45219
46186
|
replyToMsgId: replyToMsgId,
|
|
45220
46187
|
topMsgId: topMsgId,
|
|
@@ -45224,6 +46191,7 @@ var Raw;
|
|
|
45224
46191
|
quoteOffset: quoteOffset,
|
|
45225
46192
|
monoforumPeerId: monoforumPeerId,
|
|
45226
46193
|
todoItemId: todoItemId,
|
|
46194
|
+
pollOption: pollOption,
|
|
45227
46195
|
});
|
|
45228
46196
|
}
|
|
45229
46197
|
write() {
|
|
@@ -45237,6 +46205,7 @@ var Raw;
|
|
|
45237
46205
|
flags |= this.quoteOffset !== undefined ? 1 << 4 : 0;
|
|
45238
46206
|
flags |= this.monoforumPeerId !== undefined ? 1 << 5 : 0;
|
|
45239
46207
|
flags |= this.todoItemId !== undefined ? 1 << 6 : 0;
|
|
46208
|
+
flags |= this.pollOption !== undefined ? 1 << 7 : 0;
|
|
45240
46209
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
45241
46210
|
if (this.replyToMsgId !== undefined) {
|
|
45242
46211
|
b.write(index_js_1.Primitive.Int.write(this.replyToMsgId));
|
|
@@ -45262,6 +46231,9 @@ var Raw;
|
|
|
45262
46231
|
if (this.todoItemId !== undefined) {
|
|
45263
46232
|
b.write(index_js_1.Primitive.Int.write(this.todoItemId));
|
|
45264
46233
|
}
|
|
46234
|
+
if (this.pollOption !== undefined) {
|
|
46235
|
+
b.write(index_js_1.Primitive.Bytes.write(this.pollOption));
|
|
46236
|
+
}
|
|
45265
46237
|
return deps_js_1.Buffer.from(b.buffer);
|
|
45266
46238
|
}
|
|
45267
46239
|
}
|
|
@@ -48339,17 +49311,25 @@ var Raw;
|
|
|
48339
49311
|
class ReactionsNotifySettings extends index_js_1.TLObject {
|
|
48340
49312
|
messagesNotifyFrom;
|
|
48341
49313
|
storiesNotifyFrom;
|
|
49314
|
+
pollVotesNotifyFrom;
|
|
48342
49315
|
sound;
|
|
48343
49316
|
showPreviews;
|
|
48344
49317
|
constructor(params) {
|
|
48345
49318
|
super();
|
|
48346
49319
|
this.classType = 'types';
|
|
48347
49320
|
this.className = 'ReactionsNotifySettings';
|
|
48348
|
-
this.constructorId =
|
|
49321
|
+
this.constructorId = 0x71e4ea58;
|
|
48349
49322
|
this.subclassOfId = 0x8dff0851;
|
|
48350
|
-
this._slots = [
|
|
49323
|
+
this._slots = [
|
|
49324
|
+
'messagesNotifyFrom',
|
|
49325
|
+
'storiesNotifyFrom',
|
|
49326
|
+
'pollVotesNotifyFrom',
|
|
49327
|
+
'sound',
|
|
49328
|
+
'showPreviews',
|
|
49329
|
+
];
|
|
48351
49330
|
this.messagesNotifyFrom = params.messagesNotifyFrom;
|
|
48352
49331
|
this.storiesNotifyFrom = params.storiesNotifyFrom;
|
|
49332
|
+
this.pollVotesNotifyFrom = params.pollVotesNotifyFrom;
|
|
48353
49333
|
this.sound = params.sound;
|
|
48354
49334
|
this.showPreviews = params.showPreviews;
|
|
48355
49335
|
}
|
|
@@ -48357,11 +49337,13 @@ var Raw;
|
|
|
48357
49337
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
48358
49338
|
let messagesNotifyFrom = flags & (1 << 0) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
48359
49339
|
let storiesNotifyFrom = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
49340
|
+
let pollVotesNotifyFrom = flags & (1 << 2) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
48360
49341
|
let sound = await index_js_1.TLObject.read(_data);
|
|
48361
49342
|
let showPreviews = await index_js_1.Primitive.Bool.read(_data);
|
|
48362
49343
|
return new Raw.ReactionsNotifySettings({
|
|
48363
49344
|
messagesNotifyFrom: messagesNotifyFrom,
|
|
48364
49345
|
storiesNotifyFrom: storiesNotifyFrom,
|
|
49346
|
+
pollVotesNotifyFrom: pollVotesNotifyFrom,
|
|
48365
49347
|
sound: sound,
|
|
48366
49348
|
showPreviews: showPreviews,
|
|
48367
49349
|
});
|
|
@@ -48372,6 +49354,7 @@ var Raw;
|
|
|
48372
49354
|
let flags = 0;
|
|
48373
49355
|
flags |= this.messagesNotifyFrom !== undefined ? 1 << 0 : 0;
|
|
48374
49356
|
flags |= this.storiesNotifyFrom !== undefined ? 1 << 1 : 0;
|
|
49357
|
+
flags |= this.pollVotesNotifyFrom !== undefined ? 1 << 2 : 0;
|
|
48375
49358
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
48376
49359
|
if (this.messagesNotifyFrom !== undefined) {
|
|
48377
49360
|
b.write(this.messagesNotifyFrom.write());
|
|
@@ -48379,6 +49362,9 @@ var Raw;
|
|
|
48379
49362
|
if (this.storiesNotifyFrom !== undefined) {
|
|
48380
49363
|
b.write(this.storiesNotifyFrom.write());
|
|
48381
49364
|
}
|
|
49365
|
+
if (this.pollVotesNotifyFrom !== undefined) {
|
|
49366
|
+
b.write(this.pollVotesNotifyFrom.write());
|
|
49367
|
+
}
|
|
48382
49368
|
if (this.sound !== undefined) {
|
|
48383
49369
|
b.write(this.sound.write());
|
|
48384
49370
|
}
|
|
@@ -53350,6 +54336,75 @@ var Raw;
|
|
|
53350
54336
|
}
|
|
53351
54337
|
}
|
|
53352
54338
|
Raw.KeyboardButtonStyle = KeyboardButtonStyle;
|
|
54339
|
+
class InputMessageReadMetric extends index_js_1.TLObject {
|
|
54340
|
+
msgId;
|
|
54341
|
+
viewId;
|
|
54342
|
+
timeInViewMs;
|
|
54343
|
+
activeTimeInViewMs;
|
|
54344
|
+
heightToViewportRatioPermille;
|
|
54345
|
+
seenRangeRatioPermille;
|
|
54346
|
+
constructor(params) {
|
|
54347
|
+
super();
|
|
54348
|
+
this.classType = 'types';
|
|
54349
|
+
this.className = 'InputMessageReadMetric';
|
|
54350
|
+
this.constructorId = 0x402b4495;
|
|
54351
|
+
this.subclassOfId = 0xed5a5ca5;
|
|
54352
|
+
this._slots = [
|
|
54353
|
+
'msgId',
|
|
54354
|
+
'viewId',
|
|
54355
|
+
'timeInViewMs',
|
|
54356
|
+
'activeTimeInViewMs',
|
|
54357
|
+
'heightToViewportRatioPermille',
|
|
54358
|
+
'seenRangeRatioPermille',
|
|
54359
|
+
];
|
|
54360
|
+
this.msgId = params.msgId;
|
|
54361
|
+
this.viewId = params.viewId;
|
|
54362
|
+
this.timeInViewMs = params.timeInViewMs;
|
|
54363
|
+
this.activeTimeInViewMs = params.activeTimeInViewMs;
|
|
54364
|
+
this.heightToViewportRatioPermille = params.heightToViewportRatioPermille;
|
|
54365
|
+
this.seenRangeRatioPermille = params.seenRangeRatioPermille;
|
|
54366
|
+
}
|
|
54367
|
+
static async read(_data, ..._args) {
|
|
54368
|
+
let msgId = await index_js_1.Primitive.Int.read(_data);
|
|
54369
|
+
let viewId = await index_js_1.Primitive.Long.read(_data);
|
|
54370
|
+
let timeInViewMs = await index_js_1.Primitive.Int.read(_data);
|
|
54371
|
+
let activeTimeInViewMs = await index_js_1.Primitive.Int.read(_data);
|
|
54372
|
+
let heightToViewportRatioPermille = await index_js_1.Primitive.Int.read(_data);
|
|
54373
|
+
let seenRangeRatioPermille = await index_js_1.Primitive.Int.read(_data);
|
|
54374
|
+
return new Raw.InputMessageReadMetric({
|
|
54375
|
+
msgId: msgId,
|
|
54376
|
+
viewId: viewId,
|
|
54377
|
+
timeInViewMs: timeInViewMs,
|
|
54378
|
+
activeTimeInViewMs: activeTimeInViewMs,
|
|
54379
|
+
heightToViewportRatioPermille: heightToViewportRatioPermille,
|
|
54380
|
+
seenRangeRatioPermille: seenRangeRatioPermille,
|
|
54381
|
+
});
|
|
54382
|
+
}
|
|
54383
|
+
write() {
|
|
54384
|
+
const b = new deps_js_1.BytesIO();
|
|
54385
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
54386
|
+
if (this.msgId !== undefined) {
|
|
54387
|
+
b.write(index_js_1.Primitive.Int.write(this.msgId));
|
|
54388
|
+
}
|
|
54389
|
+
if (this.viewId !== undefined) {
|
|
54390
|
+
b.write(index_js_1.Primitive.Long.write(this.viewId));
|
|
54391
|
+
}
|
|
54392
|
+
if (this.timeInViewMs !== undefined) {
|
|
54393
|
+
b.write(index_js_1.Primitive.Int.write(this.timeInViewMs));
|
|
54394
|
+
}
|
|
54395
|
+
if (this.activeTimeInViewMs !== undefined) {
|
|
54396
|
+
b.write(index_js_1.Primitive.Int.write(this.activeTimeInViewMs));
|
|
54397
|
+
}
|
|
54398
|
+
if (this.heightToViewportRatioPermille !== undefined) {
|
|
54399
|
+
b.write(index_js_1.Primitive.Int.write(this.heightToViewportRatioPermille));
|
|
54400
|
+
}
|
|
54401
|
+
if (this.seenRangeRatioPermille !== undefined) {
|
|
54402
|
+
b.write(index_js_1.Primitive.Int.write(this.seenRangeRatioPermille));
|
|
54403
|
+
}
|
|
54404
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
54405
|
+
}
|
|
54406
|
+
}
|
|
54407
|
+
Raw.InputMessageReadMetric = InputMessageReadMetric;
|
|
53353
54408
|
class InvokeAfterMsg extends index_js_1.TLObject {
|
|
53354
54409
|
__response__;
|
|
53355
54410
|
msgId;
|
|
@@ -64921,6 +65976,44 @@ var Raw;
|
|
|
64921
65976
|
}
|
|
64922
65977
|
}
|
|
64923
65978
|
messages_1.EmojiGameDiceInfo = EmojiGameDiceInfo;
|
|
65979
|
+
class ComposedMessageWithAI extends index_js_1.TLObject {
|
|
65980
|
+
resultText;
|
|
65981
|
+
diffText;
|
|
65982
|
+
constructor(params) {
|
|
65983
|
+
super();
|
|
65984
|
+
this.classType = 'types';
|
|
65985
|
+
this.className = 'messages.ComposedMessageWithAI';
|
|
65986
|
+
this.constructorId = 0x90d7adfa;
|
|
65987
|
+
this.subclassOfId = 0x140803df;
|
|
65988
|
+
this._slots = ['resultText', 'diffText'];
|
|
65989
|
+
this.resultText = params.resultText;
|
|
65990
|
+
this.diffText = params.diffText;
|
|
65991
|
+
}
|
|
65992
|
+
static async read(_data, ..._args) {
|
|
65993
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
65994
|
+
let resultText = await index_js_1.TLObject.read(_data);
|
|
65995
|
+
let diffText = flags & (1 << 0) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
65996
|
+
return new Raw.messages.ComposedMessageWithAI({
|
|
65997
|
+
resultText: resultText,
|
|
65998
|
+
diffText: diffText,
|
|
65999
|
+
});
|
|
66000
|
+
}
|
|
66001
|
+
write() {
|
|
66002
|
+
const b = new deps_js_1.BytesIO();
|
|
66003
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
66004
|
+
let flags = 0;
|
|
66005
|
+
flags |= this.diffText !== undefined ? 1 << 0 : 0;
|
|
66006
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
66007
|
+
if (this.resultText !== undefined) {
|
|
66008
|
+
b.write(this.resultText.write());
|
|
66009
|
+
}
|
|
66010
|
+
if (this.diffText !== undefined) {
|
|
66011
|
+
b.write(this.diffText.write());
|
|
66012
|
+
}
|
|
66013
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
66014
|
+
}
|
|
66015
|
+
}
|
|
66016
|
+
messages_1.ComposedMessageWithAI = ComposedMessageWithAI;
|
|
64924
66017
|
class GetMessages extends index_js_1.TLObject {
|
|
64925
66018
|
__response__;
|
|
64926
66019
|
id;
|
|
@@ -69697,20 +70790,23 @@ var Raw;
|
|
|
69697
70790
|
__response__;
|
|
69698
70791
|
peer;
|
|
69699
70792
|
msgId;
|
|
70793
|
+
pollHash;
|
|
69700
70794
|
constructor(params) {
|
|
69701
70795
|
super();
|
|
69702
70796
|
this.classType = 'functions';
|
|
69703
70797
|
this.className = 'messages.GetPollResults';
|
|
69704
|
-
this.constructorId =
|
|
70798
|
+
this.constructorId = 0xeda3e33b;
|
|
69705
70799
|
this.subclassOfId = 0x8af52aac;
|
|
69706
|
-
this._slots = ['peer', 'msgId'];
|
|
70800
|
+
this._slots = ['peer', 'msgId', 'pollHash'];
|
|
69707
70801
|
this.peer = params.peer;
|
|
69708
70802
|
this.msgId = params.msgId;
|
|
70803
|
+
this.pollHash = params.pollHash;
|
|
69709
70804
|
}
|
|
69710
70805
|
static async read(_data, ..._args) {
|
|
69711
70806
|
let peer = await index_js_1.TLObject.read(_data);
|
|
69712
70807
|
let msgId = await index_js_1.Primitive.Int.read(_data);
|
|
69713
|
-
|
|
70808
|
+
let pollHash = await index_js_1.Primitive.Long.read(_data);
|
|
70809
|
+
return new Raw.messages.GetPollResults({ peer: peer, msgId: msgId, pollHash: pollHash });
|
|
69714
70810
|
}
|
|
69715
70811
|
write() {
|
|
69716
70812
|
const b = new deps_js_1.BytesIO();
|
|
@@ -69721,6 +70817,9 @@ var Raw;
|
|
|
69721
70817
|
if (this.msgId !== undefined) {
|
|
69722
70818
|
b.write(index_js_1.Primitive.Int.write(this.msgId));
|
|
69723
70819
|
}
|
|
70820
|
+
if (this.pollHash !== undefined) {
|
|
70821
|
+
b.write(index_js_1.Primitive.Long.write(this.pollHash));
|
|
70822
|
+
}
|
|
69724
70823
|
return deps_js_1.Buffer.from(b.buffer);
|
|
69725
70824
|
}
|
|
69726
70825
|
}
|
|
@@ -69991,17 +71090,19 @@ var Raw;
|
|
|
69991
71090
|
msgId;
|
|
69992
71091
|
buttonId;
|
|
69993
71092
|
url;
|
|
71093
|
+
inAppOrigin;
|
|
69994
71094
|
constructor(params) {
|
|
69995
71095
|
super();
|
|
69996
71096
|
this.classType = 'functions';
|
|
69997
71097
|
this.className = 'messages.RequestUrlAuth';
|
|
69998
|
-
this.constructorId =
|
|
71098
|
+
this.constructorId = 0x894cc99c;
|
|
69999
71099
|
this.subclassOfId = 0x7765cb1e;
|
|
70000
|
-
this._slots = ['peer', 'msgId', 'buttonId', 'url'];
|
|
71100
|
+
this._slots = ['peer', 'msgId', 'buttonId', 'url', 'inAppOrigin'];
|
|
70001
71101
|
this.peer = params.peer;
|
|
70002
71102
|
this.msgId = params.msgId;
|
|
70003
71103
|
this.buttonId = params.buttonId;
|
|
70004
71104
|
this.url = params.url;
|
|
71105
|
+
this.inAppOrigin = params.inAppOrigin;
|
|
70005
71106
|
}
|
|
70006
71107
|
static async read(_data, ..._args) {
|
|
70007
71108
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -70009,11 +71110,13 @@ var Raw;
|
|
|
70009
71110
|
let msgId = flags & (1 << 1) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
70010
71111
|
let buttonId = flags & (1 << 1) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
70011
71112
|
let url = flags & (1 << 2) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
71113
|
+
let inAppOrigin = flags & (1 << 3) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
70012
71114
|
return new Raw.messages.RequestUrlAuth({
|
|
70013
71115
|
peer: peer,
|
|
70014
71116
|
msgId: msgId,
|
|
70015
71117
|
buttonId: buttonId,
|
|
70016
71118
|
url: url,
|
|
71119
|
+
inAppOrigin: inAppOrigin,
|
|
70017
71120
|
});
|
|
70018
71121
|
}
|
|
70019
71122
|
write() {
|
|
@@ -70024,6 +71127,7 @@ var Raw;
|
|
|
70024
71127
|
flags |= this.msgId !== undefined ? 1 << 1 : 0;
|
|
70025
71128
|
flags |= this.buttonId !== undefined ? 1 << 1 : 0;
|
|
70026
71129
|
flags |= this.url !== undefined ? 1 << 2 : 0;
|
|
71130
|
+
flags |= this.inAppOrigin !== undefined ? 1 << 3 : 0;
|
|
70027
71131
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
70028
71132
|
if (this.peer !== undefined) {
|
|
70029
71133
|
b.write(this.peer.write());
|
|
@@ -70037,6 +71141,9 @@ var Raw;
|
|
|
70037
71141
|
if (this.url !== undefined) {
|
|
70038
71142
|
b.write(index_js_1.Primitive.String.write(this.url));
|
|
70039
71143
|
}
|
|
71144
|
+
if (this.inAppOrigin !== undefined) {
|
|
71145
|
+
b.write(index_js_1.Primitive.String.write(this.inAppOrigin));
|
|
71146
|
+
}
|
|
70040
71147
|
return deps_js_1.Buffer.from(b.buffer);
|
|
70041
71148
|
}
|
|
70042
71149
|
}
|
|
@@ -70049,19 +71156,29 @@ var Raw;
|
|
|
70049
71156
|
msgId;
|
|
70050
71157
|
buttonId;
|
|
70051
71158
|
url;
|
|
71159
|
+
matchCode;
|
|
70052
71160
|
constructor(params) {
|
|
70053
71161
|
super();
|
|
70054
71162
|
this.classType = 'functions';
|
|
70055
71163
|
this.className = 'messages.AcceptUrlAuth';
|
|
70056
|
-
this.constructorId =
|
|
71164
|
+
this.constructorId = 0x67a3f0de;
|
|
70057
71165
|
this.subclassOfId = 0x7765cb1e;
|
|
70058
|
-
this._slots = [
|
|
71166
|
+
this._slots = [
|
|
71167
|
+
'writeAllowed',
|
|
71168
|
+
'sharePhoneNumber',
|
|
71169
|
+
'peer',
|
|
71170
|
+
'msgId',
|
|
71171
|
+
'buttonId',
|
|
71172
|
+
'url',
|
|
71173
|
+
'matchCode',
|
|
71174
|
+
];
|
|
70059
71175
|
this.writeAllowed = params.writeAllowed;
|
|
70060
71176
|
this.sharePhoneNumber = params.sharePhoneNumber;
|
|
70061
71177
|
this.peer = params.peer;
|
|
70062
71178
|
this.msgId = params.msgId;
|
|
70063
71179
|
this.buttonId = params.buttonId;
|
|
70064
71180
|
this.url = params.url;
|
|
71181
|
+
this.matchCode = params.matchCode;
|
|
70065
71182
|
}
|
|
70066
71183
|
static async read(_data, ..._args) {
|
|
70067
71184
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -70071,6 +71188,7 @@ var Raw;
|
|
|
70071
71188
|
let msgId = flags & (1 << 1) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
70072
71189
|
let buttonId = flags & (1 << 1) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
70073
71190
|
let url = flags & (1 << 2) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
71191
|
+
let matchCode = flags & (1 << 4) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
70074
71192
|
return new Raw.messages.AcceptUrlAuth({
|
|
70075
71193
|
writeAllowed: writeAllowed,
|
|
70076
71194
|
sharePhoneNumber: sharePhoneNumber,
|
|
@@ -70078,6 +71196,7 @@ var Raw;
|
|
|
70078
71196
|
msgId: msgId,
|
|
70079
71197
|
buttonId: buttonId,
|
|
70080
71198
|
url: url,
|
|
71199
|
+
matchCode: matchCode,
|
|
70081
71200
|
});
|
|
70082
71201
|
}
|
|
70083
71202
|
write() {
|
|
@@ -70090,6 +71209,7 @@ var Raw;
|
|
|
70090
71209
|
flags |= this.msgId !== undefined ? 1 << 1 : 0;
|
|
70091
71210
|
flags |= this.buttonId !== undefined ? 1 << 1 : 0;
|
|
70092
71211
|
flags |= this.url !== undefined ? 1 << 2 : 0;
|
|
71212
|
+
flags |= this.matchCode !== undefined ? 1 << 4 : 0;
|
|
70093
71213
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
70094
71214
|
if (this.peer !== undefined) {
|
|
70095
71215
|
b.write(this.peer.write());
|
|
@@ -70103,6 +71223,9 @@ var Raw;
|
|
|
70103
71223
|
if (this.url !== undefined) {
|
|
70104
71224
|
b.write(index_js_1.Primitive.String.write(this.url));
|
|
70105
71225
|
}
|
|
71226
|
+
if (this.matchCode !== undefined) {
|
|
71227
|
+
b.write(index_js_1.Primitive.String.write(this.matchCode));
|
|
71228
|
+
}
|
|
70106
71229
|
return deps_js_1.Buffer.from(b.buffer);
|
|
70107
71230
|
}
|
|
70108
71231
|
}
|
|
@@ -71616,30 +72739,44 @@ var Raw;
|
|
|
71616
72739
|
__response__;
|
|
71617
72740
|
peer;
|
|
71618
72741
|
enabled;
|
|
72742
|
+
requestMsgId;
|
|
71619
72743
|
constructor(params) {
|
|
71620
72744
|
super();
|
|
71621
72745
|
this.classType = 'functions';
|
|
71622
72746
|
this.className = 'messages.ToggleNoForwards';
|
|
71623
|
-
this.constructorId =
|
|
72747
|
+
this.constructorId = 0xb2081a35;
|
|
71624
72748
|
this.subclassOfId = 0x8af52aac;
|
|
71625
|
-
this._slots = ['peer', 'enabled'];
|
|
72749
|
+
this._slots = ['peer', 'enabled', 'requestMsgId'];
|
|
71626
72750
|
this.peer = params.peer;
|
|
71627
72751
|
this.enabled = params.enabled;
|
|
72752
|
+
this.requestMsgId = params.requestMsgId;
|
|
71628
72753
|
}
|
|
71629
72754
|
static async read(_data, ..._args) {
|
|
72755
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
71630
72756
|
let peer = await index_js_1.TLObject.read(_data);
|
|
71631
72757
|
let enabled = await index_js_1.Primitive.Bool.read(_data);
|
|
71632
|
-
|
|
72758
|
+
let requestMsgId = flags & (1 << 0) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
72759
|
+
return new Raw.messages.ToggleNoForwards({
|
|
72760
|
+
peer: peer,
|
|
72761
|
+
enabled: enabled,
|
|
72762
|
+
requestMsgId: requestMsgId,
|
|
72763
|
+
});
|
|
71633
72764
|
}
|
|
71634
72765
|
write() {
|
|
71635
72766
|
const b = new deps_js_1.BytesIO();
|
|
71636
72767
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
72768
|
+
let flags = 0;
|
|
72769
|
+
flags |= this.requestMsgId !== undefined ? 1 << 0 : 0;
|
|
72770
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
71637
72771
|
if (this.peer !== undefined) {
|
|
71638
72772
|
b.write(this.peer.write());
|
|
71639
72773
|
}
|
|
71640
72774
|
if (this.enabled !== undefined) {
|
|
71641
72775
|
b.write(index_js_1.Primitive.Bool.write(this.enabled));
|
|
71642
72776
|
}
|
|
72777
|
+
if (this.requestMsgId !== undefined) {
|
|
72778
|
+
b.write(index_js_1.Primitive.Int.write(this.requestMsgId));
|
|
72779
|
+
}
|
|
71643
72780
|
return deps_js_1.Buffer.from(b.buffer);
|
|
71644
72781
|
}
|
|
71645
72782
|
}
|
|
@@ -71937,17 +73074,19 @@ var Raw;
|
|
|
71937
73074
|
id;
|
|
71938
73075
|
text;
|
|
71939
73076
|
toLang;
|
|
73077
|
+
tone;
|
|
71940
73078
|
constructor(params) {
|
|
71941
73079
|
super();
|
|
71942
73080
|
this.classType = 'functions';
|
|
71943
73081
|
this.className = 'messages.TranslateText';
|
|
71944
|
-
this.constructorId =
|
|
73082
|
+
this.constructorId = 0xa5eec345;
|
|
71945
73083
|
this.subclassOfId = 0x24243e8;
|
|
71946
|
-
this._slots = ['peer', 'id', 'text', 'toLang'];
|
|
73084
|
+
this._slots = ['peer', 'id', 'text', 'toLang', 'tone'];
|
|
71947
73085
|
this.peer = params.peer;
|
|
71948
73086
|
this.id = params.id;
|
|
71949
73087
|
this.text = params.text;
|
|
71950
73088
|
this.toLang = params.toLang;
|
|
73089
|
+
this.tone = params.tone;
|
|
71951
73090
|
}
|
|
71952
73091
|
static async read(_data, ..._args) {
|
|
71953
73092
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -71955,7 +73094,14 @@ var Raw;
|
|
|
71955
73094
|
let id = flags & (1 << 0) ? await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int) : [];
|
|
71956
73095
|
let text = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : [];
|
|
71957
73096
|
let toLang = await index_js_1.Primitive.String.read(_data);
|
|
71958
|
-
|
|
73097
|
+
let tone = flags & (1 << 2) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
73098
|
+
return new Raw.messages.TranslateText({
|
|
73099
|
+
peer: peer,
|
|
73100
|
+
id: id,
|
|
73101
|
+
text: text,
|
|
73102
|
+
toLang: toLang,
|
|
73103
|
+
tone: tone,
|
|
73104
|
+
});
|
|
71959
73105
|
}
|
|
71960
73106
|
write() {
|
|
71961
73107
|
const b = new deps_js_1.BytesIO();
|
|
@@ -71964,6 +73110,7 @@ var Raw;
|
|
|
71964
73110
|
flags |= this.peer !== undefined ? 1 << 0 : 0;
|
|
71965
73111
|
flags |= this.id ? 1 << 0 : 0;
|
|
71966
73112
|
flags |= this.text ? 1 << 1 : 0;
|
|
73113
|
+
flags |= this.tone !== undefined ? 1 << 2 : 0;
|
|
71967
73114
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
71968
73115
|
if (this.peer !== undefined) {
|
|
71969
73116
|
b.write(this.peer.write());
|
|
@@ -71977,6 +73124,9 @@ var Raw;
|
|
|
71977
73124
|
if (this.toLang !== undefined) {
|
|
71978
73125
|
b.write(index_js_1.Primitive.String.write(this.toLang));
|
|
71979
73126
|
}
|
|
73127
|
+
if (this.tone !== undefined) {
|
|
73128
|
+
b.write(index_js_1.Primitive.String.write(this.tone));
|
|
73129
|
+
}
|
|
71980
73130
|
return deps_js_1.Buffer.from(b.buffer);
|
|
71981
73131
|
}
|
|
71982
73132
|
}
|
|
@@ -72975,28 +74125,33 @@ var Raw;
|
|
|
72975
74125
|
__response__;
|
|
72976
74126
|
peer;
|
|
72977
74127
|
msgId;
|
|
74128
|
+
webappReqId;
|
|
72978
74129
|
buttonId;
|
|
72979
74130
|
requestedPeers;
|
|
72980
74131
|
constructor(params) {
|
|
72981
74132
|
super();
|
|
72982
74133
|
this.classType = 'functions';
|
|
72983
74134
|
this.className = 'messages.SendBotRequestedPeer';
|
|
72984
|
-
this.constructorId =
|
|
74135
|
+
this.constructorId = 0x6c5cf2a7;
|
|
72985
74136
|
this.subclassOfId = 0x8af52aac;
|
|
72986
|
-
this._slots = ['peer', 'msgId', 'buttonId', 'requestedPeers'];
|
|
74137
|
+
this._slots = ['peer', 'msgId', 'webappReqId', 'buttonId', 'requestedPeers'];
|
|
72987
74138
|
this.peer = params.peer;
|
|
72988
74139
|
this.msgId = params.msgId;
|
|
74140
|
+
this.webappReqId = params.webappReqId;
|
|
72989
74141
|
this.buttonId = params.buttonId;
|
|
72990
74142
|
this.requestedPeers = params.requestedPeers;
|
|
72991
74143
|
}
|
|
72992
74144
|
static async read(_data, ..._args) {
|
|
74145
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
72993
74146
|
let peer = await index_js_1.TLObject.read(_data);
|
|
72994
|
-
let msgId = await index_js_1.Primitive.Int.read(_data);
|
|
74147
|
+
let msgId = flags & (1 << 0) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
74148
|
+
let webappReqId = flags & (1 << 1) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
72995
74149
|
let buttonId = await index_js_1.Primitive.Int.read(_data);
|
|
72996
74150
|
let requestedPeers = await index_js_1.TLObject.read(_data);
|
|
72997
74151
|
return new Raw.messages.SendBotRequestedPeer({
|
|
72998
74152
|
peer: peer,
|
|
72999
74153
|
msgId: msgId,
|
|
74154
|
+
webappReqId: webappReqId,
|
|
73000
74155
|
buttonId: buttonId,
|
|
73001
74156
|
requestedPeers: requestedPeers,
|
|
73002
74157
|
});
|
|
@@ -73004,12 +74159,19 @@ var Raw;
|
|
|
73004
74159
|
write() {
|
|
73005
74160
|
const b = new deps_js_1.BytesIO();
|
|
73006
74161
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
74162
|
+
let flags = 0;
|
|
74163
|
+
flags |= this.msgId !== undefined ? 1 << 0 : 0;
|
|
74164
|
+
flags |= this.webappReqId !== undefined ? 1 << 1 : 0;
|
|
74165
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
73007
74166
|
if (this.peer !== undefined) {
|
|
73008
74167
|
b.write(this.peer.write());
|
|
73009
74168
|
}
|
|
73010
74169
|
if (this.msgId !== undefined) {
|
|
73011
74170
|
b.write(index_js_1.Primitive.Int.write(this.msgId));
|
|
73012
74171
|
}
|
|
74172
|
+
if (this.webappReqId !== undefined) {
|
|
74173
|
+
b.write(index_js_1.Primitive.String.write(this.webappReqId));
|
|
74174
|
+
}
|
|
73013
74175
|
if (this.buttonId !== undefined) {
|
|
73014
74176
|
b.write(index_js_1.Primitive.Int.write(this.buttonId));
|
|
73015
74177
|
}
|
|
@@ -75463,29 +76625,33 @@ var Raw;
|
|
|
75463
76625
|
peer;
|
|
75464
76626
|
id;
|
|
75465
76627
|
toLang;
|
|
76628
|
+
tone;
|
|
75466
76629
|
constructor(params) {
|
|
75467
76630
|
super();
|
|
75468
76631
|
this.classType = 'functions';
|
|
75469
76632
|
this.className = 'messages.SummarizeText';
|
|
75470
|
-
this.constructorId =
|
|
76633
|
+
this.constructorId = 0xabbbd346;
|
|
75471
76634
|
this.subclassOfId = 0x95ca4b05;
|
|
75472
|
-
this._slots = ['peer', 'id', 'toLang'];
|
|
76635
|
+
this._slots = ['peer', 'id', 'toLang', 'tone'];
|
|
75473
76636
|
this.peer = params.peer;
|
|
75474
76637
|
this.id = params.id;
|
|
75475
76638
|
this.toLang = params.toLang;
|
|
76639
|
+
this.tone = params.tone;
|
|
75476
76640
|
}
|
|
75477
76641
|
static async read(_data, ..._args) {
|
|
75478
76642
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
75479
76643
|
let peer = await index_js_1.TLObject.read(_data);
|
|
75480
76644
|
let id = await index_js_1.Primitive.Int.read(_data);
|
|
75481
76645
|
let toLang = flags & (1 << 0) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
75482
|
-
|
|
76646
|
+
let tone = flags & (1 << 2) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
76647
|
+
return new Raw.messages.SummarizeText({ peer: peer, id: id, toLang: toLang, tone: tone });
|
|
75483
76648
|
}
|
|
75484
76649
|
write() {
|
|
75485
76650
|
const b = new deps_js_1.BytesIO();
|
|
75486
76651
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
75487
76652
|
let flags = 0;
|
|
75488
76653
|
flags |= this.toLang !== undefined ? 1 << 0 : 0;
|
|
76654
|
+
flags |= this.tone !== undefined ? 1 << 2 : 0;
|
|
75489
76655
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
75490
76656
|
if (this.peer !== undefined) {
|
|
75491
76657
|
b.write(this.peer.write());
|
|
@@ -75496,10 +76662,484 @@ var Raw;
|
|
|
75496
76662
|
if (this.toLang !== undefined) {
|
|
75497
76663
|
b.write(index_js_1.Primitive.String.write(this.toLang));
|
|
75498
76664
|
}
|
|
76665
|
+
if (this.tone !== undefined) {
|
|
76666
|
+
b.write(index_js_1.Primitive.String.write(this.tone));
|
|
76667
|
+
}
|
|
75499
76668
|
return deps_js_1.Buffer.from(b.buffer);
|
|
75500
76669
|
}
|
|
75501
76670
|
}
|
|
75502
76671
|
messages_1.SummarizeText = SummarizeText;
|
|
76672
|
+
class EditChatCreator extends index_js_1.TLObject {
|
|
76673
|
+
__response__;
|
|
76674
|
+
peer;
|
|
76675
|
+
userId;
|
|
76676
|
+
password;
|
|
76677
|
+
constructor(params) {
|
|
76678
|
+
super();
|
|
76679
|
+
this.classType = 'functions';
|
|
76680
|
+
this.className = 'messages.EditChatCreator';
|
|
76681
|
+
this.constructorId = 0xf743b857;
|
|
76682
|
+
this.subclassOfId = 0x8af52aac;
|
|
76683
|
+
this._slots = ['peer', 'userId', 'password'];
|
|
76684
|
+
this.peer = params.peer;
|
|
76685
|
+
this.userId = params.userId;
|
|
76686
|
+
this.password = params.password;
|
|
76687
|
+
}
|
|
76688
|
+
static async read(_data, ..._args) {
|
|
76689
|
+
let peer = await index_js_1.TLObject.read(_data);
|
|
76690
|
+
let userId = await index_js_1.TLObject.read(_data);
|
|
76691
|
+
let password = await index_js_1.TLObject.read(_data);
|
|
76692
|
+
return new Raw.messages.EditChatCreator({ peer: peer, userId: userId, password: password });
|
|
76693
|
+
}
|
|
76694
|
+
write() {
|
|
76695
|
+
const b = new deps_js_1.BytesIO();
|
|
76696
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
76697
|
+
if (this.peer !== undefined) {
|
|
76698
|
+
b.write(this.peer.write());
|
|
76699
|
+
}
|
|
76700
|
+
if (this.userId !== undefined) {
|
|
76701
|
+
b.write(this.userId.write());
|
|
76702
|
+
}
|
|
76703
|
+
if (this.password !== undefined) {
|
|
76704
|
+
b.write(this.password.write());
|
|
76705
|
+
}
|
|
76706
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
76707
|
+
}
|
|
76708
|
+
}
|
|
76709
|
+
messages_1.EditChatCreator = EditChatCreator;
|
|
76710
|
+
class GetFutureChatCreatorAfterLeave extends index_js_1.TLObject {
|
|
76711
|
+
__response__;
|
|
76712
|
+
peer;
|
|
76713
|
+
constructor(params) {
|
|
76714
|
+
super();
|
|
76715
|
+
this.classType = 'functions';
|
|
76716
|
+
this.className = 'messages.GetFutureChatCreatorAfterLeave';
|
|
76717
|
+
this.constructorId = 0x3b7d0ea6;
|
|
76718
|
+
this.subclassOfId = 0x2da17977;
|
|
76719
|
+
this._slots = ['peer'];
|
|
76720
|
+
this.peer = params.peer;
|
|
76721
|
+
}
|
|
76722
|
+
static async read(_data, ..._args) {
|
|
76723
|
+
let peer = await index_js_1.TLObject.read(_data);
|
|
76724
|
+
return new Raw.messages.GetFutureChatCreatorAfterLeave({ peer: peer });
|
|
76725
|
+
}
|
|
76726
|
+
write() {
|
|
76727
|
+
const b = new deps_js_1.BytesIO();
|
|
76728
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
76729
|
+
if (this.peer !== undefined) {
|
|
76730
|
+
b.write(this.peer.write());
|
|
76731
|
+
}
|
|
76732
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
76733
|
+
}
|
|
76734
|
+
}
|
|
76735
|
+
messages_1.GetFutureChatCreatorAfterLeave = GetFutureChatCreatorAfterLeave;
|
|
76736
|
+
class EditChatParticipantRank extends index_js_1.TLObject {
|
|
76737
|
+
__response__;
|
|
76738
|
+
peer;
|
|
76739
|
+
participant;
|
|
76740
|
+
rank;
|
|
76741
|
+
constructor(params) {
|
|
76742
|
+
super();
|
|
76743
|
+
this.classType = 'functions';
|
|
76744
|
+
this.className = 'messages.EditChatParticipantRank';
|
|
76745
|
+
this.constructorId = 0xa00f32b0;
|
|
76746
|
+
this.subclassOfId = 0x8af52aac;
|
|
76747
|
+
this._slots = ['peer', 'participant', 'rank'];
|
|
76748
|
+
this.peer = params.peer;
|
|
76749
|
+
this.participant = params.participant;
|
|
76750
|
+
this.rank = params.rank;
|
|
76751
|
+
}
|
|
76752
|
+
static async read(_data, ..._args) {
|
|
76753
|
+
let peer = await index_js_1.TLObject.read(_data);
|
|
76754
|
+
let participant = await index_js_1.TLObject.read(_data);
|
|
76755
|
+
let rank = await index_js_1.Primitive.String.read(_data);
|
|
76756
|
+
return new Raw.messages.EditChatParticipantRank({
|
|
76757
|
+
peer: peer,
|
|
76758
|
+
participant: participant,
|
|
76759
|
+
rank: rank,
|
|
76760
|
+
});
|
|
76761
|
+
}
|
|
76762
|
+
write() {
|
|
76763
|
+
const b = new deps_js_1.BytesIO();
|
|
76764
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
76765
|
+
if (this.peer !== undefined) {
|
|
76766
|
+
b.write(this.peer.write());
|
|
76767
|
+
}
|
|
76768
|
+
if (this.participant !== undefined) {
|
|
76769
|
+
b.write(this.participant.write());
|
|
76770
|
+
}
|
|
76771
|
+
if (this.rank !== undefined) {
|
|
76772
|
+
b.write(index_js_1.Primitive.String.write(this.rank));
|
|
76773
|
+
}
|
|
76774
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
76775
|
+
}
|
|
76776
|
+
}
|
|
76777
|
+
messages_1.EditChatParticipantRank = EditChatParticipantRank;
|
|
76778
|
+
class DeclineUrlAuth extends index_js_1.TLObject {
|
|
76779
|
+
__response__;
|
|
76780
|
+
url;
|
|
76781
|
+
constructor(params) {
|
|
76782
|
+
super();
|
|
76783
|
+
this.classType = 'functions';
|
|
76784
|
+
this.className = 'messages.DeclineUrlAuth';
|
|
76785
|
+
this.constructorId = 0x35436bbc;
|
|
76786
|
+
this.subclassOfId = 0xf5b399ac;
|
|
76787
|
+
this._slots = ['url'];
|
|
76788
|
+
this.url = params.url;
|
|
76789
|
+
}
|
|
76790
|
+
static async read(_data, ..._args) {
|
|
76791
|
+
let url = await index_js_1.Primitive.String.read(_data);
|
|
76792
|
+
return new Raw.messages.DeclineUrlAuth({ url: url });
|
|
76793
|
+
}
|
|
76794
|
+
write() {
|
|
76795
|
+
const b = new deps_js_1.BytesIO();
|
|
76796
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
76797
|
+
if (this.url !== undefined) {
|
|
76798
|
+
b.write(index_js_1.Primitive.String.write(this.url));
|
|
76799
|
+
}
|
|
76800
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
76801
|
+
}
|
|
76802
|
+
}
|
|
76803
|
+
messages_1.DeclineUrlAuth = DeclineUrlAuth;
|
|
76804
|
+
class CheckUrlAuthMatchCode extends index_js_1.TLObject {
|
|
76805
|
+
__response__;
|
|
76806
|
+
url;
|
|
76807
|
+
matchCode;
|
|
76808
|
+
constructor(params) {
|
|
76809
|
+
super();
|
|
76810
|
+
this.classType = 'functions';
|
|
76811
|
+
this.className = 'messages.CheckUrlAuthMatchCode';
|
|
76812
|
+
this.constructorId = 0xc9a47b0b;
|
|
76813
|
+
this.subclassOfId = 0xf5b399ac;
|
|
76814
|
+
this._slots = ['url', 'matchCode'];
|
|
76815
|
+
this.url = params.url;
|
|
76816
|
+
this.matchCode = params.matchCode;
|
|
76817
|
+
}
|
|
76818
|
+
static async read(_data, ..._args) {
|
|
76819
|
+
let url = await index_js_1.Primitive.String.read(_data);
|
|
76820
|
+
let matchCode = await index_js_1.Primitive.String.read(_data);
|
|
76821
|
+
return new Raw.messages.CheckUrlAuthMatchCode({ url: url, matchCode: matchCode });
|
|
76822
|
+
}
|
|
76823
|
+
write() {
|
|
76824
|
+
const b = new deps_js_1.BytesIO();
|
|
76825
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
76826
|
+
if (this.url !== undefined) {
|
|
76827
|
+
b.write(index_js_1.Primitive.String.write(this.url));
|
|
76828
|
+
}
|
|
76829
|
+
if (this.matchCode !== undefined) {
|
|
76830
|
+
b.write(index_js_1.Primitive.String.write(this.matchCode));
|
|
76831
|
+
}
|
|
76832
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
76833
|
+
}
|
|
76834
|
+
}
|
|
76835
|
+
messages_1.CheckUrlAuthMatchCode = CheckUrlAuthMatchCode;
|
|
76836
|
+
class ComposeMessageWithAI extends index_js_1.TLObject {
|
|
76837
|
+
__response__;
|
|
76838
|
+
proofread;
|
|
76839
|
+
emojify;
|
|
76840
|
+
text;
|
|
76841
|
+
translateToLang;
|
|
76842
|
+
changeTone;
|
|
76843
|
+
constructor(params) {
|
|
76844
|
+
super();
|
|
76845
|
+
this.classType = 'functions';
|
|
76846
|
+
this.className = 'messages.ComposeMessageWithAI';
|
|
76847
|
+
this.constructorId = 0xfd426afe;
|
|
76848
|
+
this.subclassOfId = 0x140803df;
|
|
76849
|
+
this._slots = ['proofread', 'emojify', 'text', 'translateToLang', 'changeTone'];
|
|
76850
|
+
this.proofread = params.proofread;
|
|
76851
|
+
this.emojify = params.emojify;
|
|
76852
|
+
this.text = params.text;
|
|
76853
|
+
this.translateToLang = params.translateToLang;
|
|
76854
|
+
this.changeTone = params.changeTone;
|
|
76855
|
+
}
|
|
76856
|
+
static async read(_data, ..._args) {
|
|
76857
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
76858
|
+
let proofread = flags & (1 << 0) ? true : false;
|
|
76859
|
+
let emojify = flags & (1 << 3) ? true : false;
|
|
76860
|
+
let text = await index_js_1.TLObject.read(_data);
|
|
76861
|
+
let translateToLang = flags & (1 << 1) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
76862
|
+
let changeTone = flags & (1 << 2) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
76863
|
+
return new Raw.messages.ComposeMessageWithAI({
|
|
76864
|
+
proofread: proofread,
|
|
76865
|
+
emojify: emojify,
|
|
76866
|
+
text: text,
|
|
76867
|
+
translateToLang: translateToLang,
|
|
76868
|
+
changeTone: changeTone,
|
|
76869
|
+
});
|
|
76870
|
+
}
|
|
76871
|
+
write() {
|
|
76872
|
+
const b = new deps_js_1.BytesIO();
|
|
76873
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
76874
|
+
let flags = 0;
|
|
76875
|
+
flags |= this.proofread ? 1 << 0 : 0;
|
|
76876
|
+
flags |= this.emojify ? 1 << 3 : 0;
|
|
76877
|
+
flags |= this.translateToLang !== undefined ? 1 << 1 : 0;
|
|
76878
|
+
flags |= this.changeTone !== undefined ? 1 << 2 : 0;
|
|
76879
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
76880
|
+
if (this.text !== undefined) {
|
|
76881
|
+
b.write(this.text.write());
|
|
76882
|
+
}
|
|
76883
|
+
if (this.translateToLang !== undefined) {
|
|
76884
|
+
b.write(index_js_1.Primitive.String.write(this.translateToLang));
|
|
76885
|
+
}
|
|
76886
|
+
if (this.changeTone !== undefined) {
|
|
76887
|
+
b.write(index_js_1.Primitive.String.write(this.changeTone));
|
|
76888
|
+
}
|
|
76889
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
76890
|
+
}
|
|
76891
|
+
}
|
|
76892
|
+
messages_1.ComposeMessageWithAI = ComposeMessageWithAI;
|
|
76893
|
+
class ReportReadMetrics extends index_js_1.TLObject {
|
|
76894
|
+
__response__;
|
|
76895
|
+
peer;
|
|
76896
|
+
metrics;
|
|
76897
|
+
constructor(params) {
|
|
76898
|
+
super();
|
|
76899
|
+
this.classType = 'functions';
|
|
76900
|
+
this.className = 'messages.ReportReadMetrics';
|
|
76901
|
+
this.constructorId = 0x4067c5e6;
|
|
76902
|
+
this.subclassOfId = 0xf5b399ac;
|
|
76903
|
+
this._slots = ['peer', 'metrics'];
|
|
76904
|
+
this.peer = params.peer;
|
|
76905
|
+
this.metrics = params.metrics;
|
|
76906
|
+
}
|
|
76907
|
+
static async read(_data, ..._args) {
|
|
76908
|
+
let peer = await index_js_1.TLObject.read(_data);
|
|
76909
|
+
let metrics = await index_js_1.TLObject.read(_data);
|
|
76910
|
+
return new Raw.messages.ReportReadMetrics({ peer: peer, metrics: metrics });
|
|
76911
|
+
}
|
|
76912
|
+
write() {
|
|
76913
|
+
const b = new deps_js_1.BytesIO();
|
|
76914
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
76915
|
+
if (this.peer !== undefined) {
|
|
76916
|
+
b.write(this.peer.write());
|
|
76917
|
+
}
|
|
76918
|
+
if (this.metrics) {
|
|
76919
|
+
b.write(index_js_1.Primitive.Vector.write(this.metrics));
|
|
76920
|
+
}
|
|
76921
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
76922
|
+
}
|
|
76923
|
+
}
|
|
76924
|
+
messages_1.ReportReadMetrics = ReportReadMetrics;
|
|
76925
|
+
class ReportMusicListen extends index_js_1.TLObject {
|
|
76926
|
+
__response__;
|
|
76927
|
+
id;
|
|
76928
|
+
listenedDuration;
|
|
76929
|
+
constructor(params) {
|
|
76930
|
+
super();
|
|
76931
|
+
this.classType = 'functions';
|
|
76932
|
+
this.className = 'messages.ReportMusicListen';
|
|
76933
|
+
this.constructorId = 0xddbcd819;
|
|
76934
|
+
this.subclassOfId = 0xf5b399ac;
|
|
76935
|
+
this._slots = ['id', 'listenedDuration'];
|
|
76936
|
+
this.id = params.id;
|
|
76937
|
+
this.listenedDuration = params.listenedDuration;
|
|
76938
|
+
}
|
|
76939
|
+
static async read(_data, ..._args) {
|
|
76940
|
+
let id = await index_js_1.TLObject.read(_data);
|
|
76941
|
+
let listenedDuration = await index_js_1.Primitive.Int.read(_data);
|
|
76942
|
+
return new Raw.messages.ReportMusicListen({ id: id, listenedDuration: listenedDuration });
|
|
76943
|
+
}
|
|
76944
|
+
write() {
|
|
76945
|
+
const b = new deps_js_1.BytesIO();
|
|
76946
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
76947
|
+
if (this.id !== undefined) {
|
|
76948
|
+
b.write(this.id.write());
|
|
76949
|
+
}
|
|
76950
|
+
if (this.listenedDuration !== undefined) {
|
|
76951
|
+
b.write(index_js_1.Primitive.Int.write(this.listenedDuration));
|
|
76952
|
+
}
|
|
76953
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
76954
|
+
}
|
|
76955
|
+
}
|
|
76956
|
+
messages_1.ReportMusicListen = ReportMusicListen;
|
|
76957
|
+
class AddPollAnswer extends index_js_1.TLObject {
|
|
76958
|
+
__response__;
|
|
76959
|
+
peer;
|
|
76960
|
+
msgId;
|
|
76961
|
+
answer;
|
|
76962
|
+
constructor(params) {
|
|
76963
|
+
super();
|
|
76964
|
+
this.classType = 'functions';
|
|
76965
|
+
this.className = 'messages.AddPollAnswer';
|
|
76966
|
+
this.constructorId = 0x19bc4b6d;
|
|
76967
|
+
this.subclassOfId = 0x8af52aac;
|
|
76968
|
+
this._slots = ['peer', 'msgId', 'answer'];
|
|
76969
|
+
this.peer = params.peer;
|
|
76970
|
+
this.msgId = params.msgId;
|
|
76971
|
+
this.answer = params.answer;
|
|
76972
|
+
}
|
|
76973
|
+
static async read(_data, ..._args) {
|
|
76974
|
+
let peer = await index_js_1.TLObject.read(_data);
|
|
76975
|
+
let msgId = await index_js_1.Primitive.Int.read(_data);
|
|
76976
|
+
let answer = await index_js_1.TLObject.read(_data);
|
|
76977
|
+
return new Raw.messages.AddPollAnswer({ peer: peer, msgId: msgId, answer: answer });
|
|
76978
|
+
}
|
|
76979
|
+
write() {
|
|
76980
|
+
const b = new deps_js_1.BytesIO();
|
|
76981
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
76982
|
+
if (this.peer !== undefined) {
|
|
76983
|
+
b.write(this.peer.write());
|
|
76984
|
+
}
|
|
76985
|
+
if (this.msgId !== undefined) {
|
|
76986
|
+
b.write(index_js_1.Primitive.Int.write(this.msgId));
|
|
76987
|
+
}
|
|
76988
|
+
if (this.answer !== undefined) {
|
|
76989
|
+
b.write(this.answer.write());
|
|
76990
|
+
}
|
|
76991
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
76992
|
+
}
|
|
76993
|
+
}
|
|
76994
|
+
messages_1.AddPollAnswer = AddPollAnswer;
|
|
76995
|
+
class DeletePollAnswer extends index_js_1.TLObject {
|
|
76996
|
+
__response__;
|
|
76997
|
+
peer;
|
|
76998
|
+
msgId;
|
|
76999
|
+
option;
|
|
77000
|
+
constructor(params) {
|
|
77001
|
+
super();
|
|
77002
|
+
this.classType = 'functions';
|
|
77003
|
+
this.className = 'messages.DeletePollAnswer';
|
|
77004
|
+
this.constructorId = 0xac8505a5;
|
|
77005
|
+
this.subclassOfId = 0x8af52aac;
|
|
77006
|
+
this._slots = ['peer', 'msgId', 'option'];
|
|
77007
|
+
this.peer = params.peer;
|
|
77008
|
+
this.msgId = params.msgId;
|
|
77009
|
+
this.option = params.option;
|
|
77010
|
+
}
|
|
77011
|
+
static async read(_data, ..._args) {
|
|
77012
|
+
let peer = await index_js_1.TLObject.read(_data);
|
|
77013
|
+
let msgId = await index_js_1.Primitive.Int.read(_data);
|
|
77014
|
+
let option = await index_js_1.Primitive.Bytes.read(_data);
|
|
77015
|
+
return new Raw.messages.DeletePollAnswer({ peer: peer, msgId: msgId, option: option });
|
|
77016
|
+
}
|
|
77017
|
+
write() {
|
|
77018
|
+
const b = new deps_js_1.BytesIO();
|
|
77019
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
77020
|
+
if (this.peer !== undefined) {
|
|
77021
|
+
b.write(this.peer.write());
|
|
77022
|
+
}
|
|
77023
|
+
if (this.msgId !== undefined) {
|
|
77024
|
+
b.write(index_js_1.Primitive.Int.write(this.msgId));
|
|
77025
|
+
}
|
|
77026
|
+
if (this.option !== undefined) {
|
|
77027
|
+
b.write(index_js_1.Primitive.Bytes.write(this.option));
|
|
77028
|
+
}
|
|
77029
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
77030
|
+
}
|
|
77031
|
+
}
|
|
77032
|
+
messages_1.DeletePollAnswer = DeletePollAnswer;
|
|
77033
|
+
class GetUnreadPollVotes extends index_js_1.TLObject {
|
|
77034
|
+
__response__;
|
|
77035
|
+
peer;
|
|
77036
|
+
topMsgId;
|
|
77037
|
+
offsetId;
|
|
77038
|
+
addOffset;
|
|
77039
|
+
limit;
|
|
77040
|
+
maxId;
|
|
77041
|
+
minId;
|
|
77042
|
+
constructor(params) {
|
|
77043
|
+
super();
|
|
77044
|
+
this.classType = 'functions';
|
|
77045
|
+
this.className = 'messages.GetUnreadPollVotes';
|
|
77046
|
+
this.constructorId = 0x43286cf2;
|
|
77047
|
+
this.subclassOfId = 0xd4b40b5e;
|
|
77048
|
+
this._slots = ['peer', 'topMsgId', 'offsetId', 'addOffset', 'limit', 'maxId', 'minId'];
|
|
77049
|
+
this.peer = params.peer;
|
|
77050
|
+
this.topMsgId = params.topMsgId;
|
|
77051
|
+
this.offsetId = params.offsetId;
|
|
77052
|
+
this.addOffset = params.addOffset;
|
|
77053
|
+
this.limit = params.limit;
|
|
77054
|
+
this.maxId = params.maxId;
|
|
77055
|
+
this.minId = params.minId;
|
|
77056
|
+
}
|
|
77057
|
+
static async read(_data, ..._args) {
|
|
77058
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
77059
|
+
let peer = await index_js_1.TLObject.read(_data);
|
|
77060
|
+
let topMsgId = flags & (1 << 0) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
77061
|
+
let offsetId = await index_js_1.Primitive.Int.read(_data);
|
|
77062
|
+
let addOffset = await index_js_1.Primitive.Int.read(_data);
|
|
77063
|
+
let limit = await index_js_1.Primitive.Int.read(_data);
|
|
77064
|
+
let maxId = await index_js_1.Primitive.Int.read(_data);
|
|
77065
|
+
let minId = await index_js_1.Primitive.Int.read(_data);
|
|
77066
|
+
return new Raw.messages.GetUnreadPollVotes({
|
|
77067
|
+
peer: peer,
|
|
77068
|
+
topMsgId: topMsgId,
|
|
77069
|
+
offsetId: offsetId,
|
|
77070
|
+
addOffset: addOffset,
|
|
77071
|
+
limit: limit,
|
|
77072
|
+
maxId: maxId,
|
|
77073
|
+
minId: minId,
|
|
77074
|
+
});
|
|
77075
|
+
}
|
|
77076
|
+
write() {
|
|
77077
|
+
const b = new deps_js_1.BytesIO();
|
|
77078
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
77079
|
+
let flags = 0;
|
|
77080
|
+
flags |= this.topMsgId !== undefined ? 1 << 0 : 0;
|
|
77081
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
77082
|
+
if (this.peer !== undefined) {
|
|
77083
|
+
b.write(this.peer.write());
|
|
77084
|
+
}
|
|
77085
|
+
if (this.topMsgId !== undefined) {
|
|
77086
|
+
b.write(index_js_1.Primitive.Int.write(this.topMsgId));
|
|
77087
|
+
}
|
|
77088
|
+
if (this.offsetId !== undefined) {
|
|
77089
|
+
b.write(index_js_1.Primitive.Int.write(this.offsetId));
|
|
77090
|
+
}
|
|
77091
|
+
if (this.addOffset !== undefined) {
|
|
77092
|
+
b.write(index_js_1.Primitive.Int.write(this.addOffset));
|
|
77093
|
+
}
|
|
77094
|
+
if (this.limit !== undefined) {
|
|
77095
|
+
b.write(index_js_1.Primitive.Int.write(this.limit));
|
|
77096
|
+
}
|
|
77097
|
+
if (this.maxId !== undefined) {
|
|
77098
|
+
b.write(index_js_1.Primitive.Int.write(this.maxId));
|
|
77099
|
+
}
|
|
77100
|
+
if (this.minId !== undefined) {
|
|
77101
|
+
b.write(index_js_1.Primitive.Int.write(this.minId));
|
|
77102
|
+
}
|
|
77103
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
77104
|
+
}
|
|
77105
|
+
}
|
|
77106
|
+
messages_1.GetUnreadPollVotes = GetUnreadPollVotes;
|
|
77107
|
+
class ReadPollVotes extends index_js_1.TLObject {
|
|
77108
|
+
__response__;
|
|
77109
|
+
peer;
|
|
77110
|
+
topMsgId;
|
|
77111
|
+
constructor(params) {
|
|
77112
|
+
super();
|
|
77113
|
+
this.classType = 'functions';
|
|
77114
|
+
this.className = 'messages.ReadPollVotes';
|
|
77115
|
+
this.constructorId = 0x1720b4d8;
|
|
77116
|
+
this.subclassOfId = 0x2c49c116;
|
|
77117
|
+
this._slots = ['peer', 'topMsgId'];
|
|
77118
|
+
this.peer = params.peer;
|
|
77119
|
+
this.topMsgId = params.topMsgId;
|
|
77120
|
+
}
|
|
77121
|
+
static async read(_data, ..._args) {
|
|
77122
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
77123
|
+
let peer = await index_js_1.TLObject.read(_data);
|
|
77124
|
+
let topMsgId = flags & (1 << 0) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
77125
|
+
return new Raw.messages.ReadPollVotes({ peer: peer, topMsgId: topMsgId });
|
|
77126
|
+
}
|
|
77127
|
+
write() {
|
|
77128
|
+
const b = new deps_js_1.BytesIO();
|
|
77129
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
77130
|
+
let flags = 0;
|
|
77131
|
+
flags |= this.topMsgId !== undefined ? 1 << 0 : 0;
|
|
77132
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
77133
|
+
if (this.peer !== undefined) {
|
|
77134
|
+
b.write(this.peer.write());
|
|
77135
|
+
}
|
|
77136
|
+
if (this.topMsgId !== undefined) {
|
|
77137
|
+
b.write(index_js_1.Primitive.Int.write(this.topMsgId));
|
|
77138
|
+
}
|
|
77139
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
77140
|
+
}
|
|
77141
|
+
}
|
|
77142
|
+
messages_1.ReadPollVotes = ReadPollVotes;
|
|
75503
77143
|
})(messages = Raw.messages || (Raw.messages = {}));
|
|
75504
77144
|
let updates;
|
|
75505
77145
|
(function (updates) {
|
|
@@ -82713,7 +84353,7 @@ var Raw;
|
|
|
82713
84353
|
super();
|
|
82714
84354
|
this.classType = 'functions';
|
|
82715
84355
|
this.className = 'channels.EditAdmin';
|
|
82716
|
-
this.constructorId =
|
|
84356
|
+
this.constructorId = 0x9a98ad68;
|
|
82717
84357
|
this.subclassOfId = 0x8af52aac;
|
|
82718
84358
|
this._slots = ['channel', 'userId', 'adminRights', 'rank'];
|
|
82719
84359
|
this.channel = params.channel;
|
|
@@ -82722,10 +84362,11 @@ var Raw;
|
|
|
82722
84362
|
this.rank = params.rank;
|
|
82723
84363
|
}
|
|
82724
84364
|
static async read(_data, ..._args) {
|
|
84365
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
82725
84366
|
let channel = await index_js_1.TLObject.read(_data);
|
|
82726
84367
|
let userId = await index_js_1.TLObject.read(_data);
|
|
82727
84368
|
let adminRights = await index_js_1.TLObject.read(_data);
|
|
82728
|
-
let rank = await index_js_1.Primitive.String.read(_data);
|
|
84369
|
+
let rank = flags & (1 << 0) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
82729
84370
|
return new Raw.channels.EditAdmin({
|
|
82730
84371
|
channel: channel,
|
|
82731
84372
|
userId: userId,
|
|
@@ -82736,6 +84377,9 @@ var Raw;
|
|
|
82736
84377
|
write() {
|
|
82737
84378
|
const b = new deps_js_1.BytesIO();
|
|
82738
84379
|
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
84380
|
+
let flags = 0;
|
|
84381
|
+
flags |= this.rank !== undefined ? 1 << 0 : 0;
|
|
84382
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
82739
84383
|
if (this.channel !== undefined) {
|
|
82740
84384
|
b.write(this.channel.write());
|
|
82741
84385
|
}
|
|
@@ -83452,48 +85096,6 @@ var Raw;
|
|
|
83452
85096
|
}
|
|
83453
85097
|
}
|
|
83454
85098
|
channels.SetDiscussionGroup = SetDiscussionGroup;
|
|
83455
|
-
class EditCreator extends index_js_1.TLObject {
|
|
83456
|
-
__response__;
|
|
83457
|
-
channel;
|
|
83458
|
-
userId;
|
|
83459
|
-
password;
|
|
83460
|
-
constructor(params) {
|
|
83461
|
-
super();
|
|
83462
|
-
this.classType = 'functions';
|
|
83463
|
-
this.className = 'channels.EditCreator';
|
|
83464
|
-
this.constructorId = 0x8f38cd1f;
|
|
83465
|
-
this.subclassOfId = 0x8af52aac;
|
|
83466
|
-
this._slots = ['channel', 'userId', 'password'];
|
|
83467
|
-
this.channel = params.channel;
|
|
83468
|
-
this.userId = params.userId;
|
|
83469
|
-
this.password = params.password;
|
|
83470
|
-
}
|
|
83471
|
-
static async read(_data, ..._args) {
|
|
83472
|
-
let channel = await index_js_1.TLObject.read(_data);
|
|
83473
|
-
let userId = await index_js_1.TLObject.read(_data);
|
|
83474
|
-
let password = await index_js_1.TLObject.read(_data);
|
|
83475
|
-
return new Raw.channels.EditCreator({
|
|
83476
|
-
channel: channel,
|
|
83477
|
-
userId: userId,
|
|
83478
|
-
password: password,
|
|
83479
|
-
});
|
|
83480
|
-
}
|
|
83481
|
-
write() {
|
|
83482
|
-
const b = new deps_js_1.BytesIO();
|
|
83483
|
-
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
83484
|
-
if (this.channel !== undefined) {
|
|
83485
|
-
b.write(this.channel.write());
|
|
83486
|
-
}
|
|
83487
|
-
if (this.userId !== undefined) {
|
|
83488
|
-
b.write(this.userId.write());
|
|
83489
|
-
}
|
|
83490
|
-
if (this.password !== undefined) {
|
|
83491
|
-
b.write(this.password.write());
|
|
83492
|
-
}
|
|
83493
|
-
return deps_js_1.Buffer.from(b.buffer);
|
|
83494
|
-
}
|
|
83495
|
-
}
|
|
83496
|
-
channels.EditCreator = EditCreator;
|
|
83497
85099
|
class EditLocation extends index_js_1.TLObject {
|
|
83498
85100
|
__response__;
|
|
83499
85101
|
channel;
|
|
@@ -84489,32 +86091,6 @@ var Raw;
|
|
|
84489
86091
|
}
|
|
84490
86092
|
}
|
|
84491
86093
|
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;
|
|
84518
86094
|
})(channels = Raw.channels || (Raw.channels = {}));
|
|
84519
86095
|
let payments;
|
|
84520
86096
|
(function (payments) {
|
|
@@ -88257,6 +89833,7 @@ var Raw;
|
|
|
88257
89833
|
sortByPrice;
|
|
88258
89834
|
sortByNum;
|
|
88259
89835
|
forCraft;
|
|
89836
|
+
starsOnly;
|
|
88260
89837
|
attributesHash;
|
|
88261
89838
|
giftId;
|
|
88262
89839
|
attributes;
|
|
@@ -88272,6 +89849,7 @@ var Raw;
|
|
|
88272
89849
|
'sortByPrice',
|
|
88273
89850
|
'sortByNum',
|
|
88274
89851
|
'forCraft',
|
|
89852
|
+
'starsOnly',
|
|
88275
89853
|
'attributesHash',
|
|
88276
89854
|
'giftId',
|
|
88277
89855
|
'attributes',
|
|
@@ -88281,6 +89859,7 @@ var Raw;
|
|
|
88281
89859
|
this.sortByPrice = params.sortByPrice;
|
|
88282
89860
|
this.sortByNum = params.sortByNum;
|
|
88283
89861
|
this.forCraft = params.forCraft;
|
|
89862
|
+
this.starsOnly = params.starsOnly;
|
|
88284
89863
|
this.attributesHash = params.attributesHash;
|
|
88285
89864
|
this.giftId = params.giftId;
|
|
88286
89865
|
this.attributes = params.attributes;
|
|
@@ -88292,6 +89871,7 @@ var Raw;
|
|
|
88292
89871
|
let sortByPrice = flags & (1 << 1) ? true : false;
|
|
88293
89872
|
let sortByNum = flags & (1 << 2) ? true : false;
|
|
88294
89873
|
let forCraft = flags & (1 << 4) ? true : false;
|
|
89874
|
+
let starsOnly = flags & (1 << 5) ? true : false;
|
|
88295
89875
|
let attributesHash = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
|
|
88296
89876
|
let giftId = await index_js_1.Primitive.Long.read(_data);
|
|
88297
89877
|
let attributes = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : [];
|
|
@@ -88301,6 +89881,7 @@ var Raw;
|
|
|
88301
89881
|
sortByPrice: sortByPrice,
|
|
88302
89882
|
sortByNum: sortByNum,
|
|
88303
89883
|
forCraft: forCraft,
|
|
89884
|
+
starsOnly: starsOnly,
|
|
88304
89885
|
attributesHash: attributesHash,
|
|
88305
89886
|
giftId: giftId,
|
|
88306
89887
|
attributes: attributes,
|
|
@@ -88315,6 +89896,7 @@ var Raw;
|
|
|
88315
89896
|
flags |= this.sortByPrice ? 1 << 1 : 0;
|
|
88316
89897
|
flags |= this.sortByNum ? 1 << 2 : 0;
|
|
88317
89898
|
flags |= this.forCraft ? 1 << 4 : 0;
|
|
89899
|
+
flags |= this.starsOnly ? 1 << 5 : 0;
|
|
88318
89900
|
flags |= this.attributesHash !== undefined ? 1 << 0 : 0;
|
|
88319
89901
|
flags |= this.attributes ? 1 << 3 : 0;
|
|
88320
89902
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
@@ -93298,6 +94880,56 @@ var Raw;
|
|
|
93298
94880
|
}
|
|
93299
94881
|
}
|
|
93300
94882
|
bots.PreviewInfo = PreviewInfo;
|
|
94883
|
+
class ExportedBotToken extends index_js_1.TLObject {
|
|
94884
|
+
token;
|
|
94885
|
+
constructor(params) {
|
|
94886
|
+
super();
|
|
94887
|
+
this.classType = 'types';
|
|
94888
|
+
this.className = 'bots.ExportedBotToken';
|
|
94889
|
+
this.constructorId = 0x3c60b621;
|
|
94890
|
+
this.subclassOfId = 0x78496c77;
|
|
94891
|
+
this._slots = ['token'];
|
|
94892
|
+
this.token = params.token;
|
|
94893
|
+
}
|
|
94894
|
+
static async read(_data, ..._args) {
|
|
94895
|
+
let token = await index_js_1.Primitive.String.read(_data);
|
|
94896
|
+
return new Raw.bots.ExportedBotToken({ token: token });
|
|
94897
|
+
}
|
|
94898
|
+
write() {
|
|
94899
|
+
const b = new deps_js_1.BytesIO();
|
|
94900
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
94901
|
+
if (this.token !== undefined) {
|
|
94902
|
+
b.write(index_js_1.Primitive.String.write(this.token));
|
|
94903
|
+
}
|
|
94904
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
94905
|
+
}
|
|
94906
|
+
}
|
|
94907
|
+
bots.ExportedBotToken = ExportedBotToken;
|
|
94908
|
+
class RequestedButton extends index_js_1.TLObject {
|
|
94909
|
+
webappReqId;
|
|
94910
|
+
constructor(params) {
|
|
94911
|
+
super();
|
|
94912
|
+
this.classType = 'types';
|
|
94913
|
+
this.className = 'bots.RequestedButton';
|
|
94914
|
+
this.constructorId = 0xf13bbcd7;
|
|
94915
|
+
this.subclassOfId = 0xf9df53a;
|
|
94916
|
+
this._slots = ['webappReqId'];
|
|
94917
|
+
this.webappReqId = params.webappReqId;
|
|
94918
|
+
}
|
|
94919
|
+
static async read(_data, ..._args) {
|
|
94920
|
+
let webappReqId = await index_js_1.Primitive.String.read(_data);
|
|
94921
|
+
return new Raw.bots.RequestedButton({ webappReqId: webappReqId });
|
|
94922
|
+
}
|
|
94923
|
+
write() {
|
|
94924
|
+
const b = new deps_js_1.BytesIO();
|
|
94925
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
94926
|
+
if (this.webappReqId !== undefined) {
|
|
94927
|
+
b.write(index_js_1.Primitive.String.write(this.webappReqId));
|
|
94928
|
+
}
|
|
94929
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
94930
|
+
}
|
|
94931
|
+
}
|
|
94932
|
+
bots.RequestedButton = RequestedButton;
|
|
93301
94933
|
class SendCustomRequest extends index_js_1.TLObject {
|
|
93302
94934
|
__response__;
|
|
93303
94935
|
customMethod;
|
|
@@ -94340,6 +95972,178 @@ var Raw;
|
|
|
94340
95972
|
}
|
|
94341
95973
|
}
|
|
94342
95974
|
bots.GetBotRecommendations = GetBotRecommendations;
|
|
95975
|
+
class CheckUsername extends index_js_1.TLObject {
|
|
95976
|
+
__response__;
|
|
95977
|
+
username;
|
|
95978
|
+
constructor(params) {
|
|
95979
|
+
super();
|
|
95980
|
+
this.classType = 'functions';
|
|
95981
|
+
this.className = 'bots.CheckUsername';
|
|
95982
|
+
this.constructorId = 0x87f2219b;
|
|
95983
|
+
this.subclassOfId = 0xf5b399ac;
|
|
95984
|
+
this._slots = ['username'];
|
|
95985
|
+
this.username = params.username;
|
|
95986
|
+
}
|
|
95987
|
+
static async read(_data, ..._args) {
|
|
95988
|
+
let username = await index_js_1.Primitive.String.read(_data);
|
|
95989
|
+
return new Raw.bots.CheckUsername({ username: username });
|
|
95990
|
+
}
|
|
95991
|
+
write() {
|
|
95992
|
+
const b = new deps_js_1.BytesIO();
|
|
95993
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
95994
|
+
if (this.username !== undefined) {
|
|
95995
|
+
b.write(index_js_1.Primitive.String.write(this.username));
|
|
95996
|
+
}
|
|
95997
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
95998
|
+
}
|
|
95999
|
+
}
|
|
96000
|
+
bots.CheckUsername = CheckUsername;
|
|
96001
|
+
class CreateBot extends index_js_1.TLObject {
|
|
96002
|
+
__response__;
|
|
96003
|
+
viaDeeplink;
|
|
96004
|
+
name;
|
|
96005
|
+
username;
|
|
96006
|
+
managerId;
|
|
96007
|
+
constructor(params) {
|
|
96008
|
+
super();
|
|
96009
|
+
this.classType = 'functions';
|
|
96010
|
+
this.className = 'bots.CreateBot';
|
|
96011
|
+
this.constructorId = 0xe5b17f2b;
|
|
96012
|
+
this.subclassOfId = 0x2da17977;
|
|
96013
|
+
this._slots = ['viaDeeplink', 'name', 'username', 'managerId'];
|
|
96014
|
+
this.viaDeeplink = params.viaDeeplink;
|
|
96015
|
+
this.name = params.name;
|
|
96016
|
+
this.username = params.username;
|
|
96017
|
+
this.managerId = params.managerId;
|
|
96018
|
+
}
|
|
96019
|
+
static async read(_data, ..._args) {
|
|
96020
|
+
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
96021
|
+
let viaDeeplink = flags & (1 << 0) ? true : false;
|
|
96022
|
+
let name = await index_js_1.Primitive.String.read(_data);
|
|
96023
|
+
let username = await index_js_1.Primitive.String.read(_data);
|
|
96024
|
+
let managerId = await index_js_1.TLObject.read(_data);
|
|
96025
|
+
return new Raw.bots.CreateBot({
|
|
96026
|
+
viaDeeplink: viaDeeplink,
|
|
96027
|
+
name: name,
|
|
96028
|
+
username: username,
|
|
96029
|
+
managerId: managerId,
|
|
96030
|
+
});
|
|
96031
|
+
}
|
|
96032
|
+
write() {
|
|
96033
|
+
const b = new deps_js_1.BytesIO();
|
|
96034
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
96035
|
+
let flags = 0;
|
|
96036
|
+
flags |= this.viaDeeplink ? 1 << 0 : 0;
|
|
96037
|
+
b.write(index_js_1.Primitive.Int.write(flags));
|
|
96038
|
+
if (this.name !== undefined) {
|
|
96039
|
+
b.write(index_js_1.Primitive.String.write(this.name));
|
|
96040
|
+
}
|
|
96041
|
+
if (this.username !== undefined) {
|
|
96042
|
+
b.write(index_js_1.Primitive.String.write(this.username));
|
|
96043
|
+
}
|
|
96044
|
+
if (this.managerId !== undefined) {
|
|
96045
|
+
b.write(this.managerId.write());
|
|
96046
|
+
}
|
|
96047
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
96048
|
+
}
|
|
96049
|
+
}
|
|
96050
|
+
bots.CreateBot = CreateBot;
|
|
96051
|
+
class ExportBotToken extends index_js_1.TLObject {
|
|
96052
|
+
__response__;
|
|
96053
|
+
bot;
|
|
96054
|
+
revoke;
|
|
96055
|
+
constructor(params) {
|
|
96056
|
+
super();
|
|
96057
|
+
this.classType = 'functions';
|
|
96058
|
+
this.className = 'bots.ExportBotToken';
|
|
96059
|
+
this.constructorId = 0xbd0d99eb;
|
|
96060
|
+
this.subclassOfId = 0x78496c77;
|
|
96061
|
+
this._slots = ['bot', 'revoke'];
|
|
96062
|
+
this.bot = params.bot;
|
|
96063
|
+
this.revoke = params.revoke;
|
|
96064
|
+
}
|
|
96065
|
+
static async read(_data, ..._args) {
|
|
96066
|
+
let bot = await index_js_1.TLObject.read(_data);
|
|
96067
|
+
let revoke = await index_js_1.Primitive.Bool.read(_data);
|
|
96068
|
+
return new Raw.bots.ExportBotToken({ bot: bot, revoke: revoke });
|
|
96069
|
+
}
|
|
96070
|
+
write() {
|
|
96071
|
+
const b = new deps_js_1.BytesIO();
|
|
96072
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
96073
|
+
if (this.bot !== undefined) {
|
|
96074
|
+
b.write(this.bot.write());
|
|
96075
|
+
}
|
|
96076
|
+
if (this.revoke !== undefined) {
|
|
96077
|
+
b.write(index_js_1.Primitive.Bool.write(this.revoke));
|
|
96078
|
+
}
|
|
96079
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
96080
|
+
}
|
|
96081
|
+
}
|
|
96082
|
+
bots.ExportBotToken = ExportBotToken;
|
|
96083
|
+
class RequestWebViewButton extends index_js_1.TLObject {
|
|
96084
|
+
__response__;
|
|
96085
|
+
userId;
|
|
96086
|
+
button;
|
|
96087
|
+
constructor(params) {
|
|
96088
|
+
super();
|
|
96089
|
+
this.classType = 'functions';
|
|
96090
|
+
this.className = 'bots.RequestWebViewButton';
|
|
96091
|
+
this.constructorId = 0x31a2a35e;
|
|
96092
|
+
this.subclassOfId = 0xf9df53a;
|
|
96093
|
+
this._slots = ['userId', 'button'];
|
|
96094
|
+
this.userId = params.userId;
|
|
96095
|
+
this.button = params.button;
|
|
96096
|
+
}
|
|
96097
|
+
static async read(_data, ..._args) {
|
|
96098
|
+
let userId = await index_js_1.TLObject.read(_data);
|
|
96099
|
+
let button = await index_js_1.TLObject.read(_data);
|
|
96100
|
+
return new Raw.bots.RequestWebViewButton({ userId: userId, button: button });
|
|
96101
|
+
}
|
|
96102
|
+
write() {
|
|
96103
|
+
const b = new deps_js_1.BytesIO();
|
|
96104
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
96105
|
+
if (this.userId !== undefined) {
|
|
96106
|
+
b.write(this.userId.write());
|
|
96107
|
+
}
|
|
96108
|
+
if (this.button !== undefined) {
|
|
96109
|
+
b.write(this.button.write());
|
|
96110
|
+
}
|
|
96111
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
96112
|
+
}
|
|
96113
|
+
}
|
|
96114
|
+
bots.RequestWebViewButton = RequestWebViewButton;
|
|
96115
|
+
class GetRequestedWebViewButton extends index_js_1.TLObject {
|
|
96116
|
+
__response__;
|
|
96117
|
+
bot;
|
|
96118
|
+
webappReqId;
|
|
96119
|
+
constructor(params) {
|
|
96120
|
+
super();
|
|
96121
|
+
this.classType = 'functions';
|
|
96122
|
+
this.className = 'bots.GetRequestedWebViewButton';
|
|
96123
|
+
this.constructorId = 0xbf25b7f3;
|
|
96124
|
+
this.subclassOfId = 0xbad74a3;
|
|
96125
|
+
this._slots = ['bot', 'webappReqId'];
|
|
96126
|
+
this.bot = params.bot;
|
|
96127
|
+
this.webappReqId = params.webappReqId;
|
|
96128
|
+
}
|
|
96129
|
+
static async read(_data, ..._args) {
|
|
96130
|
+
let bot = await index_js_1.TLObject.read(_data);
|
|
96131
|
+
let webappReqId = await index_js_1.Primitive.String.read(_data);
|
|
96132
|
+
return new Raw.bots.GetRequestedWebViewButton({ bot: bot, webappReqId: webappReqId });
|
|
96133
|
+
}
|
|
96134
|
+
write() {
|
|
96135
|
+
const b = new deps_js_1.BytesIO();
|
|
96136
|
+
b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
|
|
96137
|
+
if (this.bot !== undefined) {
|
|
96138
|
+
b.write(this.bot.write());
|
|
96139
|
+
}
|
|
96140
|
+
if (this.webappReqId !== undefined) {
|
|
96141
|
+
b.write(index_js_1.Primitive.String.write(this.webappReqId));
|
|
96142
|
+
}
|
|
96143
|
+
return deps_js_1.Buffer.from(b.buffer);
|
|
96144
|
+
}
|
|
96145
|
+
}
|
|
96146
|
+
bots.GetRequestedWebViewButton = GetRequestedWebViewButton;
|
|
94343
96147
|
})(bots = Raw.bots || (Raw.bots = {}));
|
|
94344
96148
|
let stories;
|
|
94345
96149
|
(function (stories_1) {
|
|
@@ -94898,11 +96702,12 @@ var Raw;
|
|
|
94898
96702
|
fwdFromId;
|
|
94899
96703
|
fwdFromStory;
|
|
94900
96704
|
albums;
|
|
96705
|
+
music;
|
|
94901
96706
|
constructor(params) {
|
|
94902
96707
|
super();
|
|
94903
96708
|
this.classType = 'functions';
|
|
94904
96709
|
this.className = 'stories.SendStory';
|
|
94905
|
-
this.constructorId =
|
|
96710
|
+
this.constructorId = 0x8f9e6898;
|
|
94906
96711
|
this.subclassOfId = 0x8af52aac;
|
|
94907
96712
|
this._slots = [
|
|
94908
96713
|
'pinned',
|
|
@@ -94919,6 +96724,7 @@ var Raw;
|
|
|
94919
96724
|
'fwdFromId',
|
|
94920
96725
|
'fwdFromStory',
|
|
94921
96726
|
'albums',
|
|
96727
|
+
'music',
|
|
94922
96728
|
];
|
|
94923
96729
|
this.pinned = params.pinned;
|
|
94924
96730
|
this.noforwards = params.noforwards;
|
|
@@ -94934,6 +96740,7 @@ var Raw;
|
|
|
94934
96740
|
this.fwdFromId = params.fwdFromId;
|
|
94935
96741
|
this.fwdFromStory = params.fwdFromStory;
|
|
94936
96742
|
this.albums = params.albums;
|
|
96743
|
+
this.music = params.music;
|
|
94937
96744
|
}
|
|
94938
96745
|
static async read(_data, ..._args) {
|
|
94939
96746
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -94951,6 +96758,7 @@ var Raw;
|
|
|
94951
96758
|
let fwdFromId = flags & (1 << 6) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
94952
96759
|
let fwdFromStory = flags & (1 << 6) ? await index_js_1.Primitive.Int.read(_data) : undefined;
|
|
94953
96760
|
let albums = flags & (1 << 8) ? await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int) : [];
|
|
96761
|
+
let music = flags & (1 << 9) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
94954
96762
|
return new Raw.stories.SendStory({
|
|
94955
96763
|
pinned: pinned,
|
|
94956
96764
|
noforwards: noforwards,
|
|
@@ -94966,6 +96774,7 @@ var Raw;
|
|
|
94966
96774
|
fwdFromId: fwdFromId,
|
|
94967
96775
|
fwdFromStory: fwdFromStory,
|
|
94968
96776
|
albums: albums,
|
|
96777
|
+
music: music,
|
|
94969
96778
|
});
|
|
94970
96779
|
}
|
|
94971
96780
|
write() {
|
|
@@ -94982,6 +96791,7 @@ var Raw;
|
|
|
94982
96791
|
flags |= this.fwdFromId !== undefined ? 1 << 6 : 0;
|
|
94983
96792
|
flags |= this.fwdFromStory !== undefined ? 1 << 6 : 0;
|
|
94984
96793
|
flags |= this.albums ? 1 << 8 : 0;
|
|
96794
|
+
flags |= this.music !== undefined ? 1 << 9 : 0;
|
|
94985
96795
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
94986
96796
|
if (this.peer !== undefined) {
|
|
94987
96797
|
b.write(this.peer.write());
|
|
@@ -95016,6 +96826,9 @@ var Raw;
|
|
|
95016
96826
|
if (this.albums) {
|
|
95017
96827
|
b.write(index_js_1.Primitive.Vector.write(this.albums, index_js_1.Primitive.Int));
|
|
95018
96828
|
}
|
|
96829
|
+
if (this.music !== undefined) {
|
|
96830
|
+
b.write(this.music.write());
|
|
96831
|
+
}
|
|
95019
96832
|
return deps_js_1.Buffer.from(b.buffer);
|
|
95020
96833
|
}
|
|
95021
96834
|
}
|
|
@@ -95029,13 +96842,23 @@ var Raw;
|
|
|
95029
96842
|
caption;
|
|
95030
96843
|
entities;
|
|
95031
96844
|
privacyRules;
|
|
96845
|
+
music;
|
|
95032
96846
|
constructor(params) {
|
|
95033
96847
|
super();
|
|
95034
96848
|
this.classType = 'functions';
|
|
95035
96849
|
this.className = 'stories.EditStory';
|
|
95036
|
-
this.constructorId =
|
|
96850
|
+
this.constructorId = 0x2c63a72b;
|
|
95037
96851
|
this.subclassOfId = 0x8af52aac;
|
|
95038
|
-
this._slots = [
|
|
96852
|
+
this._slots = [
|
|
96853
|
+
'peer',
|
|
96854
|
+
'id',
|
|
96855
|
+
'media',
|
|
96856
|
+
'mediaAreas',
|
|
96857
|
+
'caption',
|
|
96858
|
+
'entities',
|
|
96859
|
+
'privacyRules',
|
|
96860
|
+
'music',
|
|
96861
|
+
];
|
|
95039
96862
|
this.peer = params.peer;
|
|
95040
96863
|
this.id = params.id;
|
|
95041
96864
|
this.media = params.media;
|
|
@@ -95043,6 +96866,7 @@ var Raw;
|
|
|
95043
96866
|
this.caption = params.caption;
|
|
95044
96867
|
this.entities = params.entities;
|
|
95045
96868
|
this.privacyRules = params.privacyRules;
|
|
96869
|
+
this.music = params.music;
|
|
95046
96870
|
}
|
|
95047
96871
|
static async read(_data, ..._args) {
|
|
95048
96872
|
let flags = await index_js_1.Primitive.Int.read(_data);
|
|
@@ -95053,6 +96877,7 @@ var Raw;
|
|
|
95053
96877
|
let caption = flags & (1 << 1) ? await index_js_1.Primitive.String.read(_data) : undefined;
|
|
95054
96878
|
let entities = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : [];
|
|
95055
96879
|
let privacyRules = flags & (1 << 2) ? await index_js_1.TLObject.read(_data) : [];
|
|
96880
|
+
let music = flags & (1 << 4) ? await index_js_1.TLObject.read(_data) : undefined;
|
|
95056
96881
|
return new Raw.stories.EditStory({
|
|
95057
96882
|
peer: peer,
|
|
95058
96883
|
id: id,
|
|
@@ -95061,6 +96886,7 @@ var Raw;
|
|
|
95061
96886
|
caption: caption,
|
|
95062
96887
|
entities: entities,
|
|
95063
96888
|
privacyRules: privacyRules,
|
|
96889
|
+
music: music,
|
|
95064
96890
|
});
|
|
95065
96891
|
}
|
|
95066
96892
|
write() {
|
|
@@ -95072,6 +96898,7 @@ var Raw;
|
|
|
95072
96898
|
flags |= this.caption !== undefined ? 1 << 1 : 0;
|
|
95073
96899
|
flags |= this.entities ? 1 << 1 : 0;
|
|
95074
96900
|
flags |= this.privacyRules ? 1 << 2 : 0;
|
|
96901
|
+
flags |= this.music !== undefined ? 1 << 4 : 0;
|
|
95075
96902
|
b.write(index_js_1.Primitive.Int.write(flags));
|
|
95076
96903
|
if (this.peer !== undefined) {
|
|
95077
96904
|
b.write(this.peer.write());
|
|
@@ -95094,6 +96921,9 @@ var Raw;
|
|
|
95094
96921
|
if (this.privacyRules) {
|
|
95095
96922
|
b.write(index_js_1.Primitive.Vector.write(this.privacyRules));
|
|
95096
96923
|
}
|
|
96924
|
+
if (this.music !== undefined) {
|
|
96925
|
+
b.write(this.music.write());
|
|
96926
|
+
}
|
|
95097
96927
|
return deps_js_1.Buffer.from(b.buffer);
|
|
95098
96928
|
}
|
|
95099
96929
|
}
|