@tgsnake/skema 2.0.0 → 2.1.0-browser.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/src/deps.d.ts +4 -3
- package/dist/src/deps.js +4 -4
- package/dist/src/raw/All.d.ts +72 -19
- package/dist/src/raw/All.js +72 -19
- package/dist/src/raw/Raw.d.ts +995 -15
- package/dist/src/raw/Raw.js +2568 -61
- package/package.json +54 -52
package/dist/src/raw/Raw.js
CHANGED
|
@@ -23,7 +23,7 @@ export var Raw;
|
|
|
23
23
|
/**
|
|
24
24
|
* The Telegram layer we using.
|
|
25
25
|
*/
|
|
26
|
-
Raw.Layer =
|
|
26
|
+
Raw.Layer = 227;
|
|
27
27
|
/**
|
|
28
28
|
* The highest telegram secret chat schema layer.
|
|
29
29
|
*/
|
|
@@ -5093,6 +5093,7 @@ export var Raw;
|
|
|
5093
5093
|
botForumCanManageTopics;
|
|
5094
5094
|
botCanManageBots;
|
|
5095
5095
|
botGuestchat;
|
|
5096
|
+
botGuard;
|
|
5096
5097
|
id;
|
|
5097
5098
|
accessHash;
|
|
5098
5099
|
firstName;
|
|
@@ -5149,6 +5150,7 @@ export var Raw;
|
|
|
5149
5150
|
'botForumCanManageTopics',
|
|
5150
5151
|
'botCanManageBots',
|
|
5151
5152
|
'botGuestchat',
|
|
5153
|
+
'botGuard',
|
|
5152
5154
|
'id',
|
|
5153
5155
|
'accessHash',
|
|
5154
5156
|
'firstName',
|
|
@@ -5199,6 +5201,7 @@ export var Raw;
|
|
|
5199
5201
|
this.botForumCanManageTopics = params.botForumCanManageTopics;
|
|
5200
5202
|
this.botCanManageBots = params.botCanManageBots;
|
|
5201
5203
|
this.botGuestchat = params.botGuestchat;
|
|
5204
|
+
this.botGuard = params.botGuard;
|
|
5202
5205
|
this.id = params.id;
|
|
5203
5206
|
this.accessHash = params.accessHash;
|
|
5204
5207
|
this.firstName = params.firstName;
|
|
@@ -5258,6 +5261,7 @@ export var Raw;
|
|
|
5258
5261
|
let botForumCanManageTopics = flags2 & (1 << 17) ? true : false;
|
|
5259
5262
|
let botCanManageBots = flags2 & (1 << 18) ? true : false;
|
|
5260
5263
|
let botGuestchat = flags2 & (1 << 19) ? true : false;
|
|
5264
|
+
let botGuard = flags2 & (1 << 20) ? true : false;
|
|
5261
5265
|
let id = await Primitive.Long.read(_data);
|
|
5262
5266
|
let accessHash = flags & (1 << 0) ? await Primitive.Long.read(_data) : undefined;
|
|
5263
5267
|
let firstName = flags & (1 << 1) ? await Primitive.String.read(_data) : undefined;
|
|
@@ -5308,6 +5312,7 @@ export var Raw;
|
|
|
5308
5312
|
botForumCanManageTopics: botForumCanManageTopics,
|
|
5309
5313
|
botCanManageBots: botCanManageBots,
|
|
5310
5314
|
botGuestchat: botGuestchat,
|
|
5315
|
+
botGuard: botGuard,
|
|
5311
5316
|
id: id,
|
|
5312
5317
|
accessHash: accessHash,
|
|
5313
5318
|
firstName: firstName,
|
|
@@ -5382,6 +5387,7 @@ export var Raw;
|
|
|
5382
5387
|
flags2 |= this.botForumCanManageTopics ? 1 << 17 : 0;
|
|
5383
5388
|
flags2 |= this.botCanManageBots ? 1 << 18 : 0;
|
|
5384
5389
|
flags2 |= this.botGuestchat ? 1 << 19 : 0;
|
|
5390
|
+
flags2 |= this.botGuard ? 1 << 20 : 0;
|
|
5385
5391
|
flags2 |= this.usernames ? 1 << 0 : 0;
|
|
5386
5392
|
flags2 |= this.storiesMaxId !== undefined ? 1 << 5 : 0;
|
|
5387
5393
|
flags2 |= this.color !== undefined ? 1 << 8 : 0;
|
|
@@ -6707,11 +6713,12 @@ export var Raw;
|
|
|
6707
6713
|
stargiftsCount;
|
|
6708
6714
|
sendPaidMessagesStars;
|
|
6709
6715
|
mainTab;
|
|
6716
|
+
guardBotId;
|
|
6710
6717
|
constructor(params) {
|
|
6711
6718
|
super();
|
|
6712
6719
|
this.classType = 'types';
|
|
6713
6720
|
this.className = 'ChannelFull';
|
|
6714
|
-
this.constructorId =
|
|
6721
|
+
this.constructorId = 0xa04e8d3a;
|
|
6715
6722
|
this.subclassOfId = 0xd49a2697;
|
|
6716
6723
|
this._slots = [
|
|
6717
6724
|
'canViewParticipants',
|
|
@@ -6780,6 +6787,7 @@ export var Raw;
|
|
|
6780
6787
|
'stargiftsCount',
|
|
6781
6788
|
'sendPaidMessagesStars',
|
|
6782
6789
|
'mainTab',
|
|
6790
|
+
'guardBotId',
|
|
6783
6791
|
];
|
|
6784
6792
|
this.canViewParticipants = params.canViewParticipants;
|
|
6785
6793
|
this.canSetUsername = params.canSetUsername;
|
|
@@ -6847,6 +6855,7 @@ export var Raw;
|
|
|
6847
6855
|
this.stargiftsCount = params.stargiftsCount;
|
|
6848
6856
|
this.sendPaidMessagesStars = params.sendPaidMessagesStars;
|
|
6849
6857
|
this.mainTab = params.mainTab;
|
|
6858
|
+
this.guardBotId = params.guardBotId;
|
|
6850
6859
|
}
|
|
6851
6860
|
/**
|
|
6852
6861
|
* Generate the TLObject from buffer.
|
|
@@ -6923,6 +6932,7 @@ export var Raw;
|
|
|
6923
6932
|
let stargiftsCount = flags2 & (1 << 18) ? await Primitive.Int.read(_data) : undefined;
|
|
6924
6933
|
let sendPaidMessagesStars = flags2 & (1 << 21) ? await Primitive.Long.read(_data) : undefined;
|
|
6925
6934
|
let mainTab = flags2 & (1 << 22) ? await TLObject.read(_data) : undefined;
|
|
6935
|
+
let guardBotId = flags2 & (1 << 23) ? await Primitive.Long.read(_data) : undefined;
|
|
6926
6936
|
return new Raw.ChannelFull({
|
|
6927
6937
|
canViewParticipants: canViewParticipants,
|
|
6928
6938
|
canSetUsername: canSetUsername,
|
|
@@ -6990,6 +7000,7 @@ export var Raw;
|
|
|
6990
7000
|
stargiftsCount: stargiftsCount,
|
|
6991
7001
|
sendPaidMessagesStars: sendPaidMessagesStars,
|
|
6992
7002
|
mainTab: mainTab,
|
|
7003
|
+
guardBotId: guardBotId,
|
|
6993
7004
|
});
|
|
6994
7005
|
}
|
|
6995
7006
|
/**
|
|
@@ -7060,6 +7071,7 @@ export var Raw;
|
|
|
7060
7071
|
flags2 |= this.stargiftsCount !== undefined ? 1 << 18 : 0;
|
|
7061
7072
|
flags2 |= this.sendPaidMessagesStars !== undefined ? 1 << 21 : 0;
|
|
7062
7073
|
flags2 |= this.mainTab !== undefined ? 1 << 22 : 0;
|
|
7074
|
+
flags2 |= this.guardBotId !== undefined ? 1 << 23 : 0;
|
|
7063
7075
|
b.write(Primitive.Int.write(flags2));
|
|
7064
7076
|
if (this.id !== undefined) {
|
|
7065
7077
|
b.write(Primitive.Long.write(this.id));
|
|
@@ -7196,6 +7208,9 @@ export var Raw;
|
|
|
7196
7208
|
if (this.mainTab !== undefined) {
|
|
7197
7209
|
b.write(this.mainTab.write());
|
|
7198
7210
|
}
|
|
7211
|
+
if (this.guardBotId !== undefined) {
|
|
7212
|
+
b.write(Primitive.Long.write(this.guardBotId));
|
|
7213
|
+
}
|
|
7199
7214
|
return Buffer.from(b.buffer);
|
|
7200
7215
|
}
|
|
7201
7216
|
}
|
|
@@ -7643,11 +7658,12 @@ export var Raw;
|
|
|
7643
7658
|
suggestedPost;
|
|
7644
7659
|
scheduleRepeatPeriod;
|
|
7645
7660
|
summaryFromLanguage;
|
|
7661
|
+
richMessage;
|
|
7646
7662
|
constructor(params) {
|
|
7647
7663
|
super();
|
|
7648
7664
|
this.classType = 'types';
|
|
7649
7665
|
this.className = 'Message';
|
|
7650
|
-
this.constructorId =
|
|
7666
|
+
this.constructorId = 0x7600b9d3;
|
|
7651
7667
|
this.subclassOfId = 0x790009e3;
|
|
7652
7668
|
this._slots = [
|
|
7653
7669
|
'out',
|
|
@@ -7698,6 +7714,7 @@ export var Raw;
|
|
|
7698
7714
|
'suggestedPost',
|
|
7699
7715
|
'scheduleRepeatPeriod',
|
|
7700
7716
|
'summaryFromLanguage',
|
|
7717
|
+
'richMessage',
|
|
7701
7718
|
];
|
|
7702
7719
|
this.out = params.out;
|
|
7703
7720
|
this.mentioned = params.mentioned;
|
|
@@ -7747,6 +7764,7 @@ export var Raw;
|
|
|
7747
7764
|
this.suggestedPost = params.suggestedPost;
|
|
7748
7765
|
this.scheduleRepeatPeriod = params.scheduleRepeatPeriod;
|
|
7749
7766
|
this.summaryFromLanguage = params.summaryFromLanguage;
|
|
7767
|
+
this.richMessage = params.richMessage;
|
|
7750
7768
|
}
|
|
7751
7769
|
/**
|
|
7752
7770
|
* Generate the TLObject from buffer.
|
|
@@ -7805,6 +7823,7 @@ export var Raw;
|
|
|
7805
7823
|
let suggestedPost = flags2 & (1 << 7) ? await TLObject.read(_data) : undefined;
|
|
7806
7824
|
let scheduleRepeatPeriod = flags2 & (1 << 10) ? await Primitive.Int.read(_data) : undefined;
|
|
7807
7825
|
let summaryFromLanguage = flags2 & (1 << 11) ? await Primitive.String.read(_data) : undefined;
|
|
7826
|
+
let richMessage = flags2 & (1 << 13) ? await TLObject.read(_data) : undefined;
|
|
7808
7827
|
return new Raw.Message({
|
|
7809
7828
|
out: out,
|
|
7810
7829
|
mentioned: mentioned,
|
|
@@ -7854,6 +7873,7 @@ export var Raw;
|
|
|
7854
7873
|
suggestedPost: suggestedPost,
|
|
7855
7874
|
scheduleRepeatPeriod: scheduleRepeatPeriod,
|
|
7856
7875
|
summaryFromLanguage: summaryFromLanguage,
|
|
7876
|
+
richMessage: richMessage,
|
|
7857
7877
|
});
|
|
7858
7878
|
}
|
|
7859
7879
|
/**
|
|
@@ -7911,6 +7931,7 @@ export var Raw;
|
|
|
7911
7931
|
flags2 |= this.suggestedPost !== undefined ? 1 << 7 : 0;
|
|
7912
7932
|
flags2 |= this.scheduleRepeatPeriod !== undefined ? 1 << 10 : 0;
|
|
7913
7933
|
flags2 |= this.summaryFromLanguage !== undefined ? 1 << 11 : 0;
|
|
7934
|
+
flags2 |= this.richMessage !== undefined ? 1 << 13 : 0;
|
|
7914
7935
|
b.write(Primitive.Int.write(flags2));
|
|
7915
7936
|
if (this.id !== undefined) {
|
|
7916
7937
|
b.write(Primitive.Int.write(this.id));
|
|
@@ -8011,6 +8032,9 @@ export var Raw;
|
|
|
8011
8032
|
if (this.summaryFromLanguage !== undefined) {
|
|
8012
8033
|
b.write(Primitive.String.write(this.summaryFromLanguage));
|
|
8013
8034
|
}
|
|
8035
|
+
if (this.richMessage !== undefined) {
|
|
8036
|
+
b.write(this.richMessage.write());
|
|
8037
|
+
}
|
|
8014
8038
|
return Buffer.from(b.buffer);
|
|
8015
8039
|
}
|
|
8016
8040
|
}
|
|
@@ -20187,32 +20211,36 @@ export var Raw;
|
|
|
20187
20211
|
about;
|
|
20188
20212
|
invite;
|
|
20189
20213
|
qts;
|
|
20214
|
+
queryId;
|
|
20190
20215
|
constructor(params) {
|
|
20191
20216
|
super();
|
|
20192
20217
|
this.classType = 'types';
|
|
20193
20218
|
this.className = 'UpdateBotChatInviteRequester';
|
|
20194
|
-
this.constructorId =
|
|
20219
|
+
this.constructorId = 0x7cb34d79;
|
|
20195
20220
|
this.subclassOfId = 0x9f89304e;
|
|
20196
|
-
this._slots = ['peer', 'date', 'userId', 'about', 'invite', 'qts'];
|
|
20221
|
+
this._slots = ['peer', 'date', 'userId', 'about', 'invite', 'qts', 'queryId'];
|
|
20197
20222
|
this.peer = params.peer;
|
|
20198
20223
|
this.date = params.date;
|
|
20199
20224
|
this.userId = params.userId;
|
|
20200
20225
|
this.about = params.about;
|
|
20201
20226
|
this.invite = params.invite;
|
|
20202
20227
|
this.qts = params.qts;
|
|
20228
|
+
this.queryId = params.queryId;
|
|
20203
20229
|
}
|
|
20204
20230
|
/**
|
|
20205
20231
|
* Generate the TLObject from buffer.
|
|
20206
20232
|
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
20207
20233
|
*/
|
|
20208
20234
|
static async read(_data, ..._args) {
|
|
20209
|
-
//
|
|
20235
|
+
// @ts-ignore
|
|
20236
|
+
let flags = await Primitive.Int.read(_data);
|
|
20210
20237
|
let peer = await TLObject.read(_data);
|
|
20211
20238
|
let date = await Primitive.Int.read(_data);
|
|
20212
20239
|
let userId = await Primitive.Long.read(_data);
|
|
20213
20240
|
let about = await Primitive.String.read(_data);
|
|
20214
20241
|
let invite = await TLObject.read(_data);
|
|
20215
20242
|
let qts = await Primitive.Int.read(_data);
|
|
20243
|
+
let queryId = flags & (1 << 0) ? await Primitive.Long.read(_data) : undefined;
|
|
20216
20244
|
return new Raw.UpdateBotChatInviteRequester({
|
|
20217
20245
|
peer: peer,
|
|
20218
20246
|
date: date,
|
|
@@ -20220,6 +20248,7 @@ export var Raw;
|
|
|
20220
20248
|
about: about,
|
|
20221
20249
|
invite: invite,
|
|
20222
20250
|
qts: qts,
|
|
20251
|
+
queryId: queryId,
|
|
20223
20252
|
});
|
|
20224
20253
|
}
|
|
20225
20254
|
/**
|
|
@@ -20228,7 +20257,10 @@ export var Raw;
|
|
|
20228
20257
|
write() {
|
|
20229
20258
|
const b = new BytesIO();
|
|
20230
20259
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
20231
|
-
//
|
|
20260
|
+
// @ts-ignore
|
|
20261
|
+
let flags = 0;
|
|
20262
|
+
flags |= this.queryId !== undefined ? 1 << 0 : 0;
|
|
20263
|
+
b.write(Primitive.Int.write(flags));
|
|
20232
20264
|
if (this.peer !== undefined) {
|
|
20233
20265
|
b.write(this.peer.write());
|
|
20234
20266
|
}
|
|
@@ -20247,6 +20279,9 @@ export var Raw;
|
|
|
20247
20279
|
if (this.qts !== undefined) {
|
|
20248
20280
|
b.write(Primitive.Int.write(this.qts));
|
|
20249
20281
|
}
|
|
20282
|
+
if (this.queryId !== undefined) {
|
|
20283
|
+
b.write(Primitive.Long.write(this.queryId));
|
|
20284
|
+
}
|
|
20250
20285
|
return Buffer.from(b.buffer);
|
|
20251
20286
|
}
|
|
20252
20287
|
}
|
|
@@ -22904,6 +22939,218 @@ export var Raw;
|
|
|
22904
22939
|
}
|
|
22905
22940
|
}
|
|
22906
22941
|
Raw.UpdateAiComposeTones = UpdateAiComposeTones;
|
|
22942
|
+
class UpdateJoinChatWebViewDecision extends TLObject {
|
|
22943
|
+
peer;
|
|
22944
|
+
queryId;
|
|
22945
|
+
result;
|
|
22946
|
+
constructor(params) {
|
|
22947
|
+
super();
|
|
22948
|
+
this.classType = 'types';
|
|
22949
|
+
this.className = 'UpdateJoinChatWebViewDecision';
|
|
22950
|
+
this.constructorId = 0xbdac7e70;
|
|
22951
|
+
this.subclassOfId = 0x9f89304e;
|
|
22952
|
+
this._slots = ['peer', 'queryId', 'result'];
|
|
22953
|
+
this.peer = params.peer;
|
|
22954
|
+
this.queryId = params.queryId;
|
|
22955
|
+
this.result = params.result;
|
|
22956
|
+
}
|
|
22957
|
+
/**
|
|
22958
|
+
* Generate the TLObject from buffer.
|
|
22959
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
22960
|
+
*/
|
|
22961
|
+
static async read(_data, ..._args) {
|
|
22962
|
+
// no flags
|
|
22963
|
+
let peer = await TLObject.read(_data);
|
|
22964
|
+
let queryId = await Primitive.Long.read(_data);
|
|
22965
|
+
let result = await TLObject.read(_data);
|
|
22966
|
+
return new Raw.UpdateJoinChatWebViewDecision({
|
|
22967
|
+
peer: peer,
|
|
22968
|
+
queryId: queryId,
|
|
22969
|
+
result: result,
|
|
22970
|
+
});
|
|
22971
|
+
}
|
|
22972
|
+
/**
|
|
22973
|
+
* Generate buffer from TLObject.
|
|
22974
|
+
*/
|
|
22975
|
+
write() {
|
|
22976
|
+
const b = new BytesIO();
|
|
22977
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
22978
|
+
// no flags
|
|
22979
|
+
if (this.peer !== undefined) {
|
|
22980
|
+
b.write(this.peer.write());
|
|
22981
|
+
}
|
|
22982
|
+
if (this.queryId !== undefined) {
|
|
22983
|
+
b.write(Primitive.Long.write(this.queryId));
|
|
22984
|
+
}
|
|
22985
|
+
if (this.result !== undefined) {
|
|
22986
|
+
b.write(this.result.write());
|
|
22987
|
+
}
|
|
22988
|
+
return Buffer.from(b.buffer);
|
|
22989
|
+
}
|
|
22990
|
+
}
|
|
22991
|
+
Raw.UpdateJoinChatWebViewDecision = UpdateJoinChatWebViewDecision;
|
|
22992
|
+
class UpdateNewBotConnection extends TLObject {
|
|
22993
|
+
confirmed;
|
|
22994
|
+
botId;
|
|
22995
|
+
date;
|
|
22996
|
+
device;
|
|
22997
|
+
location;
|
|
22998
|
+
constructor(params) {
|
|
22999
|
+
super();
|
|
23000
|
+
this.classType = 'types';
|
|
23001
|
+
this.className = 'UpdateNewBotConnection';
|
|
23002
|
+
this.constructorId = 0xb22083a6;
|
|
23003
|
+
this.subclassOfId = 0x9f89304e;
|
|
23004
|
+
this._slots = ['confirmed', 'botId', 'date', 'device', 'location'];
|
|
23005
|
+
this.confirmed = params.confirmed;
|
|
23006
|
+
this.botId = params.botId;
|
|
23007
|
+
this.date = params.date;
|
|
23008
|
+
this.device = params.device;
|
|
23009
|
+
this.location = params.location;
|
|
23010
|
+
}
|
|
23011
|
+
/**
|
|
23012
|
+
* Generate the TLObject from buffer.
|
|
23013
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
23014
|
+
*/
|
|
23015
|
+
static async read(_data, ..._args) {
|
|
23016
|
+
// @ts-ignore
|
|
23017
|
+
let flags = await Primitive.Int.read(_data);
|
|
23018
|
+
let confirmed = flags & (1 << 0) ? true : false;
|
|
23019
|
+
let botId = await Primitive.Long.read(_data);
|
|
23020
|
+
let date = flags & (1 << 1) ? await Primitive.Int.read(_data) : undefined;
|
|
23021
|
+
let device = flags & (1 << 1) ? await Primitive.String.read(_data) : undefined;
|
|
23022
|
+
let location = flags & (1 << 1) ? await Primitive.String.read(_data) : undefined;
|
|
23023
|
+
return new Raw.UpdateNewBotConnection({
|
|
23024
|
+
confirmed: confirmed,
|
|
23025
|
+
botId: botId,
|
|
23026
|
+
date: date,
|
|
23027
|
+
device: device,
|
|
23028
|
+
location: location,
|
|
23029
|
+
});
|
|
23030
|
+
}
|
|
23031
|
+
/**
|
|
23032
|
+
* Generate buffer from TLObject.
|
|
23033
|
+
*/
|
|
23034
|
+
write() {
|
|
23035
|
+
const b = new BytesIO();
|
|
23036
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
23037
|
+
// @ts-ignore
|
|
23038
|
+
let flags = 0;
|
|
23039
|
+
flags |= this.confirmed ? 1 << 0 : 0;
|
|
23040
|
+
flags |= this.date !== undefined ? 1 << 1 : 0;
|
|
23041
|
+
flags |= this.device !== undefined ? 1 << 1 : 0;
|
|
23042
|
+
flags |= this.location !== undefined ? 1 << 1 : 0;
|
|
23043
|
+
b.write(Primitive.Int.write(flags));
|
|
23044
|
+
if (this.botId !== undefined) {
|
|
23045
|
+
b.write(Primitive.Long.write(this.botId));
|
|
23046
|
+
}
|
|
23047
|
+
if (this.date !== undefined) {
|
|
23048
|
+
b.write(Primitive.Int.write(this.date));
|
|
23049
|
+
}
|
|
23050
|
+
if (this.device !== undefined) {
|
|
23051
|
+
b.write(Primitive.String.write(this.device));
|
|
23052
|
+
}
|
|
23053
|
+
if (this.location !== undefined) {
|
|
23054
|
+
b.write(Primitive.String.write(this.location));
|
|
23055
|
+
}
|
|
23056
|
+
return Buffer.from(b.buffer);
|
|
23057
|
+
}
|
|
23058
|
+
}
|
|
23059
|
+
Raw.UpdateNewBotConnection = UpdateNewBotConnection;
|
|
23060
|
+
class UpdateWebBrowserSettings extends TLObject {
|
|
23061
|
+
openExternalBrowser;
|
|
23062
|
+
displayCloseButton;
|
|
23063
|
+
constructor(params) {
|
|
23064
|
+
super();
|
|
23065
|
+
this.classType = 'types';
|
|
23066
|
+
this.className = 'UpdateWebBrowserSettings';
|
|
23067
|
+
this.constructorId = 0xc39a2ade;
|
|
23068
|
+
this.subclassOfId = 0x9f89304e;
|
|
23069
|
+
this._slots = ['openExternalBrowser', 'displayCloseButton'];
|
|
23070
|
+
this.openExternalBrowser = params.openExternalBrowser;
|
|
23071
|
+
this.displayCloseButton = params.displayCloseButton;
|
|
23072
|
+
}
|
|
23073
|
+
/**
|
|
23074
|
+
* Generate the TLObject from buffer.
|
|
23075
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
23076
|
+
*/
|
|
23077
|
+
static async read(_data, ..._args) {
|
|
23078
|
+
// @ts-ignore
|
|
23079
|
+
let flags = await Primitive.Int.read(_data);
|
|
23080
|
+
let openExternalBrowser = flags & (1 << 0) ? true : false;
|
|
23081
|
+
let displayCloseButton = flags & (1 << 1) ? true : false;
|
|
23082
|
+
return new Raw.UpdateWebBrowserSettings({
|
|
23083
|
+
openExternalBrowser: openExternalBrowser,
|
|
23084
|
+
displayCloseButton: displayCloseButton,
|
|
23085
|
+
});
|
|
23086
|
+
}
|
|
23087
|
+
/**
|
|
23088
|
+
* Generate buffer from TLObject.
|
|
23089
|
+
*/
|
|
23090
|
+
write() {
|
|
23091
|
+
const b = new BytesIO();
|
|
23092
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
23093
|
+
// @ts-ignore
|
|
23094
|
+
let flags = 0;
|
|
23095
|
+
flags |= this.openExternalBrowser ? 1 << 0 : 0;
|
|
23096
|
+
flags |= this.displayCloseButton ? 1 << 1 : 0;
|
|
23097
|
+
b.write(Primitive.Int.write(flags));
|
|
23098
|
+
return Buffer.from(b.buffer);
|
|
23099
|
+
}
|
|
23100
|
+
}
|
|
23101
|
+
Raw.UpdateWebBrowserSettings = UpdateWebBrowserSettings;
|
|
23102
|
+
class UpdateWebBrowserException extends TLObject {
|
|
23103
|
+
delete;
|
|
23104
|
+
openExternalBrowser;
|
|
23105
|
+
exception;
|
|
23106
|
+
constructor(params) {
|
|
23107
|
+
super();
|
|
23108
|
+
this.classType = 'types';
|
|
23109
|
+
this.className = 'UpdateWebBrowserException';
|
|
23110
|
+
this.constructorId = 0x140502d1;
|
|
23111
|
+
this.subclassOfId = 0x9f89304e;
|
|
23112
|
+
this._slots = ['delete', 'openExternalBrowser', 'exception'];
|
|
23113
|
+
this.delete = params.delete;
|
|
23114
|
+
this.openExternalBrowser = params.openExternalBrowser;
|
|
23115
|
+
this.exception = params.exception;
|
|
23116
|
+
}
|
|
23117
|
+
/**
|
|
23118
|
+
* Generate the TLObject from buffer.
|
|
23119
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
23120
|
+
*/
|
|
23121
|
+
static async read(_data, ..._args) {
|
|
23122
|
+
// @ts-ignore
|
|
23123
|
+
let flags = await Primitive.Int.read(_data);
|
|
23124
|
+
let _delete = flags & (1 << 1) ? true : false;
|
|
23125
|
+
let openExternalBrowser = flags & (1 << 0) ? await Primitive.Bool.read(_data) : undefined;
|
|
23126
|
+
let exception = await TLObject.read(_data);
|
|
23127
|
+
return new Raw.UpdateWebBrowserException({
|
|
23128
|
+
delete: _delete,
|
|
23129
|
+
openExternalBrowser: openExternalBrowser,
|
|
23130
|
+
exception: exception,
|
|
23131
|
+
});
|
|
23132
|
+
}
|
|
23133
|
+
/**
|
|
23134
|
+
* Generate buffer from TLObject.
|
|
23135
|
+
*/
|
|
23136
|
+
write() {
|
|
23137
|
+
const b = new BytesIO();
|
|
23138
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
23139
|
+
// @ts-ignore
|
|
23140
|
+
let flags = 0;
|
|
23141
|
+
flags |= this.delete ? 1 << 1 : 0;
|
|
23142
|
+
flags |= this.openExternalBrowser !== undefined ? 1 << 0 : 0;
|
|
23143
|
+
b.write(Primitive.Int.write(flags));
|
|
23144
|
+
if (this.openExternalBrowser !== undefined) {
|
|
23145
|
+
b.write(Primitive.Bool.write(this.openExternalBrowser));
|
|
23146
|
+
}
|
|
23147
|
+
if (this.exception !== undefined) {
|
|
23148
|
+
b.write(this.exception.write());
|
|
23149
|
+
}
|
|
23150
|
+
return Buffer.from(b.buffer);
|
|
23151
|
+
}
|
|
23152
|
+
}
|
|
23153
|
+
Raw.UpdateWebBrowserException = UpdateWebBrowserException;
|
|
22907
23154
|
class UpdatesTooLong extends TLObject {
|
|
22908
23155
|
constructor() {
|
|
22909
23156
|
super();
|
|
@@ -25790,6 +26037,92 @@ export var Raw;
|
|
|
25790
26037
|
}
|
|
25791
26038
|
}
|
|
25792
26039
|
Raw.SendMessageTextDraftAction = SendMessageTextDraftAction;
|
|
26040
|
+
class InputSendMessageRichMessageDraftAction extends TLObject {
|
|
26041
|
+
randomId;
|
|
26042
|
+
richMessage;
|
|
26043
|
+
constructor(params) {
|
|
26044
|
+
super();
|
|
26045
|
+
this.classType = 'types';
|
|
26046
|
+
this.className = 'InputSendMessageRichMessageDraftAction';
|
|
26047
|
+
this.constructorId = 0xe2b23b51;
|
|
26048
|
+
this.subclassOfId = 0x20b2cc21;
|
|
26049
|
+
this._slots = ['randomId', 'richMessage'];
|
|
26050
|
+
this.randomId = params.randomId;
|
|
26051
|
+
this.richMessage = params.richMessage;
|
|
26052
|
+
}
|
|
26053
|
+
/**
|
|
26054
|
+
* Generate the TLObject from buffer.
|
|
26055
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
26056
|
+
*/
|
|
26057
|
+
static async read(_data, ..._args) {
|
|
26058
|
+
// no flags
|
|
26059
|
+
let randomId = await Primitive.Long.read(_data);
|
|
26060
|
+
let richMessage = await TLObject.read(_data);
|
|
26061
|
+
return new Raw.InputSendMessageRichMessageDraftAction({
|
|
26062
|
+
randomId: randomId,
|
|
26063
|
+
richMessage: richMessage,
|
|
26064
|
+
});
|
|
26065
|
+
}
|
|
26066
|
+
/**
|
|
26067
|
+
* Generate buffer from TLObject.
|
|
26068
|
+
*/
|
|
26069
|
+
write() {
|
|
26070
|
+
const b = new BytesIO();
|
|
26071
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
26072
|
+
// no flags
|
|
26073
|
+
if (this.randomId !== undefined) {
|
|
26074
|
+
b.write(Primitive.Long.write(this.randomId));
|
|
26075
|
+
}
|
|
26076
|
+
if (this.richMessage !== undefined) {
|
|
26077
|
+
b.write(this.richMessage.write());
|
|
26078
|
+
}
|
|
26079
|
+
return Buffer.from(b.buffer);
|
|
26080
|
+
}
|
|
26081
|
+
}
|
|
26082
|
+
Raw.InputSendMessageRichMessageDraftAction = InputSendMessageRichMessageDraftAction;
|
|
26083
|
+
class SendMessageRichMessageDraftAction extends TLObject {
|
|
26084
|
+
randomId;
|
|
26085
|
+
richMessage;
|
|
26086
|
+
constructor(params) {
|
|
26087
|
+
super();
|
|
26088
|
+
this.classType = 'types';
|
|
26089
|
+
this.className = 'SendMessageRichMessageDraftAction';
|
|
26090
|
+
this.constructorId = 0xa2cb24f9;
|
|
26091
|
+
this.subclassOfId = 0x20b2cc21;
|
|
26092
|
+
this._slots = ['randomId', 'richMessage'];
|
|
26093
|
+
this.randomId = params.randomId;
|
|
26094
|
+
this.richMessage = params.richMessage;
|
|
26095
|
+
}
|
|
26096
|
+
/**
|
|
26097
|
+
* Generate the TLObject from buffer.
|
|
26098
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
26099
|
+
*/
|
|
26100
|
+
static async read(_data, ..._args) {
|
|
26101
|
+
// no flags
|
|
26102
|
+
let randomId = await Primitive.Long.read(_data);
|
|
26103
|
+
let richMessage = await TLObject.read(_data);
|
|
26104
|
+
return new Raw.SendMessageRichMessageDraftAction({
|
|
26105
|
+
randomId: randomId,
|
|
26106
|
+
richMessage: richMessage,
|
|
26107
|
+
});
|
|
26108
|
+
}
|
|
26109
|
+
/**
|
|
26110
|
+
* Generate buffer from TLObject.
|
|
26111
|
+
*/
|
|
26112
|
+
write() {
|
|
26113
|
+
const b = new BytesIO();
|
|
26114
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
26115
|
+
// no flags
|
|
26116
|
+
if (this.randomId !== undefined) {
|
|
26117
|
+
b.write(Primitive.Long.write(this.randomId));
|
|
26118
|
+
}
|
|
26119
|
+
if (this.richMessage !== undefined) {
|
|
26120
|
+
b.write(this.richMessage.write());
|
|
26121
|
+
}
|
|
26122
|
+
return Buffer.from(b.buffer);
|
|
26123
|
+
}
|
|
26124
|
+
}
|
|
26125
|
+
Raw.SendMessageRichMessageDraftAction = SendMessageRichMessageDraftAction;
|
|
25793
26126
|
class InputPrivacyKeyStatusTimestamp extends TLObject {
|
|
25794
26127
|
constructor() {
|
|
25795
26128
|
super();
|
|
@@ -33217,6 +33550,53 @@ export var Raw;
|
|
|
33217
33550
|
}
|
|
33218
33551
|
}
|
|
33219
33552
|
Raw.InputBotInlineMessageMediaWebPage = InputBotInlineMessageMediaWebPage;
|
|
33553
|
+
class InputBotInlineMessageRichMessage extends TLObject {
|
|
33554
|
+
replyMarkup;
|
|
33555
|
+
richMessage;
|
|
33556
|
+
constructor(params) {
|
|
33557
|
+
super();
|
|
33558
|
+
this.classType = 'types';
|
|
33559
|
+
this.className = 'InputBotInlineMessageRichMessage';
|
|
33560
|
+
this.constructorId = 0xb43df56c;
|
|
33561
|
+
this.subclassOfId = 0x53fb4010;
|
|
33562
|
+
this._slots = ['replyMarkup', 'richMessage'];
|
|
33563
|
+
this.replyMarkup = params.replyMarkup;
|
|
33564
|
+
this.richMessage = params.richMessage;
|
|
33565
|
+
}
|
|
33566
|
+
/**
|
|
33567
|
+
* Generate the TLObject from buffer.
|
|
33568
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
33569
|
+
*/
|
|
33570
|
+
static async read(_data, ..._args) {
|
|
33571
|
+
// @ts-ignore
|
|
33572
|
+
let flags = await Primitive.Int.read(_data);
|
|
33573
|
+
let replyMarkup = flags & (1 << 2) ? await TLObject.read(_data) : undefined;
|
|
33574
|
+
let richMessage = await TLObject.read(_data);
|
|
33575
|
+
return new Raw.InputBotInlineMessageRichMessage({
|
|
33576
|
+
replyMarkup: replyMarkup,
|
|
33577
|
+
richMessage: richMessage,
|
|
33578
|
+
});
|
|
33579
|
+
}
|
|
33580
|
+
/**
|
|
33581
|
+
* Generate buffer from TLObject.
|
|
33582
|
+
*/
|
|
33583
|
+
write() {
|
|
33584
|
+
const b = new BytesIO();
|
|
33585
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
33586
|
+
// @ts-ignore
|
|
33587
|
+
let flags = 0;
|
|
33588
|
+
flags |= this.replyMarkup !== undefined ? 1 << 2 : 0;
|
|
33589
|
+
b.write(Primitive.Int.write(flags));
|
|
33590
|
+
if (this.replyMarkup !== undefined) {
|
|
33591
|
+
b.write(this.replyMarkup.write());
|
|
33592
|
+
}
|
|
33593
|
+
if (this.richMessage !== undefined) {
|
|
33594
|
+
b.write(this.richMessage.write());
|
|
33595
|
+
}
|
|
33596
|
+
return Buffer.from(b.buffer);
|
|
33597
|
+
}
|
|
33598
|
+
}
|
|
33599
|
+
Raw.InputBotInlineMessageRichMessage = InputBotInlineMessageRichMessage;
|
|
33220
33600
|
class InputBotInlineResult extends TLObject {
|
|
33221
33601
|
id;
|
|
33222
33602
|
type;
|
|
@@ -34040,6 +34420,53 @@ export var Raw;
|
|
|
34040
34420
|
}
|
|
34041
34421
|
}
|
|
34042
34422
|
Raw.BotInlineMessageMediaWebPage = BotInlineMessageMediaWebPage;
|
|
34423
|
+
class BotInlineMessageRichMessage extends TLObject {
|
|
34424
|
+
replyMarkup;
|
|
34425
|
+
richMessage;
|
|
34426
|
+
constructor(params) {
|
|
34427
|
+
super();
|
|
34428
|
+
this.classType = 'types';
|
|
34429
|
+
this.className = 'BotInlineMessageRichMessage';
|
|
34430
|
+
this.constructorId = 0xa617e7b;
|
|
34431
|
+
this.subclassOfId = 0xc4910f88;
|
|
34432
|
+
this._slots = ['replyMarkup', 'richMessage'];
|
|
34433
|
+
this.replyMarkup = params.replyMarkup;
|
|
34434
|
+
this.richMessage = params.richMessage;
|
|
34435
|
+
}
|
|
34436
|
+
/**
|
|
34437
|
+
* Generate the TLObject from buffer.
|
|
34438
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
34439
|
+
*/
|
|
34440
|
+
static async read(_data, ..._args) {
|
|
34441
|
+
// @ts-ignore
|
|
34442
|
+
let flags = await Primitive.Int.read(_data);
|
|
34443
|
+
let replyMarkup = flags & (1 << 2) ? await TLObject.read(_data) : undefined;
|
|
34444
|
+
let richMessage = await TLObject.read(_data);
|
|
34445
|
+
return new Raw.BotInlineMessageRichMessage({
|
|
34446
|
+
replyMarkup: replyMarkup,
|
|
34447
|
+
richMessage: richMessage,
|
|
34448
|
+
});
|
|
34449
|
+
}
|
|
34450
|
+
/**
|
|
34451
|
+
* Generate buffer from TLObject.
|
|
34452
|
+
*/
|
|
34453
|
+
write() {
|
|
34454
|
+
const b = new BytesIO();
|
|
34455
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
34456
|
+
// @ts-ignore
|
|
34457
|
+
let flags = 0;
|
|
34458
|
+
flags |= this.replyMarkup !== undefined ? 1 << 2 : 0;
|
|
34459
|
+
b.write(Primitive.Int.write(flags));
|
|
34460
|
+
if (this.replyMarkup !== undefined) {
|
|
34461
|
+
b.write(this.replyMarkup.write());
|
|
34462
|
+
}
|
|
34463
|
+
if (this.richMessage !== undefined) {
|
|
34464
|
+
b.write(this.richMessage.write());
|
|
34465
|
+
}
|
|
34466
|
+
return Buffer.from(b.buffer);
|
|
34467
|
+
}
|
|
34468
|
+
}
|
|
34469
|
+
Raw.BotInlineMessageRichMessage = BotInlineMessageRichMessage;
|
|
34043
34470
|
class BotInlineResult extends TLObject {
|
|
34044
34471
|
id;
|
|
34045
34472
|
type;
|
|
@@ -34967,11 +35394,12 @@ export var Raw;
|
|
|
34967
35394
|
date;
|
|
34968
35395
|
effect;
|
|
34969
35396
|
suggestedPost;
|
|
35397
|
+
richMessage;
|
|
34970
35398
|
constructor(params) {
|
|
34971
35399
|
super();
|
|
34972
35400
|
this.classType = 'types';
|
|
34973
35401
|
this.className = 'DraftMessage';
|
|
34974
|
-
this.constructorId =
|
|
35402
|
+
this.constructorId = 0x60fe3294;
|
|
34975
35403
|
this.subclassOfId = 0x33d47f45;
|
|
34976
35404
|
this._slots = [
|
|
34977
35405
|
'noWebpage',
|
|
@@ -34983,6 +35411,7 @@ export var Raw;
|
|
|
34983
35411
|
'date',
|
|
34984
35412
|
'effect',
|
|
34985
35413
|
'suggestedPost',
|
|
35414
|
+
'richMessage',
|
|
34986
35415
|
];
|
|
34987
35416
|
this.noWebpage = params.noWebpage;
|
|
34988
35417
|
this.invertMedia = params.invertMedia;
|
|
@@ -34993,6 +35422,7 @@ export var Raw;
|
|
|
34993
35422
|
this.date = params.date;
|
|
34994
35423
|
this.effect = params.effect;
|
|
34995
35424
|
this.suggestedPost = params.suggestedPost;
|
|
35425
|
+
this.richMessage = params.richMessage;
|
|
34996
35426
|
}
|
|
34997
35427
|
/**
|
|
34998
35428
|
* Generate the TLObject from buffer.
|
|
@@ -35010,6 +35440,7 @@ export var Raw;
|
|
|
35010
35440
|
let date = await Primitive.Int.read(_data);
|
|
35011
35441
|
let effect = flags & (1 << 7) ? await Primitive.Long.read(_data) : undefined;
|
|
35012
35442
|
let suggestedPost = flags & (1 << 8) ? await TLObject.read(_data) : undefined;
|
|
35443
|
+
let richMessage = flags & (1 << 9) ? await TLObject.read(_data) : undefined;
|
|
35013
35444
|
return new Raw.DraftMessage({
|
|
35014
35445
|
noWebpage: noWebpage,
|
|
35015
35446
|
invertMedia: invertMedia,
|
|
@@ -35020,6 +35451,7 @@ export var Raw;
|
|
|
35020
35451
|
date: date,
|
|
35021
35452
|
effect: effect,
|
|
35022
35453
|
suggestedPost: suggestedPost,
|
|
35454
|
+
richMessage: richMessage,
|
|
35023
35455
|
});
|
|
35024
35456
|
}
|
|
35025
35457
|
/**
|
|
@@ -35037,6 +35469,7 @@ export var Raw;
|
|
|
35037
35469
|
flags |= this.media !== undefined ? 1 << 5 : 0;
|
|
35038
35470
|
flags |= this.effect !== undefined ? 1 << 7 : 0;
|
|
35039
35471
|
flags |= this.suggestedPost !== undefined ? 1 << 8 : 0;
|
|
35472
|
+
flags |= this.richMessage !== undefined ? 1 << 9 : 0;
|
|
35040
35473
|
b.write(Primitive.Int.write(flags));
|
|
35041
35474
|
if (this.replyTo !== undefined) {
|
|
35042
35475
|
b.write(this.replyTo.write());
|
|
@@ -35059,6 +35492,9 @@ export var Raw;
|
|
|
35059
35492
|
if (this.suggestedPost !== undefined) {
|
|
35060
35493
|
b.write(this.suggestedPost.write());
|
|
35061
35494
|
}
|
|
35495
|
+
if (this.richMessage !== undefined) {
|
|
35496
|
+
b.write(this.richMessage.write());
|
|
35497
|
+
}
|
|
35062
35498
|
return Buffer.from(b.buffer);
|
|
35063
35499
|
}
|
|
35064
35500
|
}
|
|
@@ -36142,6 +36578,511 @@ export var Raw;
|
|
|
36142
36578
|
}
|
|
36143
36579
|
}
|
|
36144
36580
|
Raw.TextAnchor = TextAnchor;
|
|
36581
|
+
class TextMath extends TLObject {
|
|
36582
|
+
source;
|
|
36583
|
+
constructor(params) {
|
|
36584
|
+
super();
|
|
36585
|
+
this.classType = 'types';
|
|
36586
|
+
this.className = 'TextMath';
|
|
36587
|
+
this.constructorId = 0x9d2eac97;
|
|
36588
|
+
this.subclassOfId = 0xf1d0b479;
|
|
36589
|
+
this._slots = ['source'];
|
|
36590
|
+
this.source = params.source;
|
|
36591
|
+
}
|
|
36592
|
+
/**
|
|
36593
|
+
* Generate the TLObject from buffer.
|
|
36594
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
36595
|
+
*/
|
|
36596
|
+
static async read(_data, ..._args) {
|
|
36597
|
+
// no flags
|
|
36598
|
+
let source = await Primitive.String.read(_data);
|
|
36599
|
+
return new Raw.TextMath({ source: source });
|
|
36600
|
+
}
|
|
36601
|
+
/**
|
|
36602
|
+
* Generate buffer from TLObject.
|
|
36603
|
+
*/
|
|
36604
|
+
write() {
|
|
36605
|
+
const b = new BytesIO();
|
|
36606
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
36607
|
+
// no flags
|
|
36608
|
+
if (this.source !== undefined) {
|
|
36609
|
+
b.write(Primitive.String.write(this.source));
|
|
36610
|
+
}
|
|
36611
|
+
return Buffer.from(b.buffer);
|
|
36612
|
+
}
|
|
36613
|
+
}
|
|
36614
|
+
Raw.TextMath = TextMath;
|
|
36615
|
+
class TextCustomEmoji extends TLObject {
|
|
36616
|
+
documentId;
|
|
36617
|
+
alt;
|
|
36618
|
+
constructor(params) {
|
|
36619
|
+
super();
|
|
36620
|
+
this.classType = 'types';
|
|
36621
|
+
this.className = 'TextCustomEmoji';
|
|
36622
|
+
this.constructorId = 0xa26156c0;
|
|
36623
|
+
this.subclassOfId = 0xf1d0b479;
|
|
36624
|
+
this._slots = ['documentId', 'alt'];
|
|
36625
|
+
this.documentId = params.documentId;
|
|
36626
|
+
this.alt = params.alt;
|
|
36627
|
+
}
|
|
36628
|
+
/**
|
|
36629
|
+
* Generate the TLObject from buffer.
|
|
36630
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
36631
|
+
*/
|
|
36632
|
+
static async read(_data, ..._args) {
|
|
36633
|
+
// no flags
|
|
36634
|
+
let documentId = await Primitive.Long.read(_data);
|
|
36635
|
+
let alt = await Primitive.String.read(_data);
|
|
36636
|
+
return new Raw.TextCustomEmoji({ documentId: documentId, alt: alt });
|
|
36637
|
+
}
|
|
36638
|
+
/**
|
|
36639
|
+
* Generate buffer from TLObject.
|
|
36640
|
+
*/
|
|
36641
|
+
write() {
|
|
36642
|
+
const b = new BytesIO();
|
|
36643
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
36644
|
+
// no flags
|
|
36645
|
+
if (this.documentId !== undefined) {
|
|
36646
|
+
b.write(Primitive.Long.write(this.documentId));
|
|
36647
|
+
}
|
|
36648
|
+
if (this.alt !== undefined) {
|
|
36649
|
+
b.write(Primitive.String.write(this.alt));
|
|
36650
|
+
}
|
|
36651
|
+
return Buffer.from(b.buffer);
|
|
36652
|
+
}
|
|
36653
|
+
}
|
|
36654
|
+
Raw.TextCustomEmoji = TextCustomEmoji;
|
|
36655
|
+
class TextSpoiler extends TLObject {
|
|
36656
|
+
text;
|
|
36657
|
+
constructor(params) {
|
|
36658
|
+
super();
|
|
36659
|
+
this.classType = 'types';
|
|
36660
|
+
this.className = 'TextSpoiler';
|
|
36661
|
+
this.constructorId = 0x4c2a5d62;
|
|
36662
|
+
this.subclassOfId = 0xf1d0b479;
|
|
36663
|
+
this._slots = ['text'];
|
|
36664
|
+
this.text = params.text;
|
|
36665
|
+
}
|
|
36666
|
+
/**
|
|
36667
|
+
* Generate the TLObject from buffer.
|
|
36668
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
36669
|
+
*/
|
|
36670
|
+
static async read(_data, ..._args) {
|
|
36671
|
+
// no flags
|
|
36672
|
+
let text = await TLObject.read(_data);
|
|
36673
|
+
return new Raw.TextSpoiler({ text: text });
|
|
36674
|
+
}
|
|
36675
|
+
/**
|
|
36676
|
+
* Generate buffer from TLObject.
|
|
36677
|
+
*/
|
|
36678
|
+
write() {
|
|
36679
|
+
const b = new BytesIO();
|
|
36680
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
36681
|
+
// no flags
|
|
36682
|
+
if (this.text !== undefined) {
|
|
36683
|
+
b.write(this.text.write());
|
|
36684
|
+
}
|
|
36685
|
+
return Buffer.from(b.buffer);
|
|
36686
|
+
}
|
|
36687
|
+
}
|
|
36688
|
+
Raw.TextSpoiler = TextSpoiler;
|
|
36689
|
+
class TextMention extends TLObject {
|
|
36690
|
+
text;
|
|
36691
|
+
constructor(params) {
|
|
36692
|
+
super();
|
|
36693
|
+
this.classType = 'types';
|
|
36694
|
+
this.className = 'TextMention';
|
|
36695
|
+
this.constructorId = 0xcd24cf44;
|
|
36696
|
+
this.subclassOfId = 0xf1d0b479;
|
|
36697
|
+
this._slots = ['text'];
|
|
36698
|
+
this.text = params.text;
|
|
36699
|
+
}
|
|
36700
|
+
/**
|
|
36701
|
+
* Generate the TLObject from buffer.
|
|
36702
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
36703
|
+
*/
|
|
36704
|
+
static async read(_data, ..._args) {
|
|
36705
|
+
// no flags
|
|
36706
|
+
let text = await TLObject.read(_data);
|
|
36707
|
+
return new Raw.TextMention({ text: text });
|
|
36708
|
+
}
|
|
36709
|
+
/**
|
|
36710
|
+
* Generate buffer from TLObject.
|
|
36711
|
+
*/
|
|
36712
|
+
write() {
|
|
36713
|
+
const b = new BytesIO();
|
|
36714
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
36715
|
+
// no flags
|
|
36716
|
+
if (this.text !== undefined) {
|
|
36717
|
+
b.write(this.text.write());
|
|
36718
|
+
}
|
|
36719
|
+
return Buffer.from(b.buffer);
|
|
36720
|
+
}
|
|
36721
|
+
}
|
|
36722
|
+
Raw.TextMention = TextMention;
|
|
36723
|
+
class TextHashtag extends TLObject {
|
|
36724
|
+
text;
|
|
36725
|
+
constructor(params) {
|
|
36726
|
+
super();
|
|
36727
|
+
this.classType = 'types';
|
|
36728
|
+
this.className = 'TextHashtag';
|
|
36729
|
+
this.constructorId = 0x519524ea;
|
|
36730
|
+
this.subclassOfId = 0xf1d0b479;
|
|
36731
|
+
this._slots = ['text'];
|
|
36732
|
+
this.text = params.text;
|
|
36733
|
+
}
|
|
36734
|
+
/**
|
|
36735
|
+
* Generate the TLObject from buffer.
|
|
36736
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
36737
|
+
*/
|
|
36738
|
+
static async read(_data, ..._args) {
|
|
36739
|
+
// no flags
|
|
36740
|
+
let text = await TLObject.read(_data);
|
|
36741
|
+
return new Raw.TextHashtag({ text: text });
|
|
36742
|
+
}
|
|
36743
|
+
/**
|
|
36744
|
+
* Generate buffer from TLObject.
|
|
36745
|
+
*/
|
|
36746
|
+
write() {
|
|
36747
|
+
const b = new BytesIO();
|
|
36748
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
36749
|
+
// no flags
|
|
36750
|
+
if (this.text !== undefined) {
|
|
36751
|
+
b.write(this.text.write());
|
|
36752
|
+
}
|
|
36753
|
+
return Buffer.from(b.buffer);
|
|
36754
|
+
}
|
|
36755
|
+
}
|
|
36756
|
+
Raw.TextHashtag = TextHashtag;
|
|
36757
|
+
class TextBotCommand extends TLObject {
|
|
36758
|
+
text;
|
|
36759
|
+
constructor(params) {
|
|
36760
|
+
super();
|
|
36761
|
+
this.classType = 'types';
|
|
36762
|
+
this.className = 'TextBotCommand';
|
|
36763
|
+
this.constructorId = 0x2ff29d3;
|
|
36764
|
+
this.subclassOfId = 0xf1d0b479;
|
|
36765
|
+
this._slots = ['text'];
|
|
36766
|
+
this.text = params.text;
|
|
36767
|
+
}
|
|
36768
|
+
/**
|
|
36769
|
+
* Generate the TLObject from buffer.
|
|
36770
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
36771
|
+
*/
|
|
36772
|
+
static async read(_data, ..._args) {
|
|
36773
|
+
// no flags
|
|
36774
|
+
let text = await TLObject.read(_data);
|
|
36775
|
+
return new Raw.TextBotCommand({ text: text });
|
|
36776
|
+
}
|
|
36777
|
+
/**
|
|
36778
|
+
* Generate buffer from TLObject.
|
|
36779
|
+
*/
|
|
36780
|
+
write() {
|
|
36781
|
+
const b = new BytesIO();
|
|
36782
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
36783
|
+
// no flags
|
|
36784
|
+
if (this.text !== undefined) {
|
|
36785
|
+
b.write(this.text.write());
|
|
36786
|
+
}
|
|
36787
|
+
return Buffer.from(b.buffer);
|
|
36788
|
+
}
|
|
36789
|
+
}
|
|
36790
|
+
Raw.TextBotCommand = TextBotCommand;
|
|
36791
|
+
class TextCashtag extends TLObject {
|
|
36792
|
+
text;
|
|
36793
|
+
constructor(params) {
|
|
36794
|
+
super();
|
|
36795
|
+
this.classType = 'types';
|
|
36796
|
+
this.className = 'TextCashtag';
|
|
36797
|
+
this.constructorId = 0x7b9e1801;
|
|
36798
|
+
this.subclassOfId = 0xf1d0b479;
|
|
36799
|
+
this._slots = ['text'];
|
|
36800
|
+
this.text = params.text;
|
|
36801
|
+
}
|
|
36802
|
+
/**
|
|
36803
|
+
* Generate the TLObject from buffer.
|
|
36804
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
36805
|
+
*/
|
|
36806
|
+
static async read(_data, ..._args) {
|
|
36807
|
+
// no flags
|
|
36808
|
+
let text = await TLObject.read(_data);
|
|
36809
|
+
return new Raw.TextCashtag({ text: text });
|
|
36810
|
+
}
|
|
36811
|
+
/**
|
|
36812
|
+
* Generate buffer from TLObject.
|
|
36813
|
+
*/
|
|
36814
|
+
write() {
|
|
36815
|
+
const b = new BytesIO();
|
|
36816
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
36817
|
+
// no flags
|
|
36818
|
+
if (this.text !== undefined) {
|
|
36819
|
+
b.write(this.text.write());
|
|
36820
|
+
}
|
|
36821
|
+
return Buffer.from(b.buffer);
|
|
36822
|
+
}
|
|
36823
|
+
}
|
|
36824
|
+
Raw.TextCashtag = TextCashtag;
|
|
36825
|
+
class TextAutoUrl extends TLObject {
|
|
36826
|
+
text;
|
|
36827
|
+
constructor(params) {
|
|
36828
|
+
super();
|
|
36829
|
+
this.classType = 'types';
|
|
36830
|
+
this.className = 'TextAutoUrl';
|
|
36831
|
+
this.constructorId = 0xac6a83aa;
|
|
36832
|
+
this.subclassOfId = 0xf1d0b479;
|
|
36833
|
+
this._slots = ['text'];
|
|
36834
|
+
this.text = params.text;
|
|
36835
|
+
}
|
|
36836
|
+
/**
|
|
36837
|
+
* Generate the TLObject from buffer.
|
|
36838
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
36839
|
+
*/
|
|
36840
|
+
static async read(_data, ..._args) {
|
|
36841
|
+
// no flags
|
|
36842
|
+
let text = await TLObject.read(_data);
|
|
36843
|
+
return new Raw.TextAutoUrl({ text: text });
|
|
36844
|
+
}
|
|
36845
|
+
/**
|
|
36846
|
+
* Generate buffer from TLObject.
|
|
36847
|
+
*/
|
|
36848
|
+
write() {
|
|
36849
|
+
const b = new BytesIO();
|
|
36850
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
36851
|
+
// no flags
|
|
36852
|
+
if (this.text !== undefined) {
|
|
36853
|
+
b.write(this.text.write());
|
|
36854
|
+
}
|
|
36855
|
+
return Buffer.from(b.buffer);
|
|
36856
|
+
}
|
|
36857
|
+
}
|
|
36858
|
+
Raw.TextAutoUrl = TextAutoUrl;
|
|
36859
|
+
class TextAutoEmail extends TLObject {
|
|
36860
|
+
text;
|
|
36861
|
+
constructor(params) {
|
|
36862
|
+
super();
|
|
36863
|
+
this.classType = 'types';
|
|
36864
|
+
this.className = 'TextAutoEmail';
|
|
36865
|
+
this.constructorId = 0xc556a45d;
|
|
36866
|
+
this.subclassOfId = 0xf1d0b479;
|
|
36867
|
+
this._slots = ['text'];
|
|
36868
|
+
this.text = params.text;
|
|
36869
|
+
}
|
|
36870
|
+
/**
|
|
36871
|
+
* Generate the TLObject from buffer.
|
|
36872
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
36873
|
+
*/
|
|
36874
|
+
static async read(_data, ..._args) {
|
|
36875
|
+
// no flags
|
|
36876
|
+
let text = await TLObject.read(_data);
|
|
36877
|
+
return new Raw.TextAutoEmail({ text: text });
|
|
36878
|
+
}
|
|
36879
|
+
/**
|
|
36880
|
+
* Generate buffer from TLObject.
|
|
36881
|
+
*/
|
|
36882
|
+
write() {
|
|
36883
|
+
const b = new BytesIO();
|
|
36884
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
36885
|
+
// no flags
|
|
36886
|
+
if (this.text !== undefined) {
|
|
36887
|
+
b.write(this.text.write());
|
|
36888
|
+
}
|
|
36889
|
+
return Buffer.from(b.buffer);
|
|
36890
|
+
}
|
|
36891
|
+
}
|
|
36892
|
+
Raw.TextAutoEmail = TextAutoEmail;
|
|
36893
|
+
class TextAutoPhone extends TLObject {
|
|
36894
|
+
text;
|
|
36895
|
+
constructor(params) {
|
|
36896
|
+
super();
|
|
36897
|
+
this.classType = 'types';
|
|
36898
|
+
this.className = 'TextAutoPhone';
|
|
36899
|
+
this.constructorId = 0x24c26789;
|
|
36900
|
+
this.subclassOfId = 0xf1d0b479;
|
|
36901
|
+
this._slots = ['text'];
|
|
36902
|
+
this.text = params.text;
|
|
36903
|
+
}
|
|
36904
|
+
/**
|
|
36905
|
+
* Generate the TLObject from buffer.
|
|
36906
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
36907
|
+
*/
|
|
36908
|
+
static async read(_data, ..._args) {
|
|
36909
|
+
// no flags
|
|
36910
|
+
let text = await TLObject.read(_data);
|
|
36911
|
+
return new Raw.TextAutoPhone({ text: text });
|
|
36912
|
+
}
|
|
36913
|
+
/**
|
|
36914
|
+
* Generate buffer from TLObject.
|
|
36915
|
+
*/
|
|
36916
|
+
write() {
|
|
36917
|
+
const b = new BytesIO();
|
|
36918
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
36919
|
+
// no flags
|
|
36920
|
+
if (this.text !== undefined) {
|
|
36921
|
+
b.write(this.text.write());
|
|
36922
|
+
}
|
|
36923
|
+
return Buffer.from(b.buffer);
|
|
36924
|
+
}
|
|
36925
|
+
}
|
|
36926
|
+
Raw.TextAutoPhone = TextAutoPhone;
|
|
36927
|
+
class TextBankCard extends TLObject {
|
|
36928
|
+
text;
|
|
36929
|
+
constructor(params) {
|
|
36930
|
+
super();
|
|
36931
|
+
this.classType = 'types';
|
|
36932
|
+
this.className = 'TextBankCard';
|
|
36933
|
+
this.constructorId = 0xb956812d;
|
|
36934
|
+
this.subclassOfId = 0xf1d0b479;
|
|
36935
|
+
this._slots = ['text'];
|
|
36936
|
+
this.text = params.text;
|
|
36937
|
+
}
|
|
36938
|
+
/**
|
|
36939
|
+
* Generate the TLObject from buffer.
|
|
36940
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
36941
|
+
*/
|
|
36942
|
+
static async read(_data, ..._args) {
|
|
36943
|
+
// no flags
|
|
36944
|
+
let text = await TLObject.read(_data);
|
|
36945
|
+
return new Raw.TextBankCard({ text: text });
|
|
36946
|
+
}
|
|
36947
|
+
/**
|
|
36948
|
+
* Generate buffer from TLObject.
|
|
36949
|
+
*/
|
|
36950
|
+
write() {
|
|
36951
|
+
const b = new BytesIO();
|
|
36952
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
36953
|
+
// no flags
|
|
36954
|
+
if (this.text !== undefined) {
|
|
36955
|
+
b.write(this.text.write());
|
|
36956
|
+
}
|
|
36957
|
+
return Buffer.from(b.buffer);
|
|
36958
|
+
}
|
|
36959
|
+
}
|
|
36960
|
+
Raw.TextBankCard = TextBankCard;
|
|
36961
|
+
class TextMentionName extends TLObject {
|
|
36962
|
+
text;
|
|
36963
|
+
userId;
|
|
36964
|
+
constructor(params) {
|
|
36965
|
+
super();
|
|
36966
|
+
this.classType = 'types';
|
|
36967
|
+
this.className = 'TextMentionName';
|
|
36968
|
+
this.constructorId = 0x1a9fbfc;
|
|
36969
|
+
this.subclassOfId = 0xf1d0b479;
|
|
36970
|
+
this._slots = ['text', 'userId'];
|
|
36971
|
+
this.text = params.text;
|
|
36972
|
+
this.userId = params.userId;
|
|
36973
|
+
}
|
|
36974
|
+
/**
|
|
36975
|
+
* Generate the TLObject from buffer.
|
|
36976
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
36977
|
+
*/
|
|
36978
|
+
static async read(_data, ..._args) {
|
|
36979
|
+
// no flags
|
|
36980
|
+
let text = await TLObject.read(_data);
|
|
36981
|
+
let userId = await Primitive.Long.read(_data);
|
|
36982
|
+
return new Raw.TextMentionName({ text: text, userId: userId });
|
|
36983
|
+
}
|
|
36984
|
+
/**
|
|
36985
|
+
* Generate buffer from TLObject.
|
|
36986
|
+
*/
|
|
36987
|
+
write() {
|
|
36988
|
+
const b = new BytesIO();
|
|
36989
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
36990
|
+
// no flags
|
|
36991
|
+
if (this.text !== undefined) {
|
|
36992
|
+
b.write(this.text.write());
|
|
36993
|
+
}
|
|
36994
|
+
if (this.userId !== undefined) {
|
|
36995
|
+
b.write(Primitive.Long.write(this.userId));
|
|
36996
|
+
}
|
|
36997
|
+
return Buffer.from(b.buffer);
|
|
36998
|
+
}
|
|
36999
|
+
}
|
|
37000
|
+
Raw.TextMentionName = TextMentionName;
|
|
37001
|
+
class TextDate extends TLObject {
|
|
37002
|
+
relative;
|
|
37003
|
+
shortTime;
|
|
37004
|
+
longTime;
|
|
37005
|
+
shortDate;
|
|
37006
|
+
longDate;
|
|
37007
|
+
dayOfWeek;
|
|
37008
|
+
text;
|
|
37009
|
+
date;
|
|
37010
|
+
constructor(params) {
|
|
37011
|
+
super();
|
|
37012
|
+
this.classType = 'types';
|
|
37013
|
+
this.className = 'TextDate';
|
|
37014
|
+
this.constructorId = 0xa5b45e2b;
|
|
37015
|
+
this.subclassOfId = 0xf1d0b479;
|
|
37016
|
+
this._slots = [
|
|
37017
|
+
'relative',
|
|
37018
|
+
'shortTime',
|
|
37019
|
+
'longTime',
|
|
37020
|
+
'shortDate',
|
|
37021
|
+
'longDate',
|
|
37022
|
+
'dayOfWeek',
|
|
37023
|
+
'text',
|
|
37024
|
+
'date',
|
|
37025
|
+
];
|
|
37026
|
+
this.relative = params.relative;
|
|
37027
|
+
this.shortTime = params.shortTime;
|
|
37028
|
+
this.longTime = params.longTime;
|
|
37029
|
+
this.shortDate = params.shortDate;
|
|
37030
|
+
this.longDate = params.longDate;
|
|
37031
|
+
this.dayOfWeek = params.dayOfWeek;
|
|
37032
|
+
this.text = params.text;
|
|
37033
|
+
this.date = params.date;
|
|
37034
|
+
}
|
|
37035
|
+
/**
|
|
37036
|
+
* Generate the TLObject from buffer.
|
|
37037
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
37038
|
+
*/
|
|
37039
|
+
static async read(_data, ..._args) {
|
|
37040
|
+
// @ts-ignore
|
|
37041
|
+
let flags = await Primitive.Int.read(_data);
|
|
37042
|
+
let relative = flags & (1 << 0) ? true : false;
|
|
37043
|
+
let shortTime = flags & (1 << 1) ? true : false;
|
|
37044
|
+
let longTime = flags & (1 << 2) ? true : false;
|
|
37045
|
+
let shortDate = flags & (1 << 3) ? true : false;
|
|
37046
|
+
let longDate = flags & (1 << 4) ? true : false;
|
|
37047
|
+
let dayOfWeek = flags & (1 << 5) ? true : false;
|
|
37048
|
+
let text = await TLObject.read(_data);
|
|
37049
|
+
let date = await Primitive.Int.read(_data);
|
|
37050
|
+
return new Raw.TextDate({
|
|
37051
|
+
relative: relative,
|
|
37052
|
+
shortTime: shortTime,
|
|
37053
|
+
longTime: longTime,
|
|
37054
|
+
shortDate: shortDate,
|
|
37055
|
+
longDate: longDate,
|
|
37056
|
+
dayOfWeek: dayOfWeek,
|
|
37057
|
+
text: text,
|
|
37058
|
+
date: date,
|
|
37059
|
+
});
|
|
37060
|
+
}
|
|
37061
|
+
/**
|
|
37062
|
+
* Generate buffer from TLObject.
|
|
37063
|
+
*/
|
|
37064
|
+
write() {
|
|
37065
|
+
const b = new BytesIO();
|
|
37066
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
37067
|
+
// @ts-ignore
|
|
37068
|
+
let flags = 0;
|
|
37069
|
+
flags |= this.relative ? 1 << 0 : 0;
|
|
37070
|
+
flags |= this.shortTime ? 1 << 1 : 0;
|
|
37071
|
+
flags |= this.longTime ? 1 << 2 : 0;
|
|
37072
|
+
flags |= this.shortDate ? 1 << 3 : 0;
|
|
37073
|
+
flags |= this.longDate ? 1 << 4 : 0;
|
|
37074
|
+
flags |= this.dayOfWeek ? 1 << 5 : 0;
|
|
37075
|
+
b.write(Primitive.Int.write(flags));
|
|
37076
|
+
if (this.text !== undefined) {
|
|
37077
|
+
b.write(this.text.write());
|
|
37078
|
+
}
|
|
37079
|
+
if (this.date !== undefined) {
|
|
37080
|
+
b.write(Primitive.Int.write(this.date));
|
|
37081
|
+
}
|
|
37082
|
+
return Buffer.from(b.buffer);
|
|
37083
|
+
}
|
|
37084
|
+
}
|
|
37085
|
+
Raw.TextDate = TextDate;
|
|
36145
37086
|
class PageBlockUnsupported extends TLObject {
|
|
36146
37087
|
constructor() {
|
|
36147
37088
|
super();
|
|
@@ -36631,6 +37572,7 @@ export var Raw;
|
|
|
36631
37572
|
}
|
|
36632
37573
|
Raw.PageBlockPullquote = PageBlockPullquote;
|
|
36633
37574
|
class PageBlockPhoto extends TLObject {
|
|
37575
|
+
spoiler;
|
|
36634
37576
|
photoId;
|
|
36635
37577
|
caption;
|
|
36636
37578
|
url;
|
|
@@ -36641,7 +37583,8 @@ export var Raw;
|
|
|
36641
37583
|
this.className = 'PageBlockPhoto';
|
|
36642
37584
|
this.constructorId = 0x1759c560;
|
|
36643
37585
|
this.subclassOfId = 0x1aca5644;
|
|
36644
|
-
this._slots = ['photoId', 'caption', 'url', 'webpageId'];
|
|
37586
|
+
this._slots = ['spoiler', 'photoId', 'caption', 'url', 'webpageId'];
|
|
37587
|
+
this.spoiler = params.spoiler;
|
|
36645
37588
|
this.photoId = params.photoId;
|
|
36646
37589
|
this.caption = params.caption;
|
|
36647
37590
|
this.url = params.url;
|
|
@@ -36654,11 +37597,13 @@ export var Raw;
|
|
|
36654
37597
|
static async read(_data, ..._args) {
|
|
36655
37598
|
// @ts-ignore
|
|
36656
37599
|
let flags = await Primitive.Int.read(_data);
|
|
37600
|
+
let spoiler = flags & (1 << 1) ? true : false;
|
|
36657
37601
|
let photoId = await Primitive.Long.read(_data);
|
|
36658
37602
|
let caption = await TLObject.read(_data);
|
|
36659
37603
|
let url = flags & (1 << 0) ? await Primitive.String.read(_data) : undefined;
|
|
36660
37604
|
let webpageId = flags & (1 << 0) ? await Primitive.Long.read(_data) : undefined;
|
|
36661
37605
|
return new Raw.PageBlockPhoto({
|
|
37606
|
+
spoiler: spoiler,
|
|
36662
37607
|
photoId: photoId,
|
|
36663
37608
|
caption: caption,
|
|
36664
37609
|
url: url,
|
|
@@ -36673,6 +37618,7 @@ export var Raw;
|
|
|
36673
37618
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
36674
37619
|
// @ts-ignore
|
|
36675
37620
|
let flags = 0;
|
|
37621
|
+
flags |= this.spoiler ? 1 << 1 : 0;
|
|
36676
37622
|
flags |= this.url !== undefined ? 1 << 0 : 0;
|
|
36677
37623
|
flags |= this.webpageId !== undefined ? 1 << 0 : 0;
|
|
36678
37624
|
b.write(Primitive.Int.write(flags));
|
|
@@ -36695,6 +37641,7 @@ export var Raw;
|
|
|
36695
37641
|
class PageBlockVideo extends TLObject {
|
|
36696
37642
|
autoplay;
|
|
36697
37643
|
loop;
|
|
37644
|
+
spoiler;
|
|
36698
37645
|
videoId;
|
|
36699
37646
|
caption;
|
|
36700
37647
|
constructor(params) {
|
|
@@ -36703,9 +37650,10 @@ export var Raw;
|
|
|
36703
37650
|
this.className = 'PageBlockVideo';
|
|
36704
37651
|
this.constructorId = 0x7c8fe7b6;
|
|
36705
37652
|
this.subclassOfId = 0x1aca5644;
|
|
36706
|
-
this._slots = ['autoplay', 'loop', 'videoId', 'caption'];
|
|
37653
|
+
this._slots = ['autoplay', 'loop', 'spoiler', 'videoId', 'caption'];
|
|
36707
37654
|
this.autoplay = params.autoplay;
|
|
36708
37655
|
this.loop = params.loop;
|
|
37656
|
+
this.spoiler = params.spoiler;
|
|
36709
37657
|
this.videoId = params.videoId;
|
|
36710
37658
|
this.caption = params.caption;
|
|
36711
37659
|
}
|
|
@@ -36718,11 +37666,13 @@ export var Raw;
|
|
|
36718
37666
|
let flags = await Primitive.Int.read(_data);
|
|
36719
37667
|
let autoplay = flags & (1 << 0) ? true : false;
|
|
36720
37668
|
let loop = flags & (1 << 1) ? true : false;
|
|
37669
|
+
let spoiler = flags & (1 << 2) ? true : false;
|
|
36721
37670
|
let videoId = await Primitive.Long.read(_data);
|
|
36722
37671
|
let caption = await TLObject.read(_data);
|
|
36723
37672
|
return new Raw.PageBlockVideo({
|
|
36724
37673
|
autoplay: autoplay,
|
|
36725
37674
|
loop: loop,
|
|
37675
|
+
spoiler: spoiler,
|
|
36726
37676
|
videoId: videoId,
|
|
36727
37677
|
caption: caption,
|
|
36728
37678
|
});
|
|
@@ -36737,6 +37687,7 @@ export var Raw;
|
|
|
36737
37687
|
let flags = 0;
|
|
36738
37688
|
flags |= this.autoplay ? 1 << 0 : 0;
|
|
36739
37689
|
flags |= this.loop ? 1 << 1 : 0;
|
|
37690
|
+
flags |= this.spoiler ? 1 << 2 : 0;
|
|
36740
37691
|
b.write(Primitive.Int.write(flags));
|
|
36741
37692
|
if (this.videoId !== undefined) {
|
|
36742
37693
|
b.write(Primitive.Long.write(this.videoId));
|
|
@@ -37203,24 +38154,39 @@ export var Raw;
|
|
|
37203
38154
|
}
|
|
37204
38155
|
Raw.PageBlockTable = PageBlockTable;
|
|
37205
38156
|
class PageBlockOrderedList extends TLObject {
|
|
38157
|
+
reversed;
|
|
37206
38158
|
items;
|
|
38159
|
+
start;
|
|
38160
|
+
type;
|
|
37207
38161
|
constructor(params) {
|
|
37208
38162
|
super();
|
|
37209
38163
|
this.classType = 'types';
|
|
37210
38164
|
this.className = 'PageBlockOrderedList';
|
|
37211
|
-
this.constructorId =
|
|
38165
|
+
this.constructorId = 0x1fd6f6c1;
|
|
37212
38166
|
this.subclassOfId = 0x1aca5644;
|
|
37213
|
-
this._slots = ['items'];
|
|
38167
|
+
this._slots = ['reversed', 'items', 'start', 'type'];
|
|
38168
|
+
this.reversed = params.reversed;
|
|
37214
38169
|
this.items = params.items;
|
|
38170
|
+
this.start = params.start;
|
|
38171
|
+
this.type = params.type;
|
|
37215
38172
|
}
|
|
37216
38173
|
/**
|
|
37217
38174
|
* Generate the TLObject from buffer.
|
|
37218
38175
|
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
37219
38176
|
*/
|
|
37220
38177
|
static async read(_data, ..._args) {
|
|
37221
|
-
//
|
|
38178
|
+
// @ts-ignore
|
|
38179
|
+
let flags = await Primitive.Int.read(_data);
|
|
38180
|
+
let reversed = flags & (1 << 2) ? true : false;
|
|
37222
38181
|
let items = await TLObject.read(_data);
|
|
37223
|
-
|
|
38182
|
+
let start = flags & (1 << 0) ? await Primitive.Int.read(_data) : undefined;
|
|
38183
|
+
let type = flags & (1 << 1) ? await Primitive.String.read(_data) : undefined;
|
|
38184
|
+
return new Raw.PageBlockOrderedList({
|
|
38185
|
+
reversed: reversed,
|
|
38186
|
+
items: items,
|
|
38187
|
+
start: start,
|
|
38188
|
+
type: type,
|
|
38189
|
+
});
|
|
37224
38190
|
}
|
|
37225
38191
|
/**
|
|
37226
38192
|
* Generate buffer from TLObject.
|
|
@@ -37228,10 +38194,21 @@ export var Raw;
|
|
|
37228
38194
|
write() {
|
|
37229
38195
|
const b = new BytesIO();
|
|
37230
38196
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
37231
|
-
//
|
|
38197
|
+
// @ts-ignore
|
|
38198
|
+
let flags = 0;
|
|
38199
|
+
flags |= this.reversed ? 1 << 2 : 0;
|
|
38200
|
+
flags |= this.start !== undefined ? 1 << 0 : 0;
|
|
38201
|
+
flags |= this.type !== undefined ? 1 << 1 : 0;
|
|
38202
|
+
b.write(Primitive.Int.write(flags));
|
|
37232
38203
|
if (this.items) {
|
|
37233
38204
|
b.write(Primitive.Vector.write(this.items));
|
|
37234
38205
|
}
|
|
38206
|
+
if (this.start !== undefined) {
|
|
38207
|
+
b.write(Primitive.Int.write(this.start));
|
|
38208
|
+
}
|
|
38209
|
+
if (this.type !== undefined) {
|
|
38210
|
+
b.write(Primitive.String.write(this.type));
|
|
38211
|
+
}
|
|
37235
38212
|
return Buffer.from(b.buffer);
|
|
37236
38213
|
}
|
|
37237
38214
|
}
|
|
@@ -37381,6 +38358,376 @@ export var Raw;
|
|
|
37381
38358
|
}
|
|
37382
38359
|
}
|
|
37383
38360
|
Raw.PageBlockMap = PageBlockMap;
|
|
38361
|
+
class PageBlockHeading1 extends TLObject {
|
|
38362
|
+
text;
|
|
38363
|
+
constructor(params) {
|
|
38364
|
+
super();
|
|
38365
|
+
this.classType = 'types';
|
|
38366
|
+
this.className = 'PageBlockHeading1';
|
|
38367
|
+
this.constructorId = 0xbaff072f;
|
|
38368
|
+
this.subclassOfId = 0x1aca5644;
|
|
38369
|
+
this._slots = ['text'];
|
|
38370
|
+
this.text = params.text;
|
|
38371
|
+
}
|
|
38372
|
+
/**
|
|
38373
|
+
* Generate the TLObject from buffer.
|
|
38374
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
38375
|
+
*/
|
|
38376
|
+
static async read(_data, ..._args) {
|
|
38377
|
+
// no flags
|
|
38378
|
+
let text = await TLObject.read(_data);
|
|
38379
|
+
return new Raw.PageBlockHeading1({ text: text });
|
|
38380
|
+
}
|
|
38381
|
+
/**
|
|
38382
|
+
* Generate buffer from TLObject.
|
|
38383
|
+
*/
|
|
38384
|
+
write() {
|
|
38385
|
+
const b = new BytesIO();
|
|
38386
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
38387
|
+
// no flags
|
|
38388
|
+
if (this.text !== undefined) {
|
|
38389
|
+
b.write(this.text.write());
|
|
38390
|
+
}
|
|
38391
|
+
return Buffer.from(b.buffer);
|
|
38392
|
+
}
|
|
38393
|
+
}
|
|
38394
|
+
Raw.PageBlockHeading1 = PageBlockHeading1;
|
|
38395
|
+
class PageBlockHeading2 extends TLObject {
|
|
38396
|
+
text;
|
|
38397
|
+
constructor(params) {
|
|
38398
|
+
super();
|
|
38399
|
+
this.classType = 'types';
|
|
38400
|
+
this.className = 'PageBlockHeading2';
|
|
38401
|
+
this.constructorId = 0x96b2aec;
|
|
38402
|
+
this.subclassOfId = 0x1aca5644;
|
|
38403
|
+
this._slots = ['text'];
|
|
38404
|
+
this.text = params.text;
|
|
38405
|
+
}
|
|
38406
|
+
/**
|
|
38407
|
+
* Generate the TLObject from buffer.
|
|
38408
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
38409
|
+
*/
|
|
38410
|
+
static async read(_data, ..._args) {
|
|
38411
|
+
// no flags
|
|
38412
|
+
let text = await TLObject.read(_data);
|
|
38413
|
+
return new Raw.PageBlockHeading2({ text: text });
|
|
38414
|
+
}
|
|
38415
|
+
/**
|
|
38416
|
+
* Generate buffer from TLObject.
|
|
38417
|
+
*/
|
|
38418
|
+
write() {
|
|
38419
|
+
const b = new BytesIO();
|
|
38420
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
38421
|
+
// no flags
|
|
38422
|
+
if (this.text !== undefined) {
|
|
38423
|
+
b.write(this.text.write());
|
|
38424
|
+
}
|
|
38425
|
+
return Buffer.from(b.buffer);
|
|
38426
|
+
}
|
|
38427
|
+
}
|
|
38428
|
+
Raw.PageBlockHeading2 = PageBlockHeading2;
|
|
38429
|
+
class PageBlockHeading3 extends TLObject {
|
|
38430
|
+
text;
|
|
38431
|
+
constructor(params) {
|
|
38432
|
+
super();
|
|
38433
|
+
this.classType = 'types';
|
|
38434
|
+
this.className = 'PageBlockHeading3';
|
|
38435
|
+
this.constructorId = 0x67e731ad;
|
|
38436
|
+
this.subclassOfId = 0x1aca5644;
|
|
38437
|
+
this._slots = ['text'];
|
|
38438
|
+
this.text = params.text;
|
|
38439
|
+
}
|
|
38440
|
+
/**
|
|
38441
|
+
* Generate the TLObject from buffer.
|
|
38442
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
38443
|
+
*/
|
|
38444
|
+
static async read(_data, ..._args) {
|
|
38445
|
+
// no flags
|
|
38446
|
+
let text = await TLObject.read(_data);
|
|
38447
|
+
return new Raw.PageBlockHeading3({ text: text });
|
|
38448
|
+
}
|
|
38449
|
+
/**
|
|
38450
|
+
* Generate buffer from TLObject.
|
|
38451
|
+
*/
|
|
38452
|
+
write() {
|
|
38453
|
+
const b = new BytesIO();
|
|
38454
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
38455
|
+
// no flags
|
|
38456
|
+
if (this.text !== undefined) {
|
|
38457
|
+
b.write(this.text.write());
|
|
38458
|
+
}
|
|
38459
|
+
return Buffer.from(b.buffer);
|
|
38460
|
+
}
|
|
38461
|
+
}
|
|
38462
|
+
Raw.PageBlockHeading3 = PageBlockHeading3;
|
|
38463
|
+
class PageBlockHeading4 extends TLObject {
|
|
38464
|
+
text;
|
|
38465
|
+
constructor(params) {
|
|
38466
|
+
super();
|
|
38467
|
+
this.classType = 'types';
|
|
38468
|
+
this.className = 'PageBlockHeading4';
|
|
38469
|
+
this.constructorId = 0xb532772b;
|
|
38470
|
+
this.subclassOfId = 0x1aca5644;
|
|
38471
|
+
this._slots = ['text'];
|
|
38472
|
+
this.text = params.text;
|
|
38473
|
+
}
|
|
38474
|
+
/**
|
|
38475
|
+
* Generate the TLObject from buffer.
|
|
38476
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
38477
|
+
*/
|
|
38478
|
+
static async read(_data, ..._args) {
|
|
38479
|
+
// no flags
|
|
38480
|
+
let text = await TLObject.read(_data);
|
|
38481
|
+
return new Raw.PageBlockHeading4({ text: text });
|
|
38482
|
+
}
|
|
38483
|
+
/**
|
|
38484
|
+
* Generate buffer from TLObject.
|
|
38485
|
+
*/
|
|
38486
|
+
write() {
|
|
38487
|
+
const b = new BytesIO();
|
|
38488
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
38489
|
+
// no flags
|
|
38490
|
+
if (this.text !== undefined) {
|
|
38491
|
+
b.write(this.text.write());
|
|
38492
|
+
}
|
|
38493
|
+
return Buffer.from(b.buffer);
|
|
38494
|
+
}
|
|
38495
|
+
}
|
|
38496
|
+
Raw.PageBlockHeading4 = PageBlockHeading4;
|
|
38497
|
+
class PageBlockHeading5 extends TLObject {
|
|
38498
|
+
text;
|
|
38499
|
+
constructor(params) {
|
|
38500
|
+
super();
|
|
38501
|
+
this.classType = 'types';
|
|
38502
|
+
this.className = 'PageBlockHeading5';
|
|
38503
|
+
this.constructorId = 0xdbbe6c6a;
|
|
38504
|
+
this.subclassOfId = 0x1aca5644;
|
|
38505
|
+
this._slots = ['text'];
|
|
38506
|
+
this.text = params.text;
|
|
38507
|
+
}
|
|
38508
|
+
/**
|
|
38509
|
+
* Generate the TLObject from buffer.
|
|
38510
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
38511
|
+
*/
|
|
38512
|
+
static async read(_data, ..._args) {
|
|
38513
|
+
// no flags
|
|
38514
|
+
let text = await TLObject.read(_data);
|
|
38515
|
+
return new Raw.PageBlockHeading5({ text: text });
|
|
38516
|
+
}
|
|
38517
|
+
/**
|
|
38518
|
+
* Generate buffer from TLObject.
|
|
38519
|
+
*/
|
|
38520
|
+
write() {
|
|
38521
|
+
const b = new BytesIO();
|
|
38522
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
38523
|
+
// no flags
|
|
38524
|
+
if (this.text !== undefined) {
|
|
38525
|
+
b.write(this.text.write());
|
|
38526
|
+
}
|
|
38527
|
+
return Buffer.from(b.buffer);
|
|
38528
|
+
}
|
|
38529
|
+
}
|
|
38530
|
+
Raw.PageBlockHeading5 = PageBlockHeading5;
|
|
38531
|
+
class PageBlockHeading6 extends TLObject {
|
|
38532
|
+
text;
|
|
38533
|
+
constructor(params) {
|
|
38534
|
+
super();
|
|
38535
|
+
this.classType = 'types';
|
|
38536
|
+
this.className = 'PageBlockHeading6';
|
|
38537
|
+
this.constructorId = 0x682a41a9;
|
|
38538
|
+
this.subclassOfId = 0x1aca5644;
|
|
38539
|
+
this._slots = ['text'];
|
|
38540
|
+
this.text = params.text;
|
|
38541
|
+
}
|
|
38542
|
+
/**
|
|
38543
|
+
* Generate the TLObject from buffer.
|
|
38544
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
38545
|
+
*/
|
|
38546
|
+
static async read(_data, ..._args) {
|
|
38547
|
+
// no flags
|
|
38548
|
+
let text = await TLObject.read(_data);
|
|
38549
|
+
return new Raw.PageBlockHeading6({ text: text });
|
|
38550
|
+
}
|
|
38551
|
+
/**
|
|
38552
|
+
* Generate buffer from TLObject.
|
|
38553
|
+
*/
|
|
38554
|
+
write() {
|
|
38555
|
+
const b = new BytesIO();
|
|
38556
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
38557
|
+
// no flags
|
|
38558
|
+
if (this.text !== undefined) {
|
|
38559
|
+
b.write(this.text.write());
|
|
38560
|
+
}
|
|
38561
|
+
return Buffer.from(b.buffer);
|
|
38562
|
+
}
|
|
38563
|
+
}
|
|
38564
|
+
Raw.PageBlockHeading6 = PageBlockHeading6;
|
|
38565
|
+
class PageBlockMath extends TLObject {
|
|
38566
|
+
source;
|
|
38567
|
+
constructor(params) {
|
|
38568
|
+
super();
|
|
38569
|
+
this.classType = 'types';
|
|
38570
|
+
this.className = 'PageBlockMath';
|
|
38571
|
+
this.constructorId = 0x59080c20;
|
|
38572
|
+
this.subclassOfId = 0x1aca5644;
|
|
38573
|
+
this._slots = ['source'];
|
|
38574
|
+
this.source = params.source;
|
|
38575
|
+
}
|
|
38576
|
+
/**
|
|
38577
|
+
* Generate the TLObject from buffer.
|
|
38578
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
38579
|
+
*/
|
|
38580
|
+
static async read(_data, ..._args) {
|
|
38581
|
+
// no flags
|
|
38582
|
+
let source = await Primitive.String.read(_data);
|
|
38583
|
+
return new Raw.PageBlockMath({ source: source });
|
|
38584
|
+
}
|
|
38585
|
+
/**
|
|
38586
|
+
* Generate buffer from TLObject.
|
|
38587
|
+
*/
|
|
38588
|
+
write() {
|
|
38589
|
+
const b = new BytesIO();
|
|
38590
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
38591
|
+
// no flags
|
|
38592
|
+
if (this.source !== undefined) {
|
|
38593
|
+
b.write(Primitive.String.write(this.source));
|
|
38594
|
+
}
|
|
38595
|
+
return Buffer.from(b.buffer);
|
|
38596
|
+
}
|
|
38597
|
+
}
|
|
38598
|
+
Raw.PageBlockMath = PageBlockMath;
|
|
38599
|
+
class PageBlockThinking extends TLObject {
|
|
38600
|
+
text;
|
|
38601
|
+
constructor(params) {
|
|
38602
|
+
super();
|
|
38603
|
+
this.classType = 'types';
|
|
38604
|
+
this.className = 'PageBlockThinking';
|
|
38605
|
+
this.constructorId = 0x3c29a3e2;
|
|
38606
|
+
this.subclassOfId = 0x1aca5644;
|
|
38607
|
+
this._slots = ['text'];
|
|
38608
|
+
this.text = params.text;
|
|
38609
|
+
}
|
|
38610
|
+
/**
|
|
38611
|
+
* Generate the TLObject from buffer.
|
|
38612
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
38613
|
+
*/
|
|
38614
|
+
static async read(_data, ..._args) {
|
|
38615
|
+
// no flags
|
|
38616
|
+
let text = await TLObject.read(_data);
|
|
38617
|
+
return new Raw.PageBlockThinking({ text: text });
|
|
38618
|
+
}
|
|
38619
|
+
/**
|
|
38620
|
+
* Generate buffer from TLObject.
|
|
38621
|
+
*/
|
|
38622
|
+
write() {
|
|
38623
|
+
const b = new BytesIO();
|
|
38624
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
38625
|
+
// no flags
|
|
38626
|
+
if (this.text !== undefined) {
|
|
38627
|
+
b.write(this.text.write());
|
|
38628
|
+
}
|
|
38629
|
+
return Buffer.from(b.buffer);
|
|
38630
|
+
}
|
|
38631
|
+
}
|
|
38632
|
+
Raw.PageBlockThinking = PageBlockThinking;
|
|
38633
|
+
class InputPageBlockMap extends TLObject {
|
|
38634
|
+
geo;
|
|
38635
|
+
zoom;
|
|
38636
|
+
w;
|
|
38637
|
+
h;
|
|
38638
|
+
caption;
|
|
38639
|
+
constructor(params) {
|
|
38640
|
+
super();
|
|
38641
|
+
this.classType = 'types';
|
|
38642
|
+
this.className = 'InputPageBlockMap';
|
|
38643
|
+
this.constructorId = 0x574b617f;
|
|
38644
|
+
this.subclassOfId = 0x1aca5644;
|
|
38645
|
+
this._slots = ['geo', 'zoom', 'w', 'h', 'caption'];
|
|
38646
|
+
this.geo = params.geo;
|
|
38647
|
+
this.zoom = params.zoom;
|
|
38648
|
+
this.w = params.w;
|
|
38649
|
+
this.h = params.h;
|
|
38650
|
+
this.caption = params.caption;
|
|
38651
|
+
}
|
|
38652
|
+
/**
|
|
38653
|
+
* Generate the TLObject from buffer.
|
|
38654
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
38655
|
+
*/
|
|
38656
|
+
static async read(_data, ..._args) {
|
|
38657
|
+
// no flags
|
|
38658
|
+
let geo = await TLObject.read(_data);
|
|
38659
|
+
let zoom = await Primitive.Int.read(_data);
|
|
38660
|
+
let w = await Primitive.Int.read(_data);
|
|
38661
|
+
let h = await Primitive.Int.read(_data);
|
|
38662
|
+
let caption = await TLObject.read(_data);
|
|
38663
|
+
return new Raw.InputPageBlockMap({ geo: geo, zoom: zoom, w: w, h: h, caption: caption });
|
|
38664
|
+
}
|
|
38665
|
+
/**
|
|
38666
|
+
* Generate buffer from TLObject.
|
|
38667
|
+
*/
|
|
38668
|
+
write() {
|
|
38669
|
+
const b = new BytesIO();
|
|
38670
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
38671
|
+
// no flags
|
|
38672
|
+
if (this.geo !== undefined) {
|
|
38673
|
+
b.write(this.geo.write());
|
|
38674
|
+
}
|
|
38675
|
+
if (this.zoom !== undefined) {
|
|
38676
|
+
b.write(Primitive.Int.write(this.zoom));
|
|
38677
|
+
}
|
|
38678
|
+
if (this.w !== undefined) {
|
|
38679
|
+
b.write(Primitive.Int.write(this.w));
|
|
38680
|
+
}
|
|
38681
|
+
if (this.h !== undefined) {
|
|
38682
|
+
b.write(Primitive.Int.write(this.h));
|
|
38683
|
+
}
|
|
38684
|
+
if (this.caption !== undefined) {
|
|
38685
|
+
b.write(this.caption.write());
|
|
38686
|
+
}
|
|
38687
|
+
return Buffer.from(b.buffer);
|
|
38688
|
+
}
|
|
38689
|
+
}
|
|
38690
|
+
Raw.InputPageBlockMap = InputPageBlockMap;
|
|
38691
|
+
class PageBlockBlockquoteBlocks extends TLObject {
|
|
38692
|
+
blocks;
|
|
38693
|
+
caption;
|
|
38694
|
+
constructor(params) {
|
|
38695
|
+
super();
|
|
38696
|
+
this.classType = 'types';
|
|
38697
|
+
this.className = 'PageBlockBlockquoteBlocks';
|
|
38698
|
+
this.constructorId = 0xe6e47c4;
|
|
38699
|
+
this.subclassOfId = 0x1aca5644;
|
|
38700
|
+
this._slots = ['blocks', 'caption'];
|
|
38701
|
+
this.blocks = params.blocks;
|
|
38702
|
+
this.caption = params.caption;
|
|
38703
|
+
}
|
|
38704
|
+
/**
|
|
38705
|
+
* Generate the TLObject from buffer.
|
|
38706
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
38707
|
+
*/
|
|
38708
|
+
static async read(_data, ..._args) {
|
|
38709
|
+
// no flags
|
|
38710
|
+
let blocks = await TLObject.read(_data);
|
|
38711
|
+
let caption = await TLObject.read(_data);
|
|
38712
|
+
return new Raw.PageBlockBlockquoteBlocks({ blocks: blocks, caption: caption });
|
|
38713
|
+
}
|
|
38714
|
+
/**
|
|
38715
|
+
* Generate buffer from TLObject.
|
|
38716
|
+
*/
|
|
38717
|
+
write() {
|
|
38718
|
+
const b = new BytesIO();
|
|
38719
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
38720
|
+
// no flags
|
|
38721
|
+
if (this.blocks) {
|
|
38722
|
+
b.write(Primitive.Vector.write(this.blocks));
|
|
38723
|
+
}
|
|
38724
|
+
if (this.caption !== undefined) {
|
|
38725
|
+
b.write(this.caption.write());
|
|
38726
|
+
}
|
|
38727
|
+
return Buffer.from(b.buffer);
|
|
38728
|
+
}
|
|
38729
|
+
}
|
|
38730
|
+
Raw.PageBlockBlockquoteBlocks = PageBlockBlockquoteBlocks;
|
|
37384
38731
|
class PhoneCallDiscardReasonMissed extends TLObject {
|
|
37385
38732
|
constructor() {
|
|
37386
38733
|
super();
|
|
@@ -45066,14 +46413,18 @@ export var Raw;
|
|
|
45066
46413
|
}
|
|
45067
46414
|
Raw.PageCaption = PageCaption;
|
|
45068
46415
|
class PageListItemText extends TLObject {
|
|
46416
|
+
checkbox;
|
|
46417
|
+
checked;
|
|
45069
46418
|
text;
|
|
45070
46419
|
constructor(params) {
|
|
45071
46420
|
super();
|
|
45072
46421
|
this.classType = 'types';
|
|
45073
46422
|
this.className = 'PageListItemText';
|
|
45074
|
-
this.constructorId =
|
|
46423
|
+
this.constructorId = 0x2f58683c;
|
|
45075
46424
|
this.subclassOfId = 0x8caebcb1;
|
|
45076
|
-
this._slots = ['text'];
|
|
46425
|
+
this._slots = ['checkbox', 'checked', 'text'];
|
|
46426
|
+
this.checkbox = params.checkbox;
|
|
46427
|
+
this.checked = params.checked;
|
|
45077
46428
|
this.text = params.text;
|
|
45078
46429
|
}
|
|
45079
46430
|
/**
|
|
@@ -45081,9 +46432,12 @@ export var Raw;
|
|
|
45081
46432
|
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
45082
46433
|
*/
|
|
45083
46434
|
static async read(_data, ..._args) {
|
|
45084
|
-
//
|
|
46435
|
+
// @ts-ignore
|
|
46436
|
+
let flags = await Primitive.Int.read(_data);
|
|
46437
|
+
let checkbox = flags & (1 << 0) ? true : false;
|
|
46438
|
+
let checked = flags & (1 << 1) ? true : false;
|
|
45085
46439
|
let text = await TLObject.read(_data);
|
|
45086
|
-
return new Raw.PageListItemText({ text: text });
|
|
46440
|
+
return new Raw.PageListItemText({ checkbox: checkbox, checked: checked, text: text });
|
|
45087
46441
|
}
|
|
45088
46442
|
/**
|
|
45089
46443
|
* Generate buffer from TLObject.
|
|
@@ -45091,7 +46445,11 @@ export var Raw;
|
|
|
45091
46445
|
write() {
|
|
45092
46446
|
const b = new BytesIO();
|
|
45093
46447
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
45094
|
-
//
|
|
46448
|
+
// @ts-ignore
|
|
46449
|
+
let flags = 0;
|
|
46450
|
+
flags |= this.checkbox ? 1 << 0 : 0;
|
|
46451
|
+
flags |= this.checked ? 1 << 1 : 0;
|
|
46452
|
+
b.write(Primitive.Int.write(flags));
|
|
45095
46453
|
if (this.text !== undefined) {
|
|
45096
46454
|
b.write(this.text.write());
|
|
45097
46455
|
}
|
|
@@ -45100,14 +46458,18 @@ export var Raw;
|
|
|
45100
46458
|
}
|
|
45101
46459
|
Raw.PageListItemText = PageListItemText;
|
|
45102
46460
|
class PageListItemBlocks extends TLObject {
|
|
46461
|
+
checkbox;
|
|
46462
|
+
checked;
|
|
45103
46463
|
blocks;
|
|
45104
46464
|
constructor(params) {
|
|
45105
46465
|
super();
|
|
45106
46466
|
this.classType = 'types';
|
|
45107
46467
|
this.className = 'PageListItemBlocks';
|
|
45108
|
-
this.constructorId =
|
|
46468
|
+
this.constructorId = 0x63ca67aa;
|
|
45109
46469
|
this.subclassOfId = 0x8caebcb1;
|
|
45110
|
-
this._slots = ['blocks'];
|
|
46470
|
+
this._slots = ['checkbox', 'checked', 'blocks'];
|
|
46471
|
+
this.checkbox = params.checkbox;
|
|
46472
|
+
this.checked = params.checked;
|
|
45111
46473
|
this.blocks = params.blocks;
|
|
45112
46474
|
}
|
|
45113
46475
|
/**
|
|
@@ -45115,9 +46477,12 @@ export var Raw;
|
|
|
45115
46477
|
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
45116
46478
|
*/
|
|
45117
46479
|
static async read(_data, ..._args) {
|
|
45118
|
-
//
|
|
46480
|
+
// @ts-ignore
|
|
46481
|
+
let flags = await Primitive.Int.read(_data);
|
|
46482
|
+
let checkbox = flags & (1 << 0) ? true : false;
|
|
46483
|
+
let checked = flags & (1 << 1) ? true : false;
|
|
45119
46484
|
let blocks = await TLObject.read(_data);
|
|
45120
|
-
return new Raw.PageListItemBlocks({ blocks: blocks });
|
|
46485
|
+
return new Raw.PageListItemBlocks({ checkbox: checkbox, checked: checked, blocks: blocks });
|
|
45121
46486
|
}
|
|
45122
46487
|
/**
|
|
45123
46488
|
* Generate buffer from TLObject.
|
|
@@ -45125,7 +46490,11 @@ export var Raw;
|
|
|
45125
46490
|
write() {
|
|
45126
46491
|
const b = new BytesIO();
|
|
45127
46492
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
45128
|
-
//
|
|
46493
|
+
// @ts-ignore
|
|
46494
|
+
let flags = 0;
|
|
46495
|
+
flags |= this.checkbox ? 1 << 0 : 0;
|
|
46496
|
+
flags |= this.checked ? 1 << 1 : 0;
|
|
46497
|
+
b.write(Primitive.Int.write(flags));
|
|
45129
46498
|
if (this.blocks) {
|
|
45130
46499
|
b.write(Primitive.Vector.write(this.blocks));
|
|
45131
46500
|
}
|
|
@@ -45134,27 +46503,47 @@ export var Raw;
|
|
|
45134
46503
|
}
|
|
45135
46504
|
Raw.PageListItemBlocks = PageListItemBlocks;
|
|
45136
46505
|
class PageListOrderedItemText extends TLObject {
|
|
46506
|
+
checkbox;
|
|
46507
|
+
checked;
|
|
45137
46508
|
num;
|
|
45138
46509
|
text;
|
|
46510
|
+
value;
|
|
46511
|
+
type;
|
|
45139
46512
|
constructor(params) {
|
|
45140
46513
|
super();
|
|
45141
46514
|
this.classType = 'types';
|
|
45142
46515
|
this.className = 'PageListOrderedItemText';
|
|
45143
|
-
this.constructorId =
|
|
46516
|
+
this.constructorId = 0x15031189;
|
|
45144
46517
|
this.subclassOfId = 0xeeda0eb8;
|
|
45145
|
-
this._slots = ['num', 'text'];
|
|
46518
|
+
this._slots = ['checkbox', 'checked', 'num', 'text', 'value', 'type'];
|
|
46519
|
+
this.checkbox = params.checkbox;
|
|
46520
|
+
this.checked = params.checked;
|
|
45146
46521
|
this.num = params.num;
|
|
45147
46522
|
this.text = params.text;
|
|
46523
|
+
this.value = params.value;
|
|
46524
|
+
this.type = params.type;
|
|
45148
46525
|
}
|
|
45149
46526
|
/**
|
|
45150
46527
|
* Generate the TLObject from buffer.
|
|
45151
46528
|
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
45152
46529
|
*/
|
|
45153
46530
|
static async read(_data, ..._args) {
|
|
45154
|
-
//
|
|
45155
|
-
let
|
|
46531
|
+
// @ts-ignore
|
|
46532
|
+
let flags = await Primitive.Int.read(_data);
|
|
46533
|
+
let checkbox = flags & (1 << 0) ? true : false;
|
|
46534
|
+
let checked = flags & (1 << 1) ? true : false;
|
|
46535
|
+
let num = flags & (1 << 2) ? await Primitive.String.read(_data) : undefined;
|
|
45156
46536
|
let text = await TLObject.read(_data);
|
|
45157
|
-
|
|
46537
|
+
let value = flags & (1 << 3) ? await Primitive.Int.read(_data) : undefined;
|
|
46538
|
+
let type = flags & (1 << 4) ? await Primitive.String.read(_data) : undefined;
|
|
46539
|
+
return new Raw.PageListOrderedItemText({
|
|
46540
|
+
checkbox: checkbox,
|
|
46541
|
+
checked: checked,
|
|
46542
|
+
num: num,
|
|
46543
|
+
text: text,
|
|
46544
|
+
value: value,
|
|
46545
|
+
type: type,
|
|
46546
|
+
});
|
|
45158
46547
|
}
|
|
45159
46548
|
/**
|
|
45160
46549
|
* Generate buffer from TLObject.
|
|
@@ -45162,39 +46551,72 @@ export var Raw;
|
|
|
45162
46551
|
write() {
|
|
45163
46552
|
const b = new BytesIO();
|
|
45164
46553
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
45165
|
-
//
|
|
46554
|
+
// @ts-ignore
|
|
46555
|
+
let flags = 0;
|
|
46556
|
+
flags |= this.checkbox ? 1 << 0 : 0;
|
|
46557
|
+
flags |= this.checked ? 1 << 1 : 0;
|
|
46558
|
+
flags |= this.num !== undefined ? 1 << 2 : 0;
|
|
46559
|
+
flags |= this.value !== undefined ? 1 << 3 : 0;
|
|
46560
|
+
flags |= this.type !== undefined ? 1 << 4 : 0;
|
|
46561
|
+
b.write(Primitive.Int.write(flags));
|
|
45166
46562
|
if (this.num !== undefined) {
|
|
45167
46563
|
b.write(Primitive.String.write(this.num));
|
|
45168
46564
|
}
|
|
45169
46565
|
if (this.text !== undefined) {
|
|
45170
46566
|
b.write(this.text.write());
|
|
45171
46567
|
}
|
|
46568
|
+
if (this.value !== undefined) {
|
|
46569
|
+
b.write(Primitive.Int.write(this.value));
|
|
46570
|
+
}
|
|
46571
|
+
if (this.type !== undefined) {
|
|
46572
|
+
b.write(Primitive.String.write(this.type));
|
|
46573
|
+
}
|
|
45172
46574
|
return Buffer.from(b.buffer);
|
|
45173
46575
|
}
|
|
45174
46576
|
}
|
|
45175
46577
|
Raw.PageListOrderedItemText = PageListOrderedItemText;
|
|
45176
46578
|
class PageListOrderedItemBlocks extends TLObject {
|
|
46579
|
+
checkbox;
|
|
46580
|
+
checked;
|
|
45177
46581
|
num;
|
|
45178
46582
|
blocks;
|
|
46583
|
+
value;
|
|
46584
|
+
type;
|
|
45179
46585
|
constructor(params) {
|
|
45180
46586
|
super();
|
|
45181
46587
|
this.classType = 'types';
|
|
45182
46588
|
this.className = 'PageListOrderedItemBlocks';
|
|
45183
|
-
this.constructorId =
|
|
46589
|
+
this.constructorId = 0x8ff2d5f0;
|
|
45184
46590
|
this.subclassOfId = 0xeeda0eb8;
|
|
45185
|
-
this._slots = ['num', 'blocks'];
|
|
46591
|
+
this._slots = ['checkbox', 'checked', 'num', 'blocks', 'value', 'type'];
|
|
46592
|
+
this.checkbox = params.checkbox;
|
|
46593
|
+
this.checked = params.checked;
|
|
45186
46594
|
this.num = params.num;
|
|
45187
46595
|
this.blocks = params.blocks;
|
|
46596
|
+
this.value = params.value;
|
|
46597
|
+
this.type = params.type;
|
|
45188
46598
|
}
|
|
45189
46599
|
/**
|
|
45190
46600
|
* Generate the TLObject from buffer.
|
|
45191
46601
|
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
45192
46602
|
*/
|
|
45193
46603
|
static async read(_data, ..._args) {
|
|
45194
|
-
//
|
|
45195
|
-
let
|
|
46604
|
+
// @ts-ignore
|
|
46605
|
+
let flags = await Primitive.Int.read(_data);
|
|
46606
|
+
let checkbox = flags & (1 << 0) ? true : false;
|
|
46607
|
+
let checked = flags & (1 << 1) ? true : false;
|
|
46608
|
+
let num = flags & (1 << 2) ? await Primitive.String.read(_data) : undefined;
|
|
45196
46609
|
let blocks = await TLObject.read(_data);
|
|
45197
|
-
|
|
46610
|
+
let value = flags & (1 << 3) ? await Primitive.Int.read(_data) : undefined;
|
|
46611
|
+
let type = flags & (1 << 4) ? await Primitive.String.read(_data) : undefined;
|
|
46612
|
+
return new Raw.PageListOrderedItemBlocks({
|
|
46613
|
+
checkbox: checkbox,
|
|
46614
|
+
checked: checked,
|
|
46615
|
+
num: num,
|
|
46616
|
+
blocks: blocks,
|
|
46617
|
+
value: value,
|
|
46618
|
+
type: type,
|
|
46619
|
+
});
|
|
45198
46620
|
}
|
|
45199
46621
|
/**
|
|
45200
46622
|
* Generate buffer from TLObject.
|
|
@@ -45202,13 +46624,26 @@ export var Raw;
|
|
|
45202
46624
|
write() {
|
|
45203
46625
|
const b = new BytesIO();
|
|
45204
46626
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
45205
|
-
//
|
|
46627
|
+
// @ts-ignore
|
|
46628
|
+
let flags = 0;
|
|
46629
|
+
flags |= this.checkbox ? 1 << 0 : 0;
|
|
46630
|
+
flags |= this.checked ? 1 << 1 : 0;
|
|
46631
|
+
flags |= this.num !== undefined ? 1 << 2 : 0;
|
|
46632
|
+
flags |= this.value !== undefined ? 1 << 3 : 0;
|
|
46633
|
+
flags |= this.type !== undefined ? 1 << 4 : 0;
|
|
46634
|
+
b.write(Primitive.Int.write(flags));
|
|
45206
46635
|
if (this.num !== undefined) {
|
|
45207
46636
|
b.write(Primitive.String.write(this.num));
|
|
45208
46637
|
}
|
|
45209
46638
|
if (this.blocks) {
|
|
45210
46639
|
b.write(Primitive.Vector.write(this.blocks));
|
|
45211
46640
|
}
|
|
46641
|
+
if (this.value !== undefined) {
|
|
46642
|
+
b.write(Primitive.Int.write(this.value));
|
|
46643
|
+
}
|
|
46644
|
+
if (this.type !== undefined) {
|
|
46645
|
+
b.write(Primitive.String.write(this.type));
|
|
46646
|
+
}
|
|
45212
46647
|
return Buffer.from(b.buffer);
|
|
45213
46648
|
}
|
|
45214
46649
|
}
|
|
@@ -49196,6 +50631,7 @@ export var Raw;
|
|
|
49196
50631
|
replyToScheduled;
|
|
49197
50632
|
forumTopic;
|
|
49198
50633
|
quote;
|
|
50634
|
+
replyToEphemeral;
|
|
49199
50635
|
replyToMsgId;
|
|
49200
50636
|
replyToPeerId;
|
|
49201
50637
|
replyFrom;
|
|
@@ -49216,6 +50652,7 @@ export var Raw;
|
|
|
49216
50652
|
'replyToScheduled',
|
|
49217
50653
|
'forumTopic',
|
|
49218
50654
|
'quote',
|
|
50655
|
+
'replyToEphemeral',
|
|
49219
50656
|
'replyToMsgId',
|
|
49220
50657
|
'replyToPeerId',
|
|
49221
50658
|
'replyFrom',
|
|
@@ -49230,6 +50667,7 @@ export var Raw;
|
|
|
49230
50667
|
this.replyToScheduled = params.replyToScheduled;
|
|
49231
50668
|
this.forumTopic = params.forumTopic;
|
|
49232
50669
|
this.quote = params.quote;
|
|
50670
|
+
this.replyToEphemeral = params.replyToEphemeral;
|
|
49233
50671
|
this.replyToMsgId = params.replyToMsgId;
|
|
49234
50672
|
this.replyToPeerId = params.replyToPeerId;
|
|
49235
50673
|
this.replyFrom = params.replyFrom;
|
|
@@ -49251,6 +50689,7 @@ export var Raw;
|
|
|
49251
50689
|
let replyToScheduled = flags & (1 << 2) ? true : false;
|
|
49252
50690
|
let forumTopic = flags & (1 << 3) ? true : false;
|
|
49253
50691
|
let quote = flags & (1 << 9) ? true : false;
|
|
50692
|
+
let replyToEphemeral = flags & (1 << 13) ? true : false;
|
|
49254
50693
|
let replyToMsgId = flags & (1 << 4) ? await Primitive.Int.read(_data) : undefined;
|
|
49255
50694
|
let replyToPeerId = flags & (1 << 0) ? await TLObject.read(_data) : undefined;
|
|
49256
50695
|
let replyFrom = flags & (1 << 5) ? await TLObject.read(_data) : undefined;
|
|
@@ -49265,6 +50704,7 @@ export var Raw;
|
|
|
49265
50704
|
replyToScheduled: replyToScheduled,
|
|
49266
50705
|
forumTopic: forumTopic,
|
|
49267
50706
|
quote: quote,
|
|
50707
|
+
replyToEphemeral: replyToEphemeral,
|
|
49268
50708
|
replyToMsgId: replyToMsgId,
|
|
49269
50709
|
replyToPeerId: replyToPeerId,
|
|
49270
50710
|
replyFrom: replyFrom,
|
|
@@ -49288,6 +50728,7 @@ export var Raw;
|
|
|
49288
50728
|
flags |= this.replyToScheduled ? 1 << 2 : 0;
|
|
49289
50729
|
flags |= this.forumTopic ? 1 << 3 : 0;
|
|
49290
50730
|
flags |= this.quote ? 1 << 9 : 0;
|
|
50731
|
+
flags |= this.replyToEphemeral ? 1 << 13 : 0;
|
|
49291
50732
|
flags |= this.replyToMsgId !== undefined ? 1 << 4 : 0;
|
|
49292
50733
|
flags |= this.replyToPeerId !== undefined ? 1 << 0 : 0;
|
|
49293
50734
|
flags |= this.replyFrom !== undefined ? 1 << 5 : 0;
|
|
@@ -51680,6 +53121,7 @@ export var Raw;
|
|
|
51680
53121
|
class WebViewResultUrl extends TLObject {
|
|
51681
53122
|
fullsize;
|
|
51682
53123
|
fullscreen;
|
|
53124
|
+
sameOrigin;
|
|
51683
53125
|
queryId;
|
|
51684
53126
|
url;
|
|
51685
53127
|
constructor(params) {
|
|
@@ -51688,9 +53130,10 @@ export var Raw;
|
|
|
51688
53130
|
this.className = 'WebViewResultUrl';
|
|
51689
53131
|
this.constructorId = 0x4d22ff98;
|
|
51690
53132
|
this.subclassOfId = 0x93cea746;
|
|
51691
|
-
this._slots = ['fullsize', 'fullscreen', 'queryId', 'url'];
|
|
53133
|
+
this._slots = ['fullsize', 'fullscreen', 'sameOrigin', 'queryId', 'url'];
|
|
51692
53134
|
this.fullsize = params.fullsize;
|
|
51693
53135
|
this.fullscreen = params.fullscreen;
|
|
53136
|
+
this.sameOrigin = params.sameOrigin;
|
|
51694
53137
|
this.queryId = params.queryId;
|
|
51695
53138
|
this.url = params.url;
|
|
51696
53139
|
}
|
|
@@ -51703,11 +53146,13 @@ export var Raw;
|
|
|
51703
53146
|
let flags = await Primitive.Int.read(_data);
|
|
51704
53147
|
let fullsize = flags & (1 << 1) ? true : false;
|
|
51705
53148
|
let fullscreen = flags & (1 << 2) ? true : false;
|
|
53149
|
+
let sameOrigin = flags & (1 << 3) ? true : false;
|
|
51706
53150
|
let queryId = flags & (1 << 0) ? await Primitive.Long.read(_data) : undefined;
|
|
51707
53151
|
let url = await Primitive.String.read(_data);
|
|
51708
53152
|
return new Raw.WebViewResultUrl({
|
|
51709
53153
|
fullsize: fullsize,
|
|
51710
53154
|
fullscreen: fullscreen,
|
|
53155
|
+
sameOrigin: sameOrigin,
|
|
51711
53156
|
queryId: queryId,
|
|
51712
53157
|
url: url,
|
|
51713
53158
|
});
|
|
@@ -51722,6 +53167,7 @@ export var Raw;
|
|
|
51722
53167
|
let flags = 0;
|
|
51723
53168
|
flags |= this.fullsize ? 1 << 1 : 0;
|
|
51724
53169
|
flags |= this.fullscreen ? 1 << 2 : 0;
|
|
53170
|
+
flags |= this.sameOrigin ? 1 << 3 : 0;
|
|
51725
53171
|
flags |= this.queryId !== undefined ? 1 << 0 : 0;
|
|
51726
53172
|
b.write(Primitive.Int.write(flags));
|
|
51727
53173
|
if (this.queryId !== undefined) {
|
|
@@ -59165,16 +60611,22 @@ export var Raw;
|
|
|
59165
60611
|
botId;
|
|
59166
60612
|
recipients;
|
|
59167
60613
|
rights;
|
|
60614
|
+
device;
|
|
60615
|
+
date;
|
|
60616
|
+
location;
|
|
59168
60617
|
constructor(params) {
|
|
59169
60618
|
super();
|
|
59170
60619
|
this.classType = 'types';
|
|
59171
60620
|
this.className = 'ConnectedBot';
|
|
59172
|
-
this.constructorId =
|
|
60621
|
+
this.constructorId = 0x33ed001;
|
|
59173
60622
|
this.subclassOfId = 0x35e81b9e;
|
|
59174
|
-
this._slots = ['botId', 'recipients', 'rights'];
|
|
60623
|
+
this._slots = ['botId', 'recipients', 'rights', 'device', 'date', 'location'];
|
|
59175
60624
|
this.botId = params.botId;
|
|
59176
60625
|
this.recipients = params.recipients;
|
|
59177
60626
|
this.rights = params.rights;
|
|
60627
|
+
this.device = params.device;
|
|
60628
|
+
this.date = params.date;
|
|
60629
|
+
this.location = params.location;
|
|
59178
60630
|
}
|
|
59179
60631
|
/**
|
|
59180
60632
|
* Generate the TLObject from buffer.
|
|
@@ -59186,7 +60638,17 @@ export var Raw;
|
|
|
59186
60638
|
let botId = await Primitive.Long.read(_data);
|
|
59187
60639
|
let recipients = await TLObject.read(_data);
|
|
59188
60640
|
let rights = await TLObject.read(_data);
|
|
59189
|
-
|
|
60641
|
+
let device = flags & (1 << 0) ? await Primitive.String.read(_data) : undefined;
|
|
60642
|
+
let date = flags & (1 << 1) ? await Primitive.Int.read(_data) : undefined;
|
|
60643
|
+
let location = flags & (1 << 2) ? await Primitive.String.read(_data) : undefined;
|
|
60644
|
+
return new Raw.ConnectedBot({
|
|
60645
|
+
botId: botId,
|
|
60646
|
+
recipients: recipients,
|
|
60647
|
+
rights: rights,
|
|
60648
|
+
device: device,
|
|
60649
|
+
date: date,
|
|
60650
|
+
location: location,
|
|
60651
|
+
});
|
|
59190
60652
|
}
|
|
59191
60653
|
/**
|
|
59192
60654
|
* Generate buffer from TLObject.
|
|
@@ -59196,6 +60658,9 @@ export var Raw;
|
|
|
59196
60658
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
59197
60659
|
// @ts-ignore
|
|
59198
60660
|
let flags = 0;
|
|
60661
|
+
flags |= this.device !== undefined ? 1 << 0 : 0;
|
|
60662
|
+
flags |= this.date !== undefined ? 1 << 1 : 0;
|
|
60663
|
+
flags |= this.location !== undefined ? 1 << 2 : 0;
|
|
59199
60664
|
b.write(Primitive.Int.write(flags));
|
|
59200
60665
|
if (this.botId !== undefined) {
|
|
59201
60666
|
b.write(Primitive.Long.write(this.botId));
|
|
@@ -59206,6 +60671,15 @@ export var Raw;
|
|
|
59206
60671
|
if (this.rights !== undefined) {
|
|
59207
60672
|
b.write(this.rights.write());
|
|
59208
60673
|
}
|
|
60674
|
+
if (this.device !== undefined) {
|
|
60675
|
+
b.write(Primitive.String.write(this.device));
|
|
60676
|
+
}
|
|
60677
|
+
if (this.date !== undefined) {
|
|
60678
|
+
b.write(Primitive.Int.write(this.date));
|
|
60679
|
+
}
|
|
60680
|
+
if (this.location !== undefined) {
|
|
60681
|
+
b.write(Primitive.String.write(this.location));
|
|
60682
|
+
}
|
|
59209
60683
|
return Buffer.from(b.buffer);
|
|
59210
60684
|
}
|
|
59211
60685
|
}
|
|
@@ -66518,6 +67992,515 @@ export var Raw;
|
|
|
66518
67992
|
}
|
|
66519
67993
|
}
|
|
66520
67994
|
Raw.AiComposeToneExample = AiComposeToneExample;
|
|
67995
|
+
class JoinChatBotResultApproved extends TLObject {
|
|
67996
|
+
constructor() {
|
|
67997
|
+
super();
|
|
67998
|
+
this.classType = 'types';
|
|
67999
|
+
this.className = 'JoinChatBotResultApproved';
|
|
68000
|
+
this.constructorId = 0xae152a69;
|
|
68001
|
+
this.subclassOfId = 0x6649aa29;
|
|
68002
|
+
this._slots = [];
|
|
68003
|
+
}
|
|
68004
|
+
/**
|
|
68005
|
+
* Generate the TLObject from buffer.
|
|
68006
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
68007
|
+
*/
|
|
68008
|
+
static async read(_data, ..._args) {
|
|
68009
|
+
// no flags
|
|
68010
|
+
return new Raw.JoinChatBotResultApproved();
|
|
68011
|
+
}
|
|
68012
|
+
/**
|
|
68013
|
+
* Generate buffer from TLObject.
|
|
68014
|
+
*/
|
|
68015
|
+
write() {
|
|
68016
|
+
const b = new BytesIO();
|
|
68017
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
68018
|
+
// no flags
|
|
68019
|
+
return Buffer.from(b.buffer);
|
|
68020
|
+
}
|
|
68021
|
+
}
|
|
68022
|
+
Raw.JoinChatBotResultApproved = JoinChatBotResultApproved;
|
|
68023
|
+
class JoinChatBotResultDeclined extends TLObject {
|
|
68024
|
+
constructor() {
|
|
68025
|
+
super();
|
|
68026
|
+
this.classType = 'types';
|
|
68027
|
+
this.className = 'JoinChatBotResultDeclined';
|
|
68028
|
+
this.constructorId = 0xefa0194;
|
|
68029
|
+
this.subclassOfId = 0x6649aa29;
|
|
68030
|
+
this._slots = [];
|
|
68031
|
+
}
|
|
68032
|
+
/**
|
|
68033
|
+
* Generate the TLObject from buffer.
|
|
68034
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
68035
|
+
*/
|
|
68036
|
+
static async read(_data, ..._args) {
|
|
68037
|
+
// no flags
|
|
68038
|
+
return new Raw.JoinChatBotResultDeclined();
|
|
68039
|
+
}
|
|
68040
|
+
/**
|
|
68041
|
+
* Generate buffer from TLObject.
|
|
68042
|
+
*/
|
|
68043
|
+
write() {
|
|
68044
|
+
const b = new BytesIO();
|
|
68045
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
68046
|
+
// no flags
|
|
68047
|
+
return Buffer.from(b.buffer);
|
|
68048
|
+
}
|
|
68049
|
+
}
|
|
68050
|
+
Raw.JoinChatBotResultDeclined = JoinChatBotResultDeclined;
|
|
68051
|
+
class JoinChatBotResultQueued extends TLObject {
|
|
68052
|
+
constructor() {
|
|
68053
|
+
super();
|
|
68054
|
+
this.classType = 'types';
|
|
68055
|
+
this.className = 'JoinChatBotResultQueued';
|
|
68056
|
+
this.constructorId = 0x98a3a840;
|
|
68057
|
+
this.subclassOfId = 0x6649aa29;
|
|
68058
|
+
this._slots = [];
|
|
68059
|
+
}
|
|
68060
|
+
/**
|
|
68061
|
+
* Generate the TLObject from buffer.
|
|
68062
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
68063
|
+
*/
|
|
68064
|
+
static async read(_data, ..._args) {
|
|
68065
|
+
// no flags
|
|
68066
|
+
return new Raw.JoinChatBotResultQueued();
|
|
68067
|
+
}
|
|
68068
|
+
/**
|
|
68069
|
+
* Generate buffer from TLObject.
|
|
68070
|
+
*/
|
|
68071
|
+
write() {
|
|
68072
|
+
const b = new BytesIO();
|
|
68073
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
68074
|
+
// no flags
|
|
68075
|
+
return Buffer.from(b.buffer);
|
|
68076
|
+
}
|
|
68077
|
+
}
|
|
68078
|
+
Raw.JoinChatBotResultQueued = JoinChatBotResultQueued;
|
|
68079
|
+
class JoinChatBotResultWebView extends TLObject {
|
|
68080
|
+
url;
|
|
68081
|
+
constructor(params) {
|
|
68082
|
+
super();
|
|
68083
|
+
this.classType = 'types';
|
|
68084
|
+
this.className = 'JoinChatBotResultWebView';
|
|
68085
|
+
this.constructorId = 0xd6e3b813;
|
|
68086
|
+
this.subclassOfId = 0x6649aa29;
|
|
68087
|
+
this._slots = ['url'];
|
|
68088
|
+
this.url = params.url;
|
|
68089
|
+
}
|
|
68090
|
+
/**
|
|
68091
|
+
* Generate the TLObject from buffer.
|
|
68092
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
68093
|
+
*/
|
|
68094
|
+
static async read(_data, ..._args) {
|
|
68095
|
+
// no flags
|
|
68096
|
+
let url = await Primitive.String.read(_data);
|
|
68097
|
+
return new Raw.JoinChatBotResultWebView({ url: url });
|
|
68098
|
+
}
|
|
68099
|
+
/**
|
|
68100
|
+
* Generate buffer from TLObject.
|
|
68101
|
+
*/
|
|
68102
|
+
write() {
|
|
68103
|
+
const b = new BytesIO();
|
|
68104
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
68105
|
+
// no flags
|
|
68106
|
+
if (this.url !== undefined) {
|
|
68107
|
+
b.write(Primitive.String.write(this.url));
|
|
68108
|
+
}
|
|
68109
|
+
return Buffer.from(b.buffer);
|
|
68110
|
+
}
|
|
68111
|
+
}
|
|
68112
|
+
Raw.JoinChatBotResultWebView = JoinChatBotResultWebView;
|
|
68113
|
+
class WebDomainException extends TLObject {
|
|
68114
|
+
domain;
|
|
68115
|
+
url;
|
|
68116
|
+
title;
|
|
68117
|
+
favicon;
|
|
68118
|
+
constructor(params) {
|
|
68119
|
+
super();
|
|
68120
|
+
this.classType = 'types';
|
|
68121
|
+
this.className = 'WebDomainException';
|
|
68122
|
+
this.constructorId = 0x933ca597;
|
|
68123
|
+
this.subclassOfId = 0xb4d1c1af;
|
|
68124
|
+
this._slots = ['domain', 'url', 'title', 'favicon'];
|
|
68125
|
+
this.domain = params.domain;
|
|
68126
|
+
this.url = params.url;
|
|
68127
|
+
this.title = params.title;
|
|
68128
|
+
this.favicon = params.favicon;
|
|
68129
|
+
}
|
|
68130
|
+
/**
|
|
68131
|
+
* Generate the TLObject from buffer.
|
|
68132
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
68133
|
+
*/
|
|
68134
|
+
static async read(_data, ..._args) {
|
|
68135
|
+
// @ts-ignore
|
|
68136
|
+
let flags = await Primitive.Int.read(_data);
|
|
68137
|
+
let domain = await Primitive.String.read(_data);
|
|
68138
|
+
let url = await Primitive.String.read(_data);
|
|
68139
|
+
let title = await Primitive.String.read(_data);
|
|
68140
|
+
let favicon = flags & (1 << 0) ? await Primitive.Long.read(_data) : undefined;
|
|
68141
|
+
return new Raw.WebDomainException({
|
|
68142
|
+
domain: domain,
|
|
68143
|
+
url: url,
|
|
68144
|
+
title: title,
|
|
68145
|
+
favicon: favicon,
|
|
68146
|
+
});
|
|
68147
|
+
}
|
|
68148
|
+
/**
|
|
68149
|
+
* Generate buffer from TLObject.
|
|
68150
|
+
*/
|
|
68151
|
+
write() {
|
|
68152
|
+
const b = new BytesIO();
|
|
68153
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
68154
|
+
// @ts-ignore
|
|
68155
|
+
let flags = 0;
|
|
68156
|
+
flags |= this.favicon !== undefined ? 1 << 0 : 0;
|
|
68157
|
+
b.write(Primitive.Int.write(flags));
|
|
68158
|
+
if (this.domain !== undefined) {
|
|
68159
|
+
b.write(Primitive.String.write(this.domain));
|
|
68160
|
+
}
|
|
68161
|
+
if (this.url !== undefined) {
|
|
68162
|
+
b.write(Primitive.String.write(this.url));
|
|
68163
|
+
}
|
|
68164
|
+
if (this.title !== undefined) {
|
|
68165
|
+
b.write(Primitive.String.write(this.title));
|
|
68166
|
+
}
|
|
68167
|
+
if (this.favicon !== undefined) {
|
|
68168
|
+
b.write(Primitive.Long.write(this.favicon));
|
|
68169
|
+
}
|
|
68170
|
+
return Buffer.from(b.buffer);
|
|
68171
|
+
}
|
|
68172
|
+
}
|
|
68173
|
+
Raw.WebDomainException = WebDomainException;
|
|
68174
|
+
class InputRichFilePhoto extends TLObject {
|
|
68175
|
+
id;
|
|
68176
|
+
photo;
|
|
68177
|
+
constructor(params) {
|
|
68178
|
+
super();
|
|
68179
|
+
this.classType = 'types';
|
|
68180
|
+
this.className = 'InputRichFilePhoto';
|
|
68181
|
+
this.constructorId = 0x9b00622b;
|
|
68182
|
+
this.subclassOfId = 0x94e416e6;
|
|
68183
|
+
this._slots = ['id', 'photo'];
|
|
68184
|
+
this.id = params.id;
|
|
68185
|
+
this.photo = params.photo;
|
|
68186
|
+
}
|
|
68187
|
+
/**
|
|
68188
|
+
* Generate the TLObject from buffer.
|
|
68189
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
68190
|
+
*/
|
|
68191
|
+
static async read(_data, ..._args) {
|
|
68192
|
+
// no flags
|
|
68193
|
+
let id = await Primitive.String.read(_data);
|
|
68194
|
+
let photo = await TLObject.read(_data);
|
|
68195
|
+
return new Raw.InputRichFilePhoto({ id: id, photo: photo });
|
|
68196
|
+
}
|
|
68197
|
+
/**
|
|
68198
|
+
* Generate buffer from TLObject.
|
|
68199
|
+
*/
|
|
68200
|
+
write() {
|
|
68201
|
+
const b = new BytesIO();
|
|
68202
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
68203
|
+
// no flags
|
|
68204
|
+
if (this.id !== undefined) {
|
|
68205
|
+
b.write(Primitive.String.write(this.id));
|
|
68206
|
+
}
|
|
68207
|
+
if (this.photo !== undefined) {
|
|
68208
|
+
b.write(this.photo.write());
|
|
68209
|
+
}
|
|
68210
|
+
return Buffer.from(b.buffer);
|
|
68211
|
+
}
|
|
68212
|
+
}
|
|
68213
|
+
Raw.InputRichFilePhoto = InputRichFilePhoto;
|
|
68214
|
+
class InputRichFileDocument extends TLObject {
|
|
68215
|
+
id;
|
|
68216
|
+
document;
|
|
68217
|
+
constructor(params) {
|
|
68218
|
+
super();
|
|
68219
|
+
this.classType = 'types';
|
|
68220
|
+
this.className = 'InputRichFileDocument';
|
|
68221
|
+
this.constructorId = 0x83281dbd;
|
|
68222
|
+
this.subclassOfId = 0x94e416e6;
|
|
68223
|
+
this._slots = ['id', 'document'];
|
|
68224
|
+
this.id = params.id;
|
|
68225
|
+
this.document = params.document;
|
|
68226
|
+
}
|
|
68227
|
+
/**
|
|
68228
|
+
* Generate the TLObject from buffer.
|
|
68229
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
68230
|
+
*/
|
|
68231
|
+
static async read(_data, ..._args) {
|
|
68232
|
+
// no flags
|
|
68233
|
+
let id = await Primitive.String.read(_data);
|
|
68234
|
+
let document = await TLObject.read(_data);
|
|
68235
|
+
return new Raw.InputRichFileDocument({ id: id, document: document });
|
|
68236
|
+
}
|
|
68237
|
+
/**
|
|
68238
|
+
* Generate buffer from TLObject.
|
|
68239
|
+
*/
|
|
68240
|
+
write() {
|
|
68241
|
+
const b = new BytesIO();
|
|
68242
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
68243
|
+
// no flags
|
|
68244
|
+
if (this.id !== undefined) {
|
|
68245
|
+
b.write(Primitive.String.write(this.id));
|
|
68246
|
+
}
|
|
68247
|
+
if (this.document !== undefined) {
|
|
68248
|
+
b.write(this.document.write());
|
|
68249
|
+
}
|
|
68250
|
+
return Buffer.from(b.buffer);
|
|
68251
|
+
}
|
|
68252
|
+
}
|
|
68253
|
+
Raw.InputRichFileDocument = InputRichFileDocument;
|
|
68254
|
+
class InputRichMessage extends TLObject {
|
|
68255
|
+
rtl;
|
|
68256
|
+
noautolink;
|
|
68257
|
+
blocks;
|
|
68258
|
+
photos;
|
|
68259
|
+
documents;
|
|
68260
|
+
users;
|
|
68261
|
+
constructor(params) {
|
|
68262
|
+
super();
|
|
68263
|
+
this.classType = 'types';
|
|
68264
|
+
this.className = 'InputRichMessage';
|
|
68265
|
+
this.constructorId = 0xe4c449fc;
|
|
68266
|
+
this.subclassOfId = 0x55a7b313;
|
|
68267
|
+
this._slots = ['rtl', 'noautolink', 'blocks', 'photos', 'documents', 'users'];
|
|
68268
|
+
this.rtl = params.rtl;
|
|
68269
|
+
this.noautolink = params.noautolink;
|
|
68270
|
+
this.blocks = params.blocks;
|
|
68271
|
+
this.photos = params.photos;
|
|
68272
|
+
this.documents = params.documents;
|
|
68273
|
+
this.users = params.users;
|
|
68274
|
+
}
|
|
68275
|
+
/**
|
|
68276
|
+
* Generate the TLObject from buffer.
|
|
68277
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
68278
|
+
*/
|
|
68279
|
+
static async read(_data, ..._args) {
|
|
68280
|
+
// @ts-ignore
|
|
68281
|
+
let flags = await Primitive.Int.read(_data);
|
|
68282
|
+
let rtl = flags & (1 << 0) ? true : false;
|
|
68283
|
+
let noautolink = flags & (1 << 1) ? true : false;
|
|
68284
|
+
let blocks = await TLObject.read(_data);
|
|
68285
|
+
let photos = flags & (1 << 2) ? await TLObject.read(_data) : [];
|
|
68286
|
+
let documents = flags & (1 << 3) ? await TLObject.read(_data) : [];
|
|
68287
|
+
let users = flags & (1 << 4) ? await TLObject.read(_data) : [];
|
|
68288
|
+
return new Raw.InputRichMessage({
|
|
68289
|
+
rtl: rtl,
|
|
68290
|
+
noautolink: noautolink,
|
|
68291
|
+
blocks: blocks,
|
|
68292
|
+
photos: photos,
|
|
68293
|
+
documents: documents,
|
|
68294
|
+
users: users,
|
|
68295
|
+
});
|
|
68296
|
+
}
|
|
68297
|
+
/**
|
|
68298
|
+
* Generate buffer from TLObject.
|
|
68299
|
+
*/
|
|
68300
|
+
write() {
|
|
68301
|
+
const b = new BytesIO();
|
|
68302
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
68303
|
+
// @ts-ignore
|
|
68304
|
+
let flags = 0;
|
|
68305
|
+
flags |= this.rtl ? 1 << 0 : 0;
|
|
68306
|
+
flags |= this.noautolink ? 1 << 1 : 0;
|
|
68307
|
+
flags |= this.photos ? 1 << 2 : 0;
|
|
68308
|
+
flags |= this.documents ? 1 << 3 : 0;
|
|
68309
|
+
flags |= this.users ? 1 << 4 : 0;
|
|
68310
|
+
b.write(Primitive.Int.write(flags));
|
|
68311
|
+
if (this.blocks) {
|
|
68312
|
+
b.write(Primitive.Vector.write(this.blocks));
|
|
68313
|
+
}
|
|
68314
|
+
if (this.photos) {
|
|
68315
|
+
b.write(Primitive.Vector.write(this.photos));
|
|
68316
|
+
}
|
|
68317
|
+
if (this.documents) {
|
|
68318
|
+
b.write(Primitive.Vector.write(this.documents));
|
|
68319
|
+
}
|
|
68320
|
+
if (this.users) {
|
|
68321
|
+
b.write(Primitive.Vector.write(this.users));
|
|
68322
|
+
}
|
|
68323
|
+
return Buffer.from(b.buffer);
|
|
68324
|
+
}
|
|
68325
|
+
}
|
|
68326
|
+
Raw.InputRichMessage = InputRichMessage;
|
|
68327
|
+
class InputRichMessageHTML extends TLObject {
|
|
68328
|
+
rtl;
|
|
68329
|
+
noautolink;
|
|
68330
|
+
html;
|
|
68331
|
+
files;
|
|
68332
|
+
constructor(params) {
|
|
68333
|
+
super();
|
|
68334
|
+
this.classType = 'types';
|
|
68335
|
+
this.className = 'InputRichMessageHTML';
|
|
68336
|
+
this.constructorId = 0xdacb836a;
|
|
68337
|
+
this.subclassOfId = 0x55a7b313;
|
|
68338
|
+
this._slots = ['rtl', 'noautolink', 'html', 'files'];
|
|
68339
|
+
this.rtl = params.rtl;
|
|
68340
|
+
this.noautolink = params.noautolink;
|
|
68341
|
+
this.html = params.html;
|
|
68342
|
+
this.files = params.files;
|
|
68343
|
+
}
|
|
68344
|
+
/**
|
|
68345
|
+
* Generate the TLObject from buffer.
|
|
68346
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
68347
|
+
*/
|
|
68348
|
+
static async read(_data, ..._args) {
|
|
68349
|
+
// @ts-ignore
|
|
68350
|
+
let flags = await Primitive.Int.read(_data);
|
|
68351
|
+
let rtl = flags & (1 << 0) ? true : false;
|
|
68352
|
+
let noautolink = flags & (1 << 1) ? true : false;
|
|
68353
|
+
let html = await Primitive.String.read(_data);
|
|
68354
|
+
let files = flags & (1 << 2) ? await TLObject.read(_data) : [];
|
|
68355
|
+
return new Raw.InputRichMessageHTML({
|
|
68356
|
+
rtl: rtl,
|
|
68357
|
+
noautolink: noautolink,
|
|
68358
|
+
html: html,
|
|
68359
|
+
files: files,
|
|
68360
|
+
});
|
|
68361
|
+
}
|
|
68362
|
+
/**
|
|
68363
|
+
* Generate buffer from TLObject.
|
|
68364
|
+
*/
|
|
68365
|
+
write() {
|
|
68366
|
+
const b = new BytesIO();
|
|
68367
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
68368
|
+
// @ts-ignore
|
|
68369
|
+
let flags = 0;
|
|
68370
|
+
flags |= this.rtl ? 1 << 0 : 0;
|
|
68371
|
+
flags |= this.noautolink ? 1 << 1 : 0;
|
|
68372
|
+
flags |= this.files ? 1 << 2 : 0;
|
|
68373
|
+
b.write(Primitive.Int.write(flags));
|
|
68374
|
+
if (this.html !== undefined) {
|
|
68375
|
+
b.write(Primitive.String.write(this.html));
|
|
68376
|
+
}
|
|
68377
|
+
if (this.files) {
|
|
68378
|
+
b.write(Primitive.Vector.write(this.files));
|
|
68379
|
+
}
|
|
68380
|
+
return Buffer.from(b.buffer);
|
|
68381
|
+
}
|
|
68382
|
+
}
|
|
68383
|
+
Raw.InputRichMessageHTML = InputRichMessageHTML;
|
|
68384
|
+
class InputRichMessageMarkdown extends TLObject {
|
|
68385
|
+
rtl;
|
|
68386
|
+
noautolink;
|
|
68387
|
+
markdown;
|
|
68388
|
+
files;
|
|
68389
|
+
constructor(params) {
|
|
68390
|
+
super();
|
|
68391
|
+
this.classType = 'types';
|
|
68392
|
+
this.className = 'InputRichMessageMarkdown';
|
|
68393
|
+
this.constructorId = 0x4b572c;
|
|
68394
|
+
this.subclassOfId = 0x55a7b313;
|
|
68395
|
+
this._slots = ['rtl', 'noautolink', 'markdown', 'files'];
|
|
68396
|
+
this.rtl = params.rtl;
|
|
68397
|
+
this.noautolink = params.noautolink;
|
|
68398
|
+
this.markdown = params.markdown;
|
|
68399
|
+
this.files = params.files;
|
|
68400
|
+
}
|
|
68401
|
+
/**
|
|
68402
|
+
* Generate the TLObject from buffer.
|
|
68403
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
68404
|
+
*/
|
|
68405
|
+
static async read(_data, ..._args) {
|
|
68406
|
+
// @ts-ignore
|
|
68407
|
+
let flags = await Primitive.Int.read(_data);
|
|
68408
|
+
let rtl = flags & (1 << 0) ? true : false;
|
|
68409
|
+
let noautolink = flags & (1 << 1) ? true : false;
|
|
68410
|
+
let markdown = await Primitive.String.read(_data);
|
|
68411
|
+
let files = flags & (1 << 2) ? await TLObject.read(_data) : [];
|
|
68412
|
+
return new Raw.InputRichMessageMarkdown({
|
|
68413
|
+
rtl: rtl,
|
|
68414
|
+
noautolink: noautolink,
|
|
68415
|
+
markdown: markdown,
|
|
68416
|
+
files: files,
|
|
68417
|
+
});
|
|
68418
|
+
}
|
|
68419
|
+
/**
|
|
68420
|
+
* Generate buffer from TLObject.
|
|
68421
|
+
*/
|
|
68422
|
+
write() {
|
|
68423
|
+
const b = new BytesIO();
|
|
68424
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
68425
|
+
// @ts-ignore
|
|
68426
|
+
let flags = 0;
|
|
68427
|
+
flags |= this.rtl ? 1 << 0 : 0;
|
|
68428
|
+
flags |= this.noautolink ? 1 << 1 : 0;
|
|
68429
|
+
flags |= this.files ? 1 << 2 : 0;
|
|
68430
|
+
b.write(Primitive.Int.write(flags));
|
|
68431
|
+
if (this.markdown !== undefined) {
|
|
68432
|
+
b.write(Primitive.String.write(this.markdown));
|
|
68433
|
+
}
|
|
68434
|
+
if (this.files) {
|
|
68435
|
+
b.write(Primitive.Vector.write(this.files));
|
|
68436
|
+
}
|
|
68437
|
+
return Buffer.from(b.buffer);
|
|
68438
|
+
}
|
|
68439
|
+
}
|
|
68440
|
+
Raw.InputRichMessageMarkdown = InputRichMessageMarkdown;
|
|
68441
|
+
class RichMessage extends TLObject {
|
|
68442
|
+
rtl;
|
|
68443
|
+
part;
|
|
68444
|
+
blocks;
|
|
68445
|
+
photos;
|
|
68446
|
+
documents;
|
|
68447
|
+
constructor(params) {
|
|
68448
|
+
super();
|
|
68449
|
+
this.classType = 'types';
|
|
68450
|
+
this.className = 'RichMessage';
|
|
68451
|
+
this.constructorId = 0xbaf39d8b;
|
|
68452
|
+
this.subclassOfId = 0xe42b2a41;
|
|
68453
|
+
this._slots = ['rtl', 'part', 'blocks', 'photos', 'documents'];
|
|
68454
|
+
this.rtl = params.rtl;
|
|
68455
|
+
this.part = params.part;
|
|
68456
|
+
this.blocks = params.blocks;
|
|
68457
|
+
this.photos = params.photos;
|
|
68458
|
+
this.documents = params.documents;
|
|
68459
|
+
}
|
|
68460
|
+
/**
|
|
68461
|
+
* Generate the TLObject from buffer.
|
|
68462
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
68463
|
+
*/
|
|
68464
|
+
static async read(_data, ..._args) {
|
|
68465
|
+
// @ts-ignore
|
|
68466
|
+
let flags = await Primitive.Int.read(_data);
|
|
68467
|
+
let rtl = flags & (1 << 0) ? true : false;
|
|
68468
|
+
let part = flags & (1 << 1) ? true : false;
|
|
68469
|
+
let blocks = await TLObject.read(_data);
|
|
68470
|
+
let photos = await TLObject.read(_data);
|
|
68471
|
+
let documents = await TLObject.read(_data);
|
|
68472
|
+
return new Raw.RichMessage({
|
|
68473
|
+
rtl: rtl,
|
|
68474
|
+
part: part,
|
|
68475
|
+
blocks: blocks,
|
|
68476
|
+
photos: photos,
|
|
68477
|
+
documents: documents,
|
|
68478
|
+
});
|
|
68479
|
+
}
|
|
68480
|
+
/**
|
|
68481
|
+
* Generate buffer from TLObject.
|
|
68482
|
+
*/
|
|
68483
|
+
write() {
|
|
68484
|
+
const b = new BytesIO();
|
|
68485
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
68486
|
+
// @ts-ignore
|
|
68487
|
+
let flags = 0;
|
|
68488
|
+
flags |= this.rtl ? 1 << 0 : 0;
|
|
68489
|
+
flags |= this.part ? 1 << 1 : 0;
|
|
68490
|
+
b.write(Primitive.Int.write(flags));
|
|
68491
|
+
if (this.blocks) {
|
|
68492
|
+
b.write(Primitive.Vector.write(this.blocks));
|
|
68493
|
+
}
|
|
68494
|
+
if (this.photos) {
|
|
68495
|
+
b.write(Primitive.Vector.write(this.photos));
|
|
68496
|
+
}
|
|
68497
|
+
if (this.documents) {
|
|
68498
|
+
b.write(Primitive.Vector.write(this.documents));
|
|
68499
|
+
}
|
|
68500
|
+
return Buffer.from(b.buffer);
|
|
68501
|
+
}
|
|
68502
|
+
}
|
|
68503
|
+
Raw.RichMessage = RichMessage;
|
|
66521
68504
|
class InvokeAfterMsg extends TLObject {
|
|
66522
68505
|
__response__;
|
|
66523
68506
|
msgId;
|
|
@@ -75815,15 +77798,19 @@ export var Raw;
|
|
|
75815
77798
|
contacts_1.GetBlocked = GetBlocked;
|
|
75816
77799
|
class Search extends TLObject {
|
|
75817
77800
|
__response__;
|
|
77801
|
+
broadcasts;
|
|
77802
|
+
bots;
|
|
75818
77803
|
q;
|
|
75819
77804
|
limit;
|
|
75820
77805
|
constructor(params) {
|
|
75821
77806
|
super();
|
|
75822
77807
|
this.classType = 'functions';
|
|
75823
77808
|
this.className = 'contacts.Search';
|
|
75824
|
-
this.constructorId =
|
|
77809
|
+
this.constructorId = 0x5f58d0f;
|
|
75825
77810
|
this.subclassOfId = 0x4386a2e3;
|
|
75826
|
-
this._slots = ['q', 'limit'];
|
|
77811
|
+
this._slots = ['broadcasts', 'bots', 'q', 'limit'];
|
|
77812
|
+
this.broadcasts = params.broadcasts;
|
|
77813
|
+
this.bots = params.bots;
|
|
75827
77814
|
this.q = params.q;
|
|
75828
77815
|
this.limit = params.limit;
|
|
75829
77816
|
}
|
|
@@ -75832,10 +77819,13 @@ export var Raw;
|
|
|
75832
77819
|
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
75833
77820
|
*/
|
|
75834
77821
|
static async read(_data, ..._args) {
|
|
75835
|
-
//
|
|
77822
|
+
// @ts-ignore
|
|
77823
|
+
let flags = await Primitive.Int.read(_data);
|
|
77824
|
+
let broadcasts = flags & (1 << 0) ? true : false;
|
|
77825
|
+
let bots = flags & (1 << 1) ? true : false;
|
|
75836
77826
|
let q = await Primitive.String.read(_data);
|
|
75837
77827
|
let limit = await Primitive.Int.read(_data);
|
|
75838
|
-
return new Raw.contacts.Search({ q: q, limit: limit });
|
|
77828
|
+
return new Raw.contacts.Search({ broadcasts: broadcasts, bots: bots, q: q, limit: limit });
|
|
75839
77829
|
}
|
|
75840
77830
|
/**
|
|
75841
77831
|
* Generate buffer from TLObject.
|
|
@@ -75843,7 +77833,11 @@ export var Raw;
|
|
|
75843
77833
|
write() {
|
|
75844
77834
|
const b = new BytesIO();
|
|
75845
77835
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
75846
|
-
//
|
|
77836
|
+
// @ts-ignore
|
|
77837
|
+
let flags = 0;
|
|
77838
|
+
flags |= this.broadcasts ? 1 << 0 : 0;
|
|
77839
|
+
flags |= this.bots ? 1 << 1 : 0;
|
|
77840
|
+
b.write(Primitive.Int.write(flags));
|
|
75847
77841
|
if (this.q !== undefined) {
|
|
75848
77842
|
b.write(Primitive.String.write(this.q));
|
|
75849
77843
|
}
|
|
@@ -80994,6 +82988,90 @@ export var Raw;
|
|
|
80994
82988
|
}
|
|
80995
82989
|
}
|
|
80996
82990
|
messages_1.ComposedMessageWithAI = ComposedMessageWithAI;
|
|
82991
|
+
class ChatInviteJoinResultOk extends TLObject {
|
|
82992
|
+
updates;
|
|
82993
|
+
constructor(params) {
|
|
82994
|
+
super();
|
|
82995
|
+
this.classType = 'types';
|
|
82996
|
+
this.className = 'messages.ChatInviteJoinResultOk';
|
|
82997
|
+
this.constructorId = 0x445663a7;
|
|
82998
|
+
this.subclassOfId = 0x5d0ff992;
|
|
82999
|
+
this._slots = ['updates'];
|
|
83000
|
+
this.updates = params.updates;
|
|
83001
|
+
}
|
|
83002
|
+
/**
|
|
83003
|
+
* Generate the TLObject from buffer.
|
|
83004
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
83005
|
+
*/
|
|
83006
|
+
static async read(_data, ..._args) {
|
|
83007
|
+
// no flags
|
|
83008
|
+
let updates = await TLObject.read(_data);
|
|
83009
|
+
return new Raw.messages.ChatInviteJoinResultOk({ updates: updates });
|
|
83010
|
+
}
|
|
83011
|
+
/**
|
|
83012
|
+
* Generate buffer from TLObject.
|
|
83013
|
+
*/
|
|
83014
|
+
write() {
|
|
83015
|
+
const b = new BytesIO();
|
|
83016
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
83017
|
+
// no flags
|
|
83018
|
+
if (this.updates !== undefined) {
|
|
83019
|
+
b.write(this.updates.write());
|
|
83020
|
+
}
|
|
83021
|
+
return Buffer.from(b.buffer);
|
|
83022
|
+
}
|
|
83023
|
+
}
|
|
83024
|
+
messages_1.ChatInviteJoinResultOk = ChatInviteJoinResultOk;
|
|
83025
|
+
class ChatInviteJoinResultWebView extends TLObject {
|
|
83026
|
+
botId;
|
|
83027
|
+
webview;
|
|
83028
|
+
users;
|
|
83029
|
+
constructor(params) {
|
|
83030
|
+
super();
|
|
83031
|
+
this.classType = 'types';
|
|
83032
|
+
this.className = 'messages.ChatInviteJoinResultWebView';
|
|
83033
|
+
this.constructorId = 0x2f51c337;
|
|
83034
|
+
this.subclassOfId = 0x5d0ff992;
|
|
83035
|
+
this._slots = ['botId', 'webview', 'users'];
|
|
83036
|
+
this.botId = params.botId;
|
|
83037
|
+
this.webview = params.webview;
|
|
83038
|
+
this.users = params.users;
|
|
83039
|
+
}
|
|
83040
|
+
/**
|
|
83041
|
+
* Generate the TLObject from buffer.
|
|
83042
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
83043
|
+
*/
|
|
83044
|
+
static async read(_data, ..._args) {
|
|
83045
|
+
// no flags
|
|
83046
|
+
let botId = await Primitive.Long.read(_data);
|
|
83047
|
+
let webview = await TLObject.read(_data);
|
|
83048
|
+
let users = await TLObject.read(_data);
|
|
83049
|
+
return new Raw.messages.ChatInviteJoinResultWebView({
|
|
83050
|
+
botId: botId,
|
|
83051
|
+
webview: webview,
|
|
83052
|
+
users: users,
|
|
83053
|
+
});
|
|
83054
|
+
}
|
|
83055
|
+
/**
|
|
83056
|
+
* Generate buffer from TLObject.
|
|
83057
|
+
*/
|
|
83058
|
+
write() {
|
|
83059
|
+
const b = new BytesIO();
|
|
83060
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
83061
|
+
// no flags
|
|
83062
|
+
if (this.botId !== undefined) {
|
|
83063
|
+
b.write(Primitive.Long.write(this.botId));
|
|
83064
|
+
}
|
|
83065
|
+
if (this.webview !== undefined) {
|
|
83066
|
+
b.write(this.webview.write());
|
|
83067
|
+
}
|
|
83068
|
+
if (this.users) {
|
|
83069
|
+
b.write(Primitive.Vector.write(this.users));
|
|
83070
|
+
}
|
|
83071
|
+
return Buffer.from(b.buffer);
|
|
83072
|
+
}
|
|
83073
|
+
}
|
|
83074
|
+
messages_1.ChatInviteJoinResultWebView = ChatInviteJoinResultWebView;
|
|
80997
83075
|
class GetMessages extends TLObject {
|
|
80998
83076
|
__response__;
|
|
80999
83077
|
id;
|
|
@@ -81636,11 +83714,12 @@ export var Raw;
|
|
|
81636
83714
|
effect;
|
|
81637
83715
|
allowPaidStars;
|
|
81638
83716
|
suggestedPost;
|
|
83717
|
+
richMessage;
|
|
81639
83718
|
constructor(params) {
|
|
81640
83719
|
super();
|
|
81641
83720
|
this.classType = 'functions';
|
|
81642
83721
|
this.className = 'messages.SendMessage';
|
|
81643
|
-
this.constructorId =
|
|
83722
|
+
this.constructorId = 0xfef48f62;
|
|
81644
83723
|
this.subclassOfId = 0x8af52aac;
|
|
81645
83724
|
this._slots = [
|
|
81646
83725
|
'noWebpage',
|
|
@@ -81664,6 +83743,7 @@ export var Raw;
|
|
|
81664
83743
|
'effect',
|
|
81665
83744
|
'allowPaidStars',
|
|
81666
83745
|
'suggestedPost',
|
|
83746
|
+
'richMessage',
|
|
81667
83747
|
];
|
|
81668
83748
|
this.noWebpage = params.noWebpage;
|
|
81669
83749
|
this.silent = params.silent;
|
|
@@ -81686,6 +83766,7 @@ export var Raw;
|
|
|
81686
83766
|
this.effect = params.effect;
|
|
81687
83767
|
this.allowPaidStars = params.allowPaidStars;
|
|
81688
83768
|
this.suggestedPost = params.suggestedPost;
|
|
83769
|
+
this.richMessage = params.richMessage;
|
|
81689
83770
|
}
|
|
81690
83771
|
/**
|
|
81691
83772
|
* Generate the TLObject from buffer.
|
|
@@ -81715,6 +83796,7 @@ export var Raw;
|
|
|
81715
83796
|
let effect = flags & (1 << 18) ? await Primitive.Long.read(_data) : undefined;
|
|
81716
83797
|
let allowPaidStars = flags & (1 << 21) ? await Primitive.Long.read(_data) : undefined;
|
|
81717
83798
|
let suggestedPost = flags & (1 << 22) ? await TLObject.read(_data) : undefined;
|
|
83799
|
+
let richMessage = flags & (1 << 23) ? await TLObject.read(_data) : undefined;
|
|
81718
83800
|
return new Raw.messages.SendMessage({
|
|
81719
83801
|
noWebpage: noWebpage,
|
|
81720
83802
|
silent: silent,
|
|
@@ -81737,6 +83819,7 @@ export var Raw;
|
|
|
81737
83819
|
effect: effect,
|
|
81738
83820
|
allowPaidStars: allowPaidStars,
|
|
81739
83821
|
suggestedPost: suggestedPost,
|
|
83822
|
+
richMessage: richMessage,
|
|
81740
83823
|
});
|
|
81741
83824
|
}
|
|
81742
83825
|
/**
|
|
@@ -81765,6 +83848,7 @@ export var Raw;
|
|
|
81765
83848
|
flags |= this.effect !== undefined ? 1 << 18 : 0;
|
|
81766
83849
|
flags |= this.allowPaidStars !== undefined ? 1 << 21 : 0;
|
|
81767
83850
|
flags |= this.suggestedPost !== undefined ? 1 << 22 : 0;
|
|
83851
|
+
flags |= this.richMessage !== undefined ? 1 << 23 : 0;
|
|
81768
83852
|
b.write(Primitive.Int.write(flags));
|
|
81769
83853
|
if (this.peer !== undefined) {
|
|
81770
83854
|
b.write(this.peer.write());
|
|
@@ -81805,6 +83889,9 @@ export var Raw;
|
|
|
81805
83889
|
if (this.suggestedPost !== undefined) {
|
|
81806
83890
|
b.write(this.suggestedPost.write());
|
|
81807
83891
|
}
|
|
83892
|
+
if (this.richMessage !== undefined) {
|
|
83893
|
+
b.write(this.richMessage.write());
|
|
83894
|
+
}
|
|
81808
83895
|
return Buffer.from(b.buffer);
|
|
81809
83896
|
}
|
|
81810
83897
|
}
|
|
@@ -83427,8 +85514,8 @@ export var Raw;
|
|
|
83427
85514
|
super();
|
|
83428
85515
|
this.classType = 'functions';
|
|
83429
85516
|
this.className = 'messages.ImportChatInvite';
|
|
83430
|
-
this.constructorId =
|
|
83431
|
-
this.subclassOfId =
|
|
85517
|
+
this.constructorId = 0xde91436e;
|
|
85518
|
+
this.subclassOfId = 0x5d0ff992;
|
|
83432
85519
|
this._slots = ['hash'];
|
|
83433
85520
|
this.hash = params.hash;
|
|
83434
85521
|
}
|
|
@@ -84412,11 +86499,12 @@ export var Raw;
|
|
|
84412
86499
|
scheduleDate;
|
|
84413
86500
|
scheduleRepeatPeriod;
|
|
84414
86501
|
quickReplyShortcutId;
|
|
86502
|
+
richMessage;
|
|
84415
86503
|
constructor(params) {
|
|
84416
86504
|
super();
|
|
84417
86505
|
this.classType = 'functions';
|
|
84418
86506
|
this.className = 'messages.EditMessage';
|
|
84419
|
-
this.constructorId =
|
|
86507
|
+
this.constructorId = 0xb106e66c;
|
|
84420
86508
|
this.subclassOfId = 0x8af52aac;
|
|
84421
86509
|
this._slots = [
|
|
84422
86510
|
'noWebpage',
|
|
@@ -84430,6 +86518,7 @@ export var Raw;
|
|
|
84430
86518
|
'scheduleDate',
|
|
84431
86519
|
'scheduleRepeatPeriod',
|
|
84432
86520
|
'quickReplyShortcutId',
|
|
86521
|
+
'richMessage',
|
|
84433
86522
|
];
|
|
84434
86523
|
this.noWebpage = params.noWebpage;
|
|
84435
86524
|
this.invertMedia = params.invertMedia;
|
|
@@ -84442,6 +86531,7 @@ export var Raw;
|
|
|
84442
86531
|
this.scheduleDate = params.scheduleDate;
|
|
84443
86532
|
this.scheduleRepeatPeriod = params.scheduleRepeatPeriod;
|
|
84444
86533
|
this.quickReplyShortcutId = params.quickReplyShortcutId;
|
|
86534
|
+
this.richMessage = params.richMessage;
|
|
84445
86535
|
}
|
|
84446
86536
|
/**
|
|
84447
86537
|
* Generate the TLObject from buffer.
|
|
@@ -84461,6 +86551,7 @@ export var Raw;
|
|
|
84461
86551
|
let scheduleDate = flags & (1 << 15) ? await Primitive.Int.read(_data) : undefined;
|
|
84462
86552
|
let scheduleRepeatPeriod = flags & (1 << 18) ? await Primitive.Int.read(_data) : undefined;
|
|
84463
86553
|
let quickReplyShortcutId = flags & (1 << 17) ? await Primitive.Int.read(_data) : undefined;
|
|
86554
|
+
let richMessage = flags & (1 << 23) ? await TLObject.read(_data) : undefined;
|
|
84464
86555
|
return new Raw.messages.EditMessage({
|
|
84465
86556
|
noWebpage: noWebpage,
|
|
84466
86557
|
invertMedia: invertMedia,
|
|
@@ -84473,6 +86564,7 @@ export var Raw;
|
|
|
84473
86564
|
scheduleDate: scheduleDate,
|
|
84474
86565
|
scheduleRepeatPeriod: scheduleRepeatPeriod,
|
|
84475
86566
|
quickReplyShortcutId: quickReplyShortcutId,
|
|
86567
|
+
richMessage: richMessage,
|
|
84476
86568
|
});
|
|
84477
86569
|
}
|
|
84478
86570
|
/**
|
|
@@ -84492,6 +86584,7 @@ export var Raw;
|
|
|
84492
86584
|
flags |= this.scheduleDate !== undefined ? 1 << 15 : 0;
|
|
84493
86585
|
flags |= this.scheduleRepeatPeriod !== undefined ? 1 << 18 : 0;
|
|
84494
86586
|
flags |= this.quickReplyShortcutId !== undefined ? 1 << 17 : 0;
|
|
86587
|
+
flags |= this.richMessage !== undefined ? 1 << 23 : 0;
|
|
84495
86588
|
b.write(Primitive.Int.write(flags));
|
|
84496
86589
|
if (this.peer !== undefined) {
|
|
84497
86590
|
b.write(this.peer.write());
|
|
@@ -84520,6 +86613,9 @@ export var Raw;
|
|
|
84520
86613
|
if (this.quickReplyShortcutId !== undefined) {
|
|
84521
86614
|
b.write(Primitive.Int.write(this.quickReplyShortcutId));
|
|
84522
86615
|
}
|
|
86616
|
+
if (this.richMessage !== undefined) {
|
|
86617
|
+
b.write(this.richMessage.write());
|
|
86618
|
+
}
|
|
84523
86619
|
return Buffer.from(b.buffer);
|
|
84524
86620
|
}
|
|
84525
86621
|
}
|
|
@@ -84533,11 +86629,12 @@ export var Raw;
|
|
|
84533
86629
|
media;
|
|
84534
86630
|
replyMarkup;
|
|
84535
86631
|
entities;
|
|
86632
|
+
richMessage;
|
|
84536
86633
|
constructor(params) {
|
|
84537
86634
|
super();
|
|
84538
86635
|
this.classType = 'functions';
|
|
84539
86636
|
this.className = 'messages.EditInlineBotMessage';
|
|
84540
|
-
this.constructorId =
|
|
86637
|
+
this.constructorId = 0xa423bb51;
|
|
84541
86638
|
this.subclassOfId = 0xf5b399ac;
|
|
84542
86639
|
this._slots = [
|
|
84543
86640
|
'noWebpage',
|
|
@@ -84547,6 +86644,7 @@ export var Raw;
|
|
|
84547
86644
|
'media',
|
|
84548
86645
|
'replyMarkup',
|
|
84549
86646
|
'entities',
|
|
86647
|
+
'richMessage',
|
|
84550
86648
|
];
|
|
84551
86649
|
this.noWebpage = params.noWebpage;
|
|
84552
86650
|
this.invertMedia = params.invertMedia;
|
|
@@ -84555,6 +86653,7 @@ export var Raw;
|
|
|
84555
86653
|
this.media = params.media;
|
|
84556
86654
|
this.replyMarkup = params.replyMarkup;
|
|
84557
86655
|
this.entities = params.entities;
|
|
86656
|
+
this.richMessage = params.richMessage;
|
|
84558
86657
|
}
|
|
84559
86658
|
/**
|
|
84560
86659
|
* Generate the TLObject from buffer.
|
|
@@ -84570,6 +86669,7 @@ export var Raw;
|
|
|
84570
86669
|
let media = flags & (1 << 14) ? await TLObject.read(_data) : undefined;
|
|
84571
86670
|
let replyMarkup = flags & (1 << 2) ? await TLObject.read(_data) : undefined;
|
|
84572
86671
|
let entities = flags & (1 << 3) ? await TLObject.read(_data) : [];
|
|
86672
|
+
let richMessage = flags & (1 << 23) ? await TLObject.read(_data) : undefined;
|
|
84573
86673
|
return new Raw.messages.EditInlineBotMessage({
|
|
84574
86674
|
noWebpage: noWebpage,
|
|
84575
86675
|
invertMedia: invertMedia,
|
|
@@ -84578,6 +86678,7 @@ export var Raw;
|
|
|
84578
86678
|
media: media,
|
|
84579
86679
|
replyMarkup: replyMarkup,
|
|
84580
86680
|
entities: entities,
|
|
86681
|
+
richMessage: richMessage,
|
|
84581
86682
|
});
|
|
84582
86683
|
}
|
|
84583
86684
|
/**
|
|
@@ -84594,6 +86695,7 @@ export var Raw;
|
|
|
84594
86695
|
flags |= this.media !== undefined ? 1 << 14 : 0;
|
|
84595
86696
|
flags |= this.replyMarkup !== undefined ? 1 << 2 : 0;
|
|
84596
86697
|
flags |= this.entities ? 1 << 3 : 0;
|
|
86698
|
+
flags |= this.richMessage !== undefined ? 1 << 23 : 0;
|
|
84597
86699
|
b.write(Primitive.Int.write(flags));
|
|
84598
86700
|
if (this.id !== undefined) {
|
|
84599
86701
|
b.write(this.id.write());
|
|
@@ -84610,6 +86712,9 @@ export var Raw;
|
|
|
84610
86712
|
if (this.entities) {
|
|
84611
86713
|
b.write(Primitive.Vector.write(this.entities));
|
|
84612
86714
|
}
|
|
86715
|
+
if (this.richMessage !== undefined) {
|
|
86716
|
+
b.write(this.richMessage.write());
|
|
86717
|
+
}
|
|
84613
86718
|
return Buffer.from(b.buffer);
|
|
84614
86719
|
}
|
|
84615
86720
|
}
|
|
@@ -84796,11 +86901,12 @@ export var Raw;
|
|
|
84796
86901
|
media;
|
|
84797
86902
|
effect;
|
|
84798
86903
|
suggestedPost;
|
|
86904
|
+
richMessage;
|
|
84799
86905
|
constructor(params) {
|
|
84800
86906
|
super();
|
|
84801
86907
|
this.classType = 'functions';
|
|
84802
86908
|
this.className = 'messages.SaveDraft';
|
|
84803
|
-
this.constructorId =
|
|
86909
|
+
this.constructorId = 0xad0fa15c;
|
|
84804
86910
|
this.subclassOfId = 0xf5b399ac;
|
|
84805
86911
|
this._slots = [
|
|
84806
86912
|
'noWebpage',
|
|
@@ -84812,6 +86918,7 @@ export var Raw;
|
|
|
84812
86918
|
'media',
|
|
84813
86919
|
'effect',
|
|
84814
86920
|
'suggestedPost',
|
|
86921
|
+
'richMessage',
|
|
84815
86922
|
];
|
|
84816
86923
|
this.noWebpage = params.noWebpage;
|
|
84817
86924
|
this.invertMedia = params.invertMedia;
|
|
@@ -84822,6 +86929,7 @@ export var Raw;
|
|
|
84822
86929
|
this.media = params.media;
|
|
84823
86930
|
this.effect = params.effect;
|
|
84824
86931
|
this.suggestedPost = params.suggestedPost;
|
|
86932
|
+
this.richMessage = params.richMessage;
|
|
84825
86933
|
}
|
|
84826
86934
|
/**
|
|
84827
86935
|
* Generate the TLObject from buffer.
|
|
@@ -84839,6 +86947,7 @@ export var Raw;
|
|
|
84839
86947
|
let media = flags & (1 << 5) ? await TLObject.read(_data) : undefined;
|
|
84840
86948
|
let effect = flags & (1 << 7) ? await Primitive.Long.read(_data) : undefined;
|
|
84841
86949
|
let suggestedPost = flags & (1 << 8) ? await TLObject.read(_data) : undefined;
|
|
86950
|
+
let richMessage = flags & (1 << 9) ? await TLObject.read(_data) : undefined;
|
|
84842
86951
|
return new Raw.messages.SaveDraft({
|
|
84843
86952
|
noWebpage: noWebpage,
|
|
84844
86953
|
invertMedia: invertMedia,
|
|
@@ -84849,6 +86958,7 @@ export var Raw;
|
|
|
84849
86958
|
media: media,
|
|
84850
86959
|
effect: effect,
|
|
84851
86960
|
suggestedPost: suggestedPost,
|
|
86961
|
+
richMessage: richMessage,
|
|
84852
86962
|
});
|
|
84853
86963
|
}
|
|
84854
86964
|
/**
|
|
@@ -84866,6 +86976,7 @@ export var Raw;
|
|
|
84866
86976
|
flags |= this.media !== undefined ? 1 << 5 : 0;
|
|
84867
86977
|
flags |= this.effect !== undefined ? 1 << 7 : 0;
|
|
84868
86978
|
flags |= this.suggestedPost !== undefined ? 1 << 8 : 0;
|
|
86979
|
+
flags |= this.richMessage !== undefined ? 1 << 9 : 0;
|
|
84869
86980
|
b.write(Primitive.Int.write(flags));
|
|
84870
86981
|
if (this.replyTo !== undefined) {
|
|
84871
86982
|
b.write(this.replyTo.write());
|
|
@@ -84888,6 +86999,9 @@ export var Raw;
|
|
|
84888
86999
|
if (this.suggestedPost !== undefined) {
|
|
84889
87000
|
b.write(this.suggestedPost.write());
|
|
84890
87001
|
}
|
|
87002
|
+
if (this.richMessage !== undefined) {
|
|
87003
|
+
b.write(this.richMessage.write());
|
|
87004
|
+
}
|
|
84891
87005
|
return Buffer.from(b.buffer);
|
|
84892
87006
|
}
|
|
84893
87007
|
}
|
|
@@ -94387,8 +96501,8 @@ export var Raw;
|
|
|
94387
96501
|
super();
|
|
94388
96502
|
this.classType = 'functions';
|
|
94389
96503
|
this.className = 'messages.SetBotGuestChatResult';
|
|
94390
|
-
this.constructorId =
|
|
94391
|
-
this.subclassOfId =
|
|
96504
|
+
this.constructorId = 0xb8f106e3;
|
|
96505
|
+
this.subclassOfId = 0x2dcd6300;
|
|
94392
96506
|
this._slots = ['queryId', 'result'];
|
|
94393
96507
|
this.queryId = params.queryId;
|
|
94394
96508
|
this.result = params.result;
|
|
@@ -94580,6 +96694,47 @@ export var Raw;
|
|
|
94580
96694
|
}
|
|
94581
96695
|
}
|
|
94582
96696
|
messages_1.GetPersonalChannelHistory = GetPersonalChannelHistory;
|
|
96697
|
+
class GetRichMessage extends TLObject {
|
|
96698
|
+
__response__;
|
|
96699
|
+
peer;
|
|
96700
|
+
id;
|
|
96701
|
+
constructor(params) {
|
|
96702
|
+
super();
|
|
96703
|
+
this.classType = 'functions';
|
|
96704
|
+
this.className = 'messages.GetRichMessage';
|
|
96705
|
+
this.constructorId = 0x501569cf;
|
|
96706
|
+
this.subclassOfId = 0xd4b40b5e;
|
|
96707
|
+
this._slots = ['peer', 'id'];
|
|
96708
|
+
this.peer = params.peer;
|
|
96709
|
+
this.id = params.id;
|
|
96710
|
+
}
|
|
96711
|
+
/**
|
|
96712
|
+
* Generate the TLObject from buffer.
|
|
96713
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
96714
|
+
*/
|
|
96715
|
+
static async read(_data, ..._args) {
|
|
96716
|
+
// no flags
|
|
96717
|
+
let peer = await TLObject.read(_data);
|
|
96718
|
+
let id = await Primitive.Int.read(_data);
|
|
96719
|
+
return new Raw.messages.GetRichMessage({ peer: peer, id: id });
|
|
96720
|
+
}
|
|
96721
|
+
/**
|
|
96722
|
+
* Generate buffer from TLObject.
|
|
96723
|
+
*/
|
|
96724
|
+
write() {
|
|
96725
|
+
const b = new BytesIO();
|
|
96726
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
96727
|
+
// no flags
|
|
96728
|
+
if (this.peer !== undefined) {
|
|
96729
|
+
b.write(this.peer.write());
|
|
96730
|
+
}
|
|
96731
|
+
if (this.id !== undefined) {
|
|
96732
|
+
b.write(Primitive.Int.write(this.id));
|
|
96733
|
+
}
|
|
96734
|
+
return Buffer.from(b.buffer);
|
|
96735
|
+
}
|
|
96736
|
+
}
|
|
96737
|
+
messages_1.GetRichMessage = GetRichMessage;
|
|
94583
96738
|
})(messages = Raw.messages || (Raw.messages = {}));
|
|
94584
96739
|
let updates;
|
|
94585
96740
|
(function (updates) {
|
|
@@ -97974,6 +100129,103 @@ export var Raw;
|
|
|
97974
100129
|
}
|
|
97975
100130
|
}
|
|
97976
100131
|
account.PasskeyRegistrationOptions = PasskeyRegistrationOptions;
|
|
100132
|
+
class WebBrowserSettingsNotModified extends TLObject {
|
|
100133
|
+
constructor() {
|
|
100134
|
+
super();
|
|
100135
|
+
this.classType = 'types';
|
|
100136
|
+
this.className = 'account.WebBrowserSettingsNotModified';
|
|
100137
|
+
this.constructorId = 0xc31c8f4e;
|
|
100138
|
+
this.subclassOfId = 0x44799578;
|
|
100139
|
+
this._slots = [];
|
|
100140
|
+
}
|
|
100141
|
+
/**
|
|
100142
|
+
* Generate the TLObject from buffer.
|
|
100143
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
100144
|
+
*/
|
|
100145
|
+
static async read(_data, ..._args) {
|
|
100146
|
+
// no flags
|
|
100147
|
+
return new Raw.account.WebBrowserSettingsNotModified();
|
|
100148
|
+
}
|
|
100149
|
+
/**
|
|
100150
|
+
* Generate buffer from TLObject.
|
|
100151
|
+
*/
|
|
100152
|
+
write() {
|
|
100153
|
+
const b = new BytesIO();
|
|
100154
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
100155
|
+
// no flags
|
|
100156
|
+
return Buffer.from(b.buffer);
|
|
100157
|
+
}
|
|
100158
|
+
}
|
|
100159
|
+
account.WebBrowserSettingsNotModified = WebBrowserSettingsNotModified;
|
|
100160
|
+
class WebBrowserSettings extends TLObject {
|
|
100161
|
+
openExternalBrowser;
|
|
100162
|
+
displayCloseButton;
|
|
100163
|
+
externalExceptions;
|
|
100164
|
+
inappExceptions;
|
|
100165
|
+
hash;
|
|
100166
|
+
constructor(params) {
|
|
100167
|
+
super();
|
|
100168
|
+
this.classType = 'types';
|
|
100169
|
+
this.className = 'account.WebBrowserSettings';
|
|
100170
|
+
this.constructorId = 0x79eb8cb3;
|
|
100171
|
+
this.subclassOfId = 0x44799578;
|
|
100172
|
+
this._slots = [
|
|
100173
|
+
'openExternalBrowser',
|
|
100174
|
+
'displayCloseButton',
|
|
100175
|
+
'externalExceptions',
|
|
100176
|
+
'inappExceptions',
|
|
100177
|
+
'hash',
|
|
100178
|
+
];
|
|
100179
|
+
this.openExternalBrowser = params.openExternalBrowser;
|
|
100180
|
+
this.displayCloseButton = params.displayCloseButton;
|
|
100181
|
+
this.externalExceptions = params.externalExceptions;
|
|
100182
|
+
this.inappExceptions = params.inappExceptions;
|
|
100183
|
+
this.hash = params.hash;
|
|
100184
|
+
}
|
|
100185
|
+
/**
|
|
100186
|
+
* Generate the TLObject from buffer.
|
|
100187
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
100188
|
+
*/
|
|
100189
|
+
static async read(_data, ..._args) {
|
|
100190
|
+
// @ts-ignore
|
|
100191
|
+
let flags = await Primitive.Int.read(_data);
|
|
100192
|
+
let openExternalBrowser = flags & (1 << 0) ? true : false;
|
|
100193
|
+
let displayCloseButton = flags & (1 << 1) ? true : false;
|
|
100194
|
+
let externalExceptions = await TLObject.read(_data);
|
|
100195
|
+
let inappExceptions = await TLObject.read(_data);
|
|
100196
|
+
let hash = await Primitive.Long.read(_data);
|
|
100197
|
+
return new Raw.account.WebBrowserSettings({
|
|
100198
|
+
openExternalBrowser: openExternalBrowser,
|
|
100199
|
+
displayCloseButton: displayCloseButton,
|
|
100200
|
+
externalExceptions: externalExceptions,
|
|
100201
|
+
inappExceptions: inappExceptions,
|
|
100202
|
+
hash: hash,
|
|
100203
|
+
});
|
|
100204
|
+
}
|
|
100205
|
+
/**
|
|
100206
|
+
* Generate buffer from TLObject.
|
|
100207
|
+
*/
|
|
100208
|
+
write() {
|
|
100209
|
+
const b = new BytesIO();
|
|
100210
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
100211
|
+
// @ts-ignore
|
|
100212
|
+
let flags = 0;
|
|
100213
|
+
flags |= this.openExternalBrowser ? 1 << 0 : 0;
|
|
100214
|
+
flags |= this.displayCloseButton ? 1 << 1 : 0;
|
|
100215
|
+
b.write(Primitive.Int.write(flags));
|
|
100216
|
+
if (this.externalExceptions) {
|
|
100217
|
+
b.write(Primitive.Vector.write(this.externalExceptions));
|
|
100218
|
+
}
|
|
100219
|
+
if (this.inappExceptions) {
|
|
100220
|
+
b.write(Primitive.Vector.write(this.inappExceptions));
|
|
100221
|
+
}
|
|
100222
|
+
if (this.hash !== undefined) {
|
|
100223
|
+
b.write(Primitive.Long.write(this.hash));
|
|
100224
|
+
}
|
|
100225
|
+
return Buffer.from(b.buffer);
|
|
100226
|
+
}
|
|
100227
|
+
}
|
|
100228
|
+
account.WebBrowserSettings = WebBrowserSettings;
|
|
97977
100229
|
class RegisterDevice extends TLObject {
|
|
97978
100230
|
__response__;
|
|
97979
100231
|
noMuted;
|
|
@@ -102897,6 +105149,201 @@ export var Raw;
|
|
|
102897
105149
|
}
|
|
102898
105150
|
}
|
|
102899
105151
|
account.DeletePasskey = DeletePasskey;
|
|
105152
|
+
class ConfirmBotConnection extends TLObject {
|
|
105153
|
+
__response__;
|
|
105154
|
+
botId;
|
|
105155
|
+
constructor(params) {
|
|
105156
|
+
super();
|
|
105157
|
+
this.classType = 'functions';
|
|
105158
|
+
this.className = 'account.ConfirmBotConnection';
|
|
105159
|
+
this.constructorId = 0x67ed1f68;
|
|
105160
|
+
this.subclassOfId = 0xf5b399ac;
|
|
105161
|
+
this._slots = ['botId'];
|
|
105162
|
+
this.botId = params.botId;
|
|
105163
|
+
}
|
|
105164
|
+
/**
|
|
105165
|
+
* Generate the TLObject from buffer.
|
|
105166
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
105167
|
+
*/
|
|
105168
|
+
static async read(_data, ..._args) {
|
|
105169
|
+
// no flags
|
|
105170
|
+
let botId = await TLObject.read(_data);
|
|
105171
|
+
return new Raw.account.ConfirmBotConnection({ botId: botId });
|
|
105172
|
+
}
|
|
105173
|
+
/**
|
|
105174
|
+
* Generate buffer from TLObject.
|
|
105175
|
+
*/
|
|
105176
|
+
write() {
|
|
105177
|
+
const b = new BytesIO();
|
|
105178
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
105179
|
+
// no flags
|
|
105180
|
+
if (this.botId !== undefined) {
|
|
105181
|
+
b.write(this.botId.write());
|
|
105182
|
+
}
|
|
105183
|
+
return Buffer.from(b.buffer);
|
|
105184
|
+
}
|
|
105185
|
+
}
|
|
105186
|
+
account.ConfirmBotConnection = ConfirmBotConnection;
|
|
105187
|
+
class GetWebBrowserSettings extends TLObject {
|
|
105188
|
+
__response__;
|
|
105189
|
+
hash;
|
|
105190
|
+
constructor(params) {
|
|
105191
|
+
super();
|
|
105192
|
+
this.classType = 'functions';
|
|
105193
|
+
this.className = 'account.GetWebBrowserSettings';
|
|
105194
|
+
this.constructorId = 0x56655768;
|
|
105195
|
+
this.subclassOfId = 0x44799578;
|
|
105196
|
+
this._slots = ['hash'];
|
|
105197
|
+
this.hash = params.hash;
|
|
105198
|
+
}
|
|
105199
|
+
/**
|
|
105200
|
+
* Generate the TLObject from buffer.
|
|
105201
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
105202
|
+
*/
|
|
105203
|
+
static async read(_data, ..._args) {
|
|
105204
|
+
// no flags
|
|
105205
|
+
let hash = await Primitive.Long.read(_data);
|
|
105206
|
+
return new Raw.account.GetWebBrowserSettings({ hash: hash });
|
|
105207
|
+
}
|
|
105208
|
+
/**
|
|
105209
|
+
* Generate buffer from TLObject.
|
|
105210
|
+
*/
|
|
105211
|
+
write() {
|
|
105212
|
+
const b = new BytesIO();
|
|
105213
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
105214
|
+
// no flags
|
|
105215
|
+
if (this.hash !== undefined) {
|
|
105216
|
+
b.write(Primitive.Long.write(this.hash));
|
|
105217
|
+
}
|
|
105218
|
+
return Buffer.from(b.buffer);
|
|
105219
|
+
}
|
|
105220
|
+
}
|
|
105221
|
+
account.GetWebBrowserSettings = GetWebBrowserSettings;
|
|
105222
|
+
class UpdateWebBrowserSettings extends TLObject {
|
|
105223
|
+
__response__;
|
|
105224
|
+
openExternalBrowser;
|
|
105225
|
+
displayCloseButton;
|
|
105226
|
+
constructor(params) {
|
|
105227
|
+
super();
|
|
105228
|
+
this.classType = 'functions';
|
|
105229
|
+
this.className = 'account.UpdateWebBrowserSettings';
|
|
105230
|
+
this.constructorId = 0x9adf82fe;
|
|
105231
|
+
this.subclassOfId = 0x44799578;
|
|
105232
|
+
this._slots = ['openExternalBrowser', 'displayCloseButton'];
|
|
105233
|
+
this.openExternalBrowser = params.openExternalBrowser;
|
|
105234
|
+
this.displayCloseButton = params.displayCloseButton;
|
|
105235
|
+
}
|
|
105236
|
+
/**
|
|
105237
|
+
* Generate the TLObject from buffer.
|
|
105238
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
105239
|
+
*/
|
|
105240
|
+
static async read(_data, ..._args) {
|
|
105241
|
+
// @ts-ignore
|
|
105242
|
+
let flags = await Primitive.Int.read(_data);
|
|
105243
|
+
let openExternalBrowser = flags & (1 << 0) ? true : false;
|
|
105244
|
+
let displayCloseButton = flags & (1 << 1) ? true : false;
|
|
105245
|
+
return new Raw.account.UpdateWebBrowserSettings({
|
|
105246
|
+
openExternalBrowser: openExternalBrowser,
|
|
105247
|
+
displayCloseButton: displayCloseButton,
|
|
105248
|
+
});
|
|
105249
|
+
}
|
|
105250
|
+
/**
|
|
105251
|
+
* Generate buffer from TLObject.
|
|
105252
|
+
*/
|
|
105253
|
+
write() {
|
|
105254
|
+
const b = new BytesIO();
|
|
105255
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
105256
|
+
// @ts-ignore
|
|
105257
|
+
let flags = 0;
|
|
105258
|
+
flags |= this.openExternalBrowser ? 1 << 0 : 0;
|
|
105259
|
+
flags |= this.displayCloseButton ? 1 << 1 : 0;
|
|
105260
|
+
b.write(Primitive.Int.write(flags));
|
|
105261
|
+
return Buffer.from(b.buffer);
|
|
105262
|
+
}
|
|
105263
|
+
}
|
|
105264
|
+
account.UpdateWebBrowserSettings = UpdateWebBrowserSettings;
|
|
105265
|
+
class ToggleWebBrowserSettingsException extends TLObject {
|
|
105266
|
+
__response__;
|
|
105267
|
+
delete;
|
|
105268
|
+
openExternalBrowser;
|
|
105269
|
+
url;
|
|
105270
|
+
constructor(params) {
|
|
105271
|
+
super();
|
|
105272
|
+
this.classType = 'functions';
|
|
105273
|
+
this.className = 'account.ToggleWebBrowserSettingsException';
|
|
105274
|
+
this.constructorId = 0x60ed4229;
|
|
105275
|
+
this.subclassOfId = 0x8af52aac;
|
|
105276
|
+
this._slots = ['delete', 'openExternalBrowser', 'url'];
|
|
105277
|
+
this.delete = params.delete;
|
|
105278
|
+
this.openExternalBrowser = params.openExternalBrowser;
|
|
105279
|
+
this.url = params.url;
|
|
105280
|
+
}
|
|
105281
|
+
/**
|
|
105282
|
+
* Generate the TLObject from buffer.
|
|
105283
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
105284
|
+
*/
|
|
105285
|
+
static async read(_data, ..._args) {
|
|
105286
|
+
// @ts-ignore
|
|
105287
|
+
let flags = await Primitive.Int.read(_data);
|
|
105288
|
+
let _delete = flags & (1 << 1) ? true : false;
|
|
105289
|
+
let openExternalBrowser = flags & (1 << 0) ? await Primitive.Bool.read(_data) : undefined;
|
|
105290
|
+
let url = await Primitive.String.read(_data);
|
|
105291
|
+
return new Raw.account.ToggleWebBrowserSettingsException({
|
|
105292
|
+
delete: _delete,
|
|
105293
|
+
openExternalBrowser: openExternalBrowser,
|
|
105294
|
+
url: url,
|
|
105295
|
+
});
|
|
105296
|
+
}
|
|
105297
|
+
/**
|
|
105298
|
+
* Generate buffer from TLObject.
|
|
105299
|
+
*/
|
|
105300
|
+
write() {
|
|
105301
|
+
const b = new BytesIO();
|
|
105302
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
105303
|
+
// @ts-ignore
|
|
105304
|
+
let flags = 0;
|
|
105305
|
+
flags |= this.delete ? 1 << 1 : 0;
|
|
105306
|
+
flags |= this.openExternalBrowser !== undefined ? 1 << 0 : 0;
|
|
105307
|
+
b.write(Primitive.Int.write(flags));
|
|
105308
|
+
if (this.openExternalBrowser !== undefined) {
|
|
105309
|
+
b.write(Primitive.Bool.write(this.openExternalBrowser));
|
|
105310
|
+
}
|
|
105311
|
+
if (this.url !== undefined) {
|
|
105312
|
+
b.write(Primitive.String.write(this.url));
|
|
105313
|
+
}
|
|
105314
|
+
return Buffer.from(b.buffer);
|
|
105315
|
+
}
|
|
105316
|
+
}
|
|
105317
|
+
account.ToggleWebBrowserSettingsException = ToggleWebBrowserSettingsException;
|
|
105318
|
+
class DeleteWebBrowserSettingsExceptions extends TLObject {
|
|
105319
|
+
__response__;
|
|
105320
|
+
constructor() {
|
|
105321
|
+
super();
|
|
105322
|
+
this.classType = 'functions';
|
|
105323
|
+
this.className = 'account.DeleteWebBrowserSettingsExceptions';
|
|
105324
|
+
this.constructorId = 0x86a0765d;
|
|
105325
|
+
this.subclassOfId = 0x44799578;
|
|
105326
|
+
this._slots = [];
|
|
105327
|
+
}
|
|
105328
|
+
/**
|
|
105329
|
+
* Generate the TLObject from buffer.
|
|
105330
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
105331
|
+
*/
|
|
105332
|
+
static async read(_data, ..._args) {
|
|
105333
|
+
// no flags
|
|
105334
|
+
return new Raw.account.DeleteWebBrowserSettingsExceptions();
|
|
105335
|
+
}
|
|
105336
|
+
/**
|
|
105337
|
+
* Generate buffer from TLObject.
|
|
105338
|
+
*/
|
|
105339
|
+
write() {
|
|
105340
|
+
const b = new BytesIO();
|
|
105341
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
105342
|
+
// no flags
|
|
105343
|
+
return Buffer.from(b.buffer);
|
|
105344
|
+
}
|
|
105345
|
+
}
|
|
105346
|
+
account.DeleteWebBrowserSettingsExceptions = DeleteWebBrowserSettingsExceptions;
|
|
102900
105347
|
})(account = Raw.account || (Raw.account = {}));
|
|
102901
105348
|
let channels;
|
|
102902
105349
|
(function (channels) {
|
|
@@ -103906,8 +106353,8 @@ export var Raw;
|
|
|
103906
106353
|
super();
|
|
103907
106354
|
this.classType = 'functions';
|
|
103908
106355
|
this.className = 'channels.JoinChannel';
|
|
103909
|
-
this.constructorId =
|
|
103910
|
-
this.subclassOfId =
|
|
106356
|
+
this.constructorId = 0x7f6a1e22;
|
|
106357
|
+
this.subclassOfId = 0x5d0ff992;
|
|
103911
106358
|
this._slots = ['channel'];
|
|
103912
106359
|
this.channel = params.channel;
|
|
103913
106360
|
}
|
|
@@ -104908,27 +107355,39 @@ export var Raw;
|
|
|
104908
107355
|
channels.ToggleJoinToSend = ToggleJoinToSend;
|
|
104909
107356
|
class ToggleJoinRequest extends TLObject {
|
|
104910
107357
|
__response__;
|
|
107358
|
+
applyToInvites;
|
|
104911
107359
|
channel;
|
|
104912
107360
|
enabled;
|
|
107361
|
+
guardBot;
|
|
104913
107362
|
constructor(params) {
|
|
104914
107363
|
super();
|
|
104915
107364
|
this.classType = 'functions';
|
|
104916
107365
|
this.className = 'channels.ToggleJoinRequest';
|
|
104917
|
-
this.constructorId =
|
|
107366
|
+
this.constructorId = 0xecc2618;
|
|
104918
107367
|
this.subclassOfId = 0x8af52aac;
|
|
104919
|
-
this._slots = ['channel', 'enabled'];
|
|
107368
|
+
this._slots = ['applyToInvites', 'channel', 'enabled', 'guardBot'];
|
|
107369
|
+
this.applyToInvites = params.applyToInvites;
|
|
104920
107370
|
this.channel = params.channel;
|
|
104921
107371
|
this.enabled = params.enabled;
|
|
107372
|
+
this.guardBot = params.guardBot;
|
|
104922
107373
|
}
|
|
104923
107374
|
/**
|
|
104924
107375
|
* Generate the TLObject from buffer.
|
|
104925
107376
|
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
104926
107377
|
*/
|
|
104927
107378
|
static async read(_data, ..._args) {
|
|
104928
|
-
//
|
|
107379
|
+
// @ts-ignore
|
|
107380
|
+
let flags = await Primitive.Int.read(_data);
|
|
107381
|
+
let applyToInvites = flags & (1 << 1) ? true : false;
|
|
104929
107382
|
let channel = await TLObject.read(_data);
|
|
104930
107383
|
let enabled = await Primitive.Bool.read(_data);
|
|
104931
|
-
|
|
107384
|
+
let guardBot = flags & (1 << 0) ? await TLObject.read(_data) : undefined;
|
|
107385
|
+
return new Raw.channels.ToggleJoinRequest({
|
|
107386
|
+
applyToInvites: applyToInvites,
|
|
107387
|
+
channel: channel,
|
|
107388
|
+
enabled: enabled,
|
|
107389
|
+
guardBot: guardBot,
|
|
107390
|
+
});
|
|
104932
107391
|
}
|
|
104933
107392
|
/**
|
|
104934
107393
|
* Generate buffer from TLObject.
|
|
@@ -104936,13 +107395,20 @@ export var Raw;
|
|
|
104936
107395
|
write() {
|
|
104937
107396
|
const b = new BytesIO();
|
|
104938
107397
|
b.write(Primitive.Int.write(this.constructorId, false));
|
|
104939
|
-
//
|
|
107398
|
+
// @ts-ignore
|
|
107399
|
+
let flags = 0;
|
|
107400
|
+
flags |= this.applyToInvites ? 1 << 1 : 0;
|
|
107401
|
+
flags |= this.guardBot !== undefined ? 1 << 0 : 0;
|
|
107402
|
+
b.write(Primitive.Int.write(flags));
|
|
104940
107403
|
if (this.channel !== undefined) {
|
|
104941
107404
|
b.write(this.channel.write());
|
|
104942
107405
|
}
|
|
104943
107406
|
if (this.enabled !== undefined) {
|
|
104944
107407
|
b.write(Primitive.Bool.write(this.enabled));
|
|
104945
107408
|
}
|
|
107409
|
+
if (this.guardBot !== undefined) {
|
|
107410
|
+
b.write(this.guardBot.write());
|
|
107411
|
+
}
|
|
104946
107412
|
return Buffer.from(b.buffer);
|
|
104947
107413
|
}
|
|
104948
107414
|
}
|
|
@@ -118332,6 +120798,47 @@ export var Raw;
|
|
|
118332
120798
|
}
|
|
118333
120799
|
}
|
|
118334
120800
|
bots.EditAccessSettings = EditAccessSettings;
|
|
120801
|
+
class SetJoinChatResults extends TLObject {
|
|
120802
|
+
__response__;
|
|
120803
|
+
queryId;
|
|
120804
|
+
result;
|
|
120805
|
+
constructor(params) {
|
|
120806
|
+
super();
|
|
120807
|
+
this.classType = 'functions';
|
|
120808
|
+
this.className = 'bots.SetJoinChatResults';
|
|
120809
|
+
this.constructorId = 0xe71a4810;
|
|
120810
|
+
this.subclassOfId = 0xf5b399ac;
|
|
120811
|
+
this._slots = ['queryId', 'result'];
|
|
120812
|
+
this.queryId = params.queryId;
|
|
120813
|
+
this.result = params.result;
|
|
120814
|
+
}
|
|
120815
|
+
/**
|
|
120816
|
+
* Generate the TLObject from buffer.
|
|
120817
|
+
* @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
|
|
120818
|
+
*/
|
|
120819
|
+
static async read(_data, ..._args) {
|
|
120820
|
+
// no flags
|
|
120821
|
+
let queryId = await Primitive.Long.read(_data);
|
|
120822
|
+
let result = await TLObject.read(_data);
|
|
120823
|
+
return new Raw.bots.SetJoinChatResults({ queryId: queryId, result: result });
|
|
120824
|
+
}
|
|
120825
|
+
/**
|
|
120826
|
+
* Generate buffer from TLObject.
|
|
120827
|
+
*/
|
|
120828
|
+
write() {
|
|
120829
|
+
const b = new BytesIO();
|
|
120830
|
+
b.write(Primitive.Int.write(this.constructorId, false));
|
|
120831
|
+
// no flags
|
|
120832
|
+
if (this.queryId !== undefined) {
|
|
120833
|
+
b.write(Primitive.Long.write(this.queryId));
|
|
120834
|
+
}
|
|
120835
|
+
if (this.result !== undefined) {
|
|
120836
|
+
b.write(this.result.write());
|
|
120837
|
+
}
|
|
120838
|
+
return Buffer.from(b.buffer);
|
|
120839
|
+
}
|
|
120840
|
+
}
|
|
120841
|
+
bots.SetJoinChatResults = SetJoinChatResults;
|
|
118335
120842
|
})(bots = Raw.bots || (Raw.bots = {}));
|
|
118336
120843
|
let stories;
|
|
118337
120844
|
(function (stories_1) {
|