@inline-chat/protocol 0.0.2 → 0.0.3
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/dist/core.d.ts +483 -1
- package/dist/core.js +918 -26
- package/package.json +1 -1
package/dist/core.js
CHANGED
|
@@ -238,6 +238,42 @@ export var NotificationSettings_Mode;
|
|
|
238
238
|
*/
|
|
239
239
|
NotificationSettings_Mode[NotificationSettings_Mode["ONLY_MENTIONS"] = 5] = "ONLY_MENTIONS";
|
|
240
240
|
})(NotificationSettings_Mode || (NotificationSettings_Mode = {}));
|
|
241
|
+
/**
|
|
242
|
+
* @generated from protobuf enum DialogNotificationSettings.Mode
|
|
243
|
+
*/
|
|
244
|
+
export var DialogNotificationSettings_Mode;
|
|
245
|
+
(function (DialogNotificationSettings_Mode) {
|
|
246
|
+
/**
|
|
247
|
+
* @generated from protobuf enum value: MODE_UNSPECIFIED = 0;
|
|
248
|
+
*/
|
|
249
|
+
DialogNotificationSettings_Mode[DialogNotificationSettings_Mode["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
250
|
+
/**
|
|
251
|
+
* @generated from protobuf enum value: MODE_ALL = 1;
|
|
252
|
+
*/
|
|
253
|
+
DialogNotificationSettings_Mode[DialogNotificationSettings_Mode["ALL"] = 1] = "ALL";
|
|
254
|
+
/**
|
|
255
|
+
* @generated from protobuf enum value: MODE_MENTIONS = 2;
|
|
256
|
+
*/
|
|
257
|
+
DialogNotificationSettings_Mode[DialogNotificationSettings_Mode["MENTIONS"] = 2] = "MENTIONS";
|
|
258
|
+
/**
|
|
259
|
+
* @generated from protobuf enum value: MODE_NONE = 3;
|
|
260
|
+
*/
|
|
261
|
+
DialogNotificationSettings_Mode[DialogNotificationSettings_Mode["NONE"] = 3] = "NONE";
|
|
262
|
+
})(DialogNotificationSettings_Mode || (DialogNotificationSettings_Mode = {}));
|
|
263
|
+
/**
|
|
264
|
+
* @generated from protobuf enum PushContentEncryptionKey.Algorithm
|
|
265
|
+
*/
|
|
266
|
+
export var PushContentEncryptionKey_Algorithm;
|
|
267
|
+
(function (PushContentEncryptionKey_Algorithm) {
|
|
268
|
+
/**
|
|
269
|
+
* @generated from protobuf enum value: ALGORITHM_UNSPECIFIED = 0;
|
|
270
|
+
*/
|
|
271
|
+
PushContentEncryptionKey_Algorithm[PushContentEncryptionKey_Algorithm["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
272
|
+
/**
|
|
273
|
+
* @generated from protobuf enum value: ALGORITHM_X25519_HKDF_SHA256_AES256_GCM = 1;
|
|
274
|
+
*/
|
|
275
|
+
PushContentEncryptionKey_Algorithm[PushContentEncryptionKey_Algorithm["X25519_HKDF_SHA256_AES256_GCM"] = 1] = "X25519_HKDF_SHA256_AES256_GCM";
|
|
276
|
+
})(PushContentEncryptionKey_Algorithm || (PushContentEncryptionKey_Algorithm = {}));
|
|
241
277
|
/**
|
|
242
278
|
* @generated from protobuf enum UpdateNewMessageNotification.Reason
|
|
243
279
|
*/
|
|
@@ -471,7 +507,41 @@ export var Method;
|
|
|
471
507
|
* @generated from protobuf enum value: UPDATE_BOT_PROFILE = 37;
|
|
472
508
|
*/
|
|
473
509
|
Method[Method["UPDATE_BOT_PROFILE"] = 37] = "UPDATE_BOT_PROFILE";
|
|
510
|
+
/**
|
|
511
|
+
* @generated from protobuf enum value: GET_MESSAGES = 38;
|
|
512
|
+
*/
|
|
513
|
+
Method[Method["GET_MESSAGES"] = 38] = "GET_MESSAGES";
|
|
514
|
+
/**
|
|
515
|
+
* @generated from protobuf enum value: UPDATE_DIALOG_NOTIFICATION_SETTINGS = 39;
|
|
516
|
+
*/
|
|
517
|
+
Method[Method["UPDATE_DIALOG_NOTIFICATION_SETTINGS"] = 39] = "UPDATE_DIALOG_NOTIFICATION_SETTINGS";
|
|
518
|
+
/**
|
|
519
|
+
* @generated from protobuf enum value: READ_MESSAGES = 40;
|
|
520
|
+
*/
|
|
521
|
+
Method[Method["READ_MESSAGES"] = 40] = "READ_MESSAGES";
|
|
522
|
+
/**
|
|
523
|
+
* @generated from protobuf enum value: UPDATE_PUSH_NOTIFICATION_DETAILS = 41;
|
|
524
|
+
*/
|
|
525
|
+
Method[Method["UPDATE_PUSH_NOTIFICATION_DETAILS"] = 41] = "UPDATE_PUSH_NOTIFICATION_DETAILS";
|
|
474
526
|
})(Method || (Method = {}));
|
|
527
|
+
/**
|
|
528
|
+
* @generated from protobuf enum PushNotificationProvider
|
|
529
|
+
*/
|
|
530
|
+
export var PushNotificationProvider;
|
|
531
|
+
(function (PushNotificationProvider) {
|
|
532
|
+
/**
|
|
533
|
+
* @generated from protobuf enum value: PUSH_NOTIFICATION_PROVIDER_UNSPECIFIED = 0;
|
|
534
|
+
*/
|
|
535
|
+
PushNotificationProvider[PushNotificationProvider["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
536
|
+
/**
|
|
537
|
+
* @generated from protobuf enum value: PUSH_NOTIFICATION_PROVIDER_APNS = 1;
|
|
538
|
+
*/
|
|
539
|
+
PushNotificationProvider[PushNotificationProvider["APNS"] = 1] = "APNS";
|
|
540
|
+
/**
|
|
541
|
+
* @generated from protobuf enum value: PUSH_NOTIFICATION_PROVIDER_EXPO_ANDROID = 2;
|
|
542
|
+
*/
|
|
543
|
+
PushNotificationProvider[PushNotificationProvider["EXPO_ANDROID"] = 2] = "EXPO_ANDROID";
|
|
544
|
+
})(PushNotificationProvider || (PushNotificationProvider = {}));
|
|
475
545
|
/**
|
|
476
546
|
* @generated from protobuf enum SearchMessagesFilter
|
|
477
547
|
*/
|
|
@@ -1617,7 +1687,8 @@ class Dialog$Type extends MessageType {
|
|
|
1617
1687
|
{ no: 5, name: "read_max_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1618
1688
|
{ no: 6, name: "unread_count", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
1619
1689
|
{ no: 7, name: "chat_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1620
|
-
{ no: 8, name: "unread_mark", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
1690
|
+
{ no: 8, name: "unread_mark", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
1691
|
+
{ no: 9, name: "notification_settings", kind: "message", T: () => DialogNotificationSettings }
|
|
1621
1692
|
]);
|
|
1622
1693
|
}
|
|
1623
1694
|
create(value) {
|
|
@@ -1655,6 +1726,9 @@ class Dialog$Type extends MessageType {
|
|
|
1655
1726
|
case /* optional bool unread_mark */ 8:
|
|
1656
1727
|
message.unreadMark = reader.bool();
|
|
1657
1728
|
break;
|
|
1729
|
+
case /* optional DialogNotificationSettings notification_settings */ 9:
|
|
1730
|
+
message.notificationSettings = DialogNotificationSettings.internalBinaryRead(reader, reader.uint32(), options, message.notificationSettings);
|
|
1731
|
+
break;
|
|
1658
1732
|
default:
|
|
1659
1733
|
let u = options.readUnknownField;
|
|
1660
1734
|
if (u === "throw")
|
|
@@ -1691,6 +1765,9 @@ class Dialog$Type extends MessageType {
|
|
|
1691
1765
|
/* optional bool unread_mark = 8; */
|
|
1692
1766
|
if (message.unreadMark !== undefined)
|
|
1693
1767
|
writer.tag(8, WireType.Varint).bool(message.unreadMark);
|
|
1768
|
+
/* optional DialogNotificationSettings notification_settings = 9; */
|
|
1769
|
+
if (message.notificationSettings)
|
|
1770
|
+
DialogNotificationSettings.internalBinaryWrite(message.notificationSettings, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
1694
1771
|
let u = options.writeUnknownFields;
|
|
1695
1772
|
if (u !== false)
|
|
1696
1773
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3854,7 +3931,11 @@ class RpcCall$Type extends MessageType {
|
|
|
3854
3931
|
{ no: 35, name: "revealBotToken", kind: "message", oneof: "input", T: () => RevealBotTokenInput },
|
|
3855
3932
|
{ no: 36, name: "moveThread", kind: "message", oneof: "input", T: () => MoveThreadInput },
|
|
3856
3933
|
{ no: 37, name: "rotateBotToken", kind: "message", oneof: "input", T: () => RotateBotTokenInput },
|
|
3857
|
-
{ no: 38, name: "updateBotProfile", kind: "message", oneof: "input", T: () => UpdateBotProfileInput }
|
|
3934
|
+
{ no: 38, name: "updateBotProfile", kind: "message", oneof: "input", T: () => UpdateBotProfileInput },
|
|
3935
|
+
{ no: 39, name: "getMessages", kind: "message", oneof: "input", T: () => GetMessagesInput },
|
|
3936
|
+
{ no: 40, name: "updateDialogNotificationSettings", kind: "message", oneof: "input", T: () => UpdateDialogNotificationSettingsInput },
|
|
3937
|
+
{ no: 41, name: "readMessages", kind: "message", oneof: "input", T: () => ReadMessagesInput },
|
|
3938
|
+
{ no: 42, name: "updatePushNotificationDetails", kind: "message", oneof: "input", T: () => UpdatePushNotificationDetailsInput }
|
|
3858
3939
|
]);
|
|
3859
3940
|
}
|
|
3860
3941
|
create(value) {
|
|
@@ -4095,6 +4176,30 @@ class RpcCall$Type extends MessageType {
|
|
|
4095
4176
|
updateBotProfile: UpdateBotProfileInput.internalBinaryRead(reader, reader.uint32(), options, message.input.updateBotProfile)
|
|
4096
4177
|
};
|
|
4097
4178
|
break;
|
|
4179
|
+
case /* GetMessagesInput getMessages */ 39:
|
|
4180
|
+
message.input = {
|
|
4181
|
+
oneofKind: "getMessages",
|
|
4182
|
+
getMessages: GetMessagesInput.internalBinaryRead(reader, reader.uint32(), options, message.input.getMessages)
|
|
4183
|
+
};
|
|
4184
|
+
break;
|
|
4185
|
+
case /* UpdateDialogNotificationSettingsInput updateDialogNotificationSettings */ 40:
|
|
4186
|
+
message.input = {
|
|
4187
|
+
oneofKind: "updateDialogNotificationSettings",
|
|
4188
|
+
updateDialogNotificationSettings: UpdateDialogNotificationSettingsInput.internalBinaryRead(reader, reader.uint32(), options, message.input.updateDialogNotificationSettings)
|
|
4189
|
+
};
|
|
4190
|
+
break;
|
|
4191
|
+
case /* ReadMessagesInput readMessages */ 41:
|
|
4192
|
+
message.input = {
|
|
4193
|
+
oneofKind: "readMessages",
|
|
4194
|
+
readMessages: ReadMessagesInput.internalBinaryRead(reader, reader.uint32(), options, message.input.readMessages)
|
|
4195
|
+
};
|
|
4196
|
+
break;
|
|
4197
|
+
case /* UpdatePushNotificationDetailsInput updatePushNotificationDetails */ 42:
|
|
4198
|
+
message.input = {
|
|
4199
|
+
oneofKind: "updatePushNotificationDetails",
|
|
4200
|
+
updatePushNotificationDetails: UpdatePushNotificationDetailsInput.internalBinaryRead(reader, reader.uint32(), options, message.input.updatePushNotificationDetails)
|
|
4201
|
+
};
|
|
4202
|
+
break;
|
|
4098
4203
|
default:
|
|
4099
4204
|
let u = options.readUnknownField;
|
|
4100
4205
|
if (u === "throw")
|
|
@@ -4221,6 +4326,18 @@ class RpcCall$Type extends MessageType {
|
|
|
4221
4326
|
/* UpdateBotProfileInput updateBotProfile = 38; */
|
|
4222
4327
|
if (message.input.oneofKind === "updateBotProfile")
|
|
4223
4328
|
UpdateBotProfileInput.internalBinaryWrite(message.input.updateBotProfile, writer.tag(38, WireType.LengthDelimited).fork(), options).join();
|
|
4329
|
+
/* GetMessagesInput getMessages = 39; */
|
|
4330
|
+
if (message.input.oneofKind === "getMessages")
|
|
4331
|
+
GetMessagesInput.internalBinaryWrite(message.input.getMessages, writer.tag(39, WireType.LengthDelimited).fork(), options).join();
|
|
4332
|
+
/* UpdateDialogNotificationSettingsInput updateDialogNotificationSettings = 40; */
|
|
4333
|
+
if (message.input.oneofKind === "updateDialogNotificationSettings")
|
|
4334
|
+
UpdateDialogNotificationSettingsInput.internalBinaryWrite(message.input.updateDialogNotificationSettings, writer.tag(40, WireType.LengthDelimited).fork(), options).join();
|
|
4335
|
+
/* ReadMessagesInput readMessages = 41; */
|
|
4336
|
+
if (message.input.oneofKind === "readMessages")
|
|
4337
|
+
ReadMessagesInput.internalBinaryWrite(message.input.readMessages, writer.tag(41, WireType.LengthDelimited).fork(), options).join();
|
|
4338
|
+
/* UpdatePushNotificationDetailsInput updatePushNotificationDetails = 42; */
|
|
4339
|
+
if (message.input.oneofKind === "updatePushNotificationDetails")
|
|
4340
|
+
UpdatePushNotificationDetailsInput.internalBinaryWrite(message.input.updatePushNotificationDetails, writer.tag(42, WireType.LengthDelimited).fork(), options).join();
|
|
4224
4341
|
let u = options.writeUnknownFields;
|
|
4225
4342
|
if (u !== false)
|
|
4226
4343
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4272,7 +4389,11 @@ class RpcResult$Type extends MessageType {
|
|
|
4272
4389
|
{ no: 35, name: "revealBotToken", kind: "message", oneof: "result", T: () => RevealBotTokenResult },
|
|
4273
4390
|
{ no: 36, name: "moveThread", kind: "message", oneof: "result", T: () => MoveThreadResult },
|
|
4274
4391
|
{ no: 37, name: "rotateBotToken", kind: "message", oneof: "result", T: () => RotateBotTokenResult },
|
|
4275
|
-
{ no: 38, name: "updateBotProfile", kind: "message", oneof: "result", T: () => UpdateBotProfileResult }
|
|
4392
|
+
{ no: 38, name: "updateBotProfile", kind: "message", oneof: "result", T: () => UpdateBotProfileResult },
|
|
4393
|
+
{ no: 39, name: "getMessages", kind: "message", oneof: "result", T: () => GetMessagesResult },
|
|
4394
|
+
{ no: 40, name: "updateDialogNotificationSettings", kind: "message", oneof: "result", T: () => UpdateDialogNotificationSettingsResult },
|
|
4395
|
+
{ no: 41, name: "readMessages", kind: "message", oneof: "result", T: () => ReadMessagesResult },
|
|
4396
|
+
{ no: 42, name: "updatePushNotificationDetails", kind: "message", oneof: "result", T: () => UpdatePushNotificationDetailsResult }
|
|
4276
4397
|
]);
|
|
4277
4398
|
}
|
|
4278
4399
|
create(value) {
|
|
@@ -4513,6 +4634,30 @@ class RpcResult$Type extends MessageType {
|
|
|
4513
4634
|
updateBotProfile: UpdateBotProfileResult.internalBinaryRead(reader, reader.uint32(), options, message.result.updateBotProfile)
|
|
4514
4635
|
};
|
|
4515
4636
|
break;
|
|
4637
|
+
case /* GetMessagesResult getMessages */ 39:
|
|
4638
|
+
message.result = {
|
|
4639
|
+
oneofKind: "getMessages",
|
|
4640
|
+
getMessages: GetMessagesResult.internalBinaryRead(reader, reader.uint32(), options, message.result.getMessages)
|
|
4641
|
+
};
|
|
4642
|
+
break;
|
|
4643
|
+
case /* UpdateDialogNotificationSettingsResult updateDialogNotificationSettings */ 40:
|
|
4644
|
+
message.result = {
|
|
4645
|
+
oneofKind: "updateDialogNotificationSettings",
|
|
4646
|
+
updateDialogNotificationSettings: UpdateDialogNotificationSettingsResult.internalBinaryRead(reader, reader.uint32(), options, message.result.updateDialogNotificationSettings)
|
|
4647
|
+
};
|
|
4648
|
+
break;
|
|
4649
|
+
case /* ReadMessagesResult readMessages */ 41:
|
|
4650
|
+
message.result = {
|
|
4651
|
+
oneofKind: "readMessages",
|
|
4652
|
+
readMessages: ReadMessagesResult.internalBinaryRead(reader, reader.uint32(), options, message.result.readMessages)
|
|
4653
|
+
};
|
|
4654
|
+
break;
|
|
4655
|
+
case /* UpdatePushNotificationDetailsResult updatePushNotificationDetails */ 42:
|
|
4656
|
+
message.result = {
|
|
4657
|
+
oneofKind: "updatePushNotificationDetails",
|
|
4658
|
+
updatePushNotificationDetails: UpdatePushNotificationDetailsResult.internalBinaryRead(reader, reader.uint32(), options, message.result.updatePushNotificationDetails)
|
|
4659
|
+
};
|
|
4660
|
+
break;
|
|
4516
4661
|
default:
|
|
4517
4662
|
let u = options.readUnknownField;
|
|
4518
4663
|
if (u === "throw")
|
|
@@ -4639,6 +4784,18 @@ class RpcResult$Type extends MessageType {
|
|
|
4639
4784
|
/* UpdateBotProfileResult updateBotProfile = 38; */
|
|
4640
4785
|
if (message.result.oneofKind === "updateBotProfile")
|
|
4641
4786
|
UpdateBotProfileResult.internalBinaryWrite(message.result.updateBotProfile, writer.tag(38, WireType.LengthDelimited).fork(), options).join();
|
|
4787
|
+
/* GetMessagesResult getMessages = 39; */
|
|
4788
|
+
if (message.result.oneofKind === "getMessages")
|
|
4789
|
+
GetMessagesResult.internalBinaryWrite(message.result.getMessages, writer.tag(39, WireType.LengthDelimited).fork(), options).join();
|
|
4790
|
+
/* UpdateDialogNotificationSettingsResult updateDialogNotificationSettings = 40; */
|
|
4791
|
+
if (message.result.oneofKind === "updateDialogNotificationSettings")
|
|
4792
|
+
UpdateDialogNotificationSettingsResult.internalBinaryWrite(message.result.updateDialogNotificationSettings, writer.tag(40, WireType.LengthDelimited).fork(), options).join();
|
|
4793
|
+
/* ReadMessagesResult readMessages = 41; */
|
|
4794
|
+
if (message.result.oneofKind === "readMessages")
|
|
4795
|
+
ReadMessagesResult.internalBinaryWrite(message.result.readMessages, writer.tag(41, WireType.LengthDelimited).fork(), options).join();
|
|
4796
|
+
/* UpdatePushNotificationDetailsResult updatePushNotificationDetails = 42; */
|
|
4797
|
+
if (message.result.oneofKind === "updatePushNotificationDetails")
|
|
4798
|
+
UpdatePushNotificationDetailsResult.internalBinaryWrite(message.result.updatePushNotificationDetails, writer.tag(42, WireType.LengthDelimited).fork(), options).join();
|
|
4642
4799
|
let u = options.writeUnknownFields;
|
|
4643
4800
|
if (u !== false)
|
|
4644
4801
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -5499,6 +5656,106 @@ class MarkAsUnreadResult$Type extends MessageType {
|
|
|
5499
5656
|
*/
|
|
5500
5657
|
export const MarkAsUnreadResult = new MarkAsUnreadResult$Type();
|
|
5501
5658
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
5659
|
+
class ReadMessagesInput$Type extends MessageType {
|
|
5660
|
+
constructor() {
|
|
5661
|
+
super("ReadMessagesInput", [
|
|
5662
|
+
{ no: 1, name: "peer_id", kind: "message", T: () => InputPeer },
|
|
5663
|
+
{ no: 2, name: "max_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
5664
|
+
]);
|
|
5665
|
+
}
|
|
5666
|
+
create(value) {
|
|
5667
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
5668
|
+
if (value !== undefined)
|
|
5669
|
+
reflectionMergePartial(this, message, value);
|
|
5670
|
+
return message;
|
|
5671
|
+
}
|
|
5672
|
+
internalBinaryRead(reader, length, options, target) {
|
|
5673
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
5674
|
+
while (reader.pos < end) {
|
|
5675
|
+
let [fieldNo, wireType] = reader.tag();
|
|
5676
|
+
switch (fieldNo) {
|
|
5677
|
+
case /* InputPeer peer_id */ 1:
|
|
5678
|
+
message.peerId = InputPeer.internalBinaryRead(reader, reader.uint32(), options, message.peerId);
|
|
5679
|
+
break;
|
|
5680
|
+
case /* optional int64 max_id */ 2:
|
|
5681
|
+
message.maxId = reader.int64().toBigInt();
|
|
5682
|
+
break;
|
|
5683
|
+
default:
|
|
5684
|
+
let u = options.readUnknownField;
|
|
5685
|
+
if (u === "throw")
|
|
5686
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
5687
|
+
let d = reader.skip(wireType);
|
|
5688
|
+
if (u !== false)
|
|
5689
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
5690
|
+
}
|
|
5691
|
+
}
|
|
5692
|
+
return message;
|
|
5693
|
+
}
|
|
5694
|
+
internalBinaryWrite(message, writer, options) {
|
|
5695
|
+
/* InputPeer peer_id = 1; */
|
|
5696
|
+
if (message.peerId)
|
|
5697
|
+
InputPeer.internalBinaryWrite(message.peerId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
5698
|
+
/* optional int64 max_id = 2; */
|
|
5699
|
+
if (message.maxId !== undefined)
|
|
5700
|
+
writer.tag(2, WireType.Varint).int64(message.maxId);
|
|
5701
|
+
let u = options.writeUnknownFields;
|
|
5702
|
+
if (u !== false)
|
|
5703
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
5704
|
+
return writer;
|
|
5705
|
+
}
|
|
5706
|
+
}
|
|
5707
|
+
/**
|
|
5708
|
+
* @generated MessageType for protobuf message ReadMessagesInput
|
|
5709
|
+
*/
|
|
5710
|
+
export const ReadMessagesInput = new ReadMessagesInput$Type();
|
|
5711
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
5712
|
+
class ReadMessagesResult$Type extends MessageType {
|
|
5713
|
+
constructor() {
|
|
5714
|
+
super("ReadMessagesResult", [
|
|
5715
|
+
{ no: 1, name: "updates", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Update }
|
|
5716
|
+
]);
|
|
5717
|
+
}
|
|
5718
|
+
create(value) {
|
|
5719
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
5720
|
+
message.updates = [];
|
|
5721
|
+
if (value !== undefined)
|
|
5722
|
+
reflectionMergePartial(this, message, value);
|
|
5723
|
+
return message;
|
|
5724
|
+
}
|
|
5725
|
+
internalBinaryRead(reader, length, options, target) {
|
|
5726
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
5727
|
+
while (reader.pos < end) {
|
|
5728
|
+
let [fieldNo, wireType] = reader.tag();
|
|
5729
|
+
switch (fieldNo) {
|
|
5730
|
+
case /* repeated Update updates */ 1:
|
|
5731
|
+
message.updates.push(Update.internalBinaryRead(reader, reader.uint32(), options));
|
|
5732
|
+
break;
|
|
5733
|
+
default:
|
|
5734
|
+
let u = options.readUnknownField;
|
|
5735
|
+
if (u === "throw")
|
|
5736
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
5737
|
+
let d = reader.skip(wireType);
|
|
5738
|
+
if (u !== false)
|
|
5739
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
5740
|
+
}
|
|
5741
|
+
}
|
|
5742
|
+
return message;
|
|
5743
|
+
}
|
|
5744
|
+
internalBinaryWrite(message, writer, options) {
|
|
5745
|
+
/* repeated Update updates = 1; */
|
|
5746
|
+
for (let i = 0; i < message.updates.length; i++)
|
|
5747
|
+
Update.internalBinaryWrite(message.updates[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
5748
|
+
let u = options.writeUnknownFields;
|
|
5749
|
+
if (u !== false)
|
|
5750
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
5751
|
+
return writer;
|
|
5752
|
+
}
|
|
5753
|
+
}
|
|
5754
|
+
/**
|
|
5755
|
+
* @generated MessageType for protobuf message ReadMessagesResult
|
|
5756
|
+
*/
|
|
5757
|
+
export const ReadMessagesResult = new ReadMessagesResult$Type();
|
|
5758
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
5502
5759
|
class CreateBotInput$Type extends MessageType {
|
|
5503
5760
|
constructor() {
|
|
5504
5761
|
super("CreateBotInput", [
|
|
@@ -6180,6 +6437,52 @@ class NotificationSettings$Type extends MessageType {
|
|
|
6180
6437
|
*/
|
|
6181
6438
|
export const NotificationSettings = new NotificationSettings$Type();
|
|
6182
6439
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
6440
|
+
class DialogNotificationSettings$Type extends MessageType {
|
|
6441
|
+
constructor() {
|
|
6442
|
+
super("DialogNotificationSettings", [
|
|
6443
|
+
{ no: 1, name: "mode", kind: "enum", opt: true, T: () => ["DialogNotificationSettings.Mode", DialogNotificationSettings_Mode, "MODE_"] }
|
|
6444
|
+
]);
|
|
6445
|
+
}
|
|
6446
|
+
create(value) {
|
|
6447
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
6448
|
+
if (value !== undefined)
|
|
6449
|
+
reflectionMergePartial(this, message, value);
|
|
6450
|
+
return message;
|
|
6451
|
+
}
|
|
6452
|
+
internalBinaryRead(reader, length, options, target) {
|
|
6453
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
6454
|
+
while (reader.pos < end) {
|
|
6455
|
+
let [fieldNo, wireType] = reader.tag();
|
|
6456
|
+
switch (fieldNo) {
|
|
6457
|
+
case /* optional DialogNotificationSettings.Mode mode */ 1:
|
|
6458
|
+
message.mode = reader.int32();
|
|
6459
|
+
break;
|
|
6460
|
+
default:
|
|
6461
|
+
let u = options.readUnknownField;
|
|
6462
|
+
if (u === "throw")
|
|
6463
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
6464
|
+
let d = reader.skip(wireType);
|
|
6465
|
+
if (u !== false)
|
|
6466
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
6467
|
+
}
|
|
6468
|
+
}
|
|
6469
|
+
return message;
|
|
6470
|
+
}
|
|
6471
|
+
internalBinaryWrite(message, writer, options) {
|
|
6472
|
+
/* optional DialogNotificationSettings.Mode mode = 1; */
|
|
6473
|
+
if (message.mode !== undefined)
|
|
6474
|
+
writer.tag(1, WireType.Varint).int32(message.mode);
|
|
6475
|
+
let u = options.writeUnknownFields;
|
|
6476
|
+
if (u !== false)
|
|
6477
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
6478
|
+
return writer;
|
|
6479
|
+
}
|
|
6480
|
+
}
|
|
6481
|
+
/**
|
|
6482
|
+
* @generated MessageType for protobuf message DialogNotificationSettings
|
|
6483
|
+
*/
|
|
6484
|
+
export const DialogNotificationSettings = new DialogNotificationSettings$Type();
|
|
6485
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
6183
6486
|
class UpdateUserSettingsInput$Type extends MessageType {
|
|
6184
6487
|
constructor() {
|
|
6185
6488
|
super("UpdateUserSettingsInput", [
|
|
@@ -6273,11 +6576,11 @@ class UpdateUserSettingsResult$Type extends MessageType {
|
|
|
6273
6576
|
*/
|
|
6274
6577
|
export const UpdateUserSettingsResult = new UpdateUserSettingsResult$Type();
|
|
6275
6578
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
6276
|
-
class
|
|
6579
|
+
class UpdateDialogNotificationSettingsInput$Type extends MessageType {
|
|
6277
6580
|
constructor() {
|
|
6278
|
-
super("
|
|
6581
|
+
super("UpdateDialogNotificationSettingsInput", [
|
|
6279
6582
|
{ no: 1, name: "peer_id", kind: "message", T: () => InputPeer },
|
|
6280
|
-
{ no: 2, name: "
|
|
6583
|
+
{ no: 2, name: "notification_settings", kind: "message", T: () => DialogNotificationSettings }
|
|
6281
6584
|
]);
|
|
6282
6585
|
}
|
|
6283
6586
|
create(value) {
|
|
@@ -6294,8 +6597,8 @@ class SendComposeActionInput$Type extends MessageType {
|
|
|
6294
6597
|
case /* InputPeer peer_id */ 1:
|
|
6295
6598
|
message.peerId = InputPeer.internalBinaryRead(reader, reader.uint32(), options, message.peerId);
|
|
6296
6599
|
break;
|
|
6297
|
-
case /* optional
|
|
6298
|
-
message.
|
|
6600
|
+
case /* optional DialogNotificationSettings notification_settings */ 2:
|
|
6601
|
+
message.notificationSettings = DialogNotificationSettings.internalBinaryRead(reader, reader.uint32(), options, message.notificationSettings);
|
|
6299
6602
|
break;
|
|
6300
6603
|
default:
|
|
6301
6604
|
let u = options.readUnknownField;
|
|
@@ -6312,9 +6615,9 @@ class SendComposeActionInput$Type extends MessageType {
|
|
|
6312
6615
|
/* InputPeer peer_id = 1; */
|
|
6313
6616
|
if (message.peerId)
|
|
6314
6617
|
InputPeer.internalBinaryWrite(message.peerId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
6315
|
-
/* optional
|
|
6316
|
-
if (message.
|
|
6317
|
-
writer.tag(2, WireType.
|
|
6618
|
+
/* optional DialogNotificationSettings notification_settings = 2; */
|
|
6619
|
+
if (message.notificationSettings)
|
|
6620
|
+
DialogNotificationSettings.internalBinaryWrite(message.notificationSettings, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
6318
6621
|
let u = options.writeUnknownFields;
|
|
6319
6622
|
if (u !== false)
|
|
6320
6623
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -6322,24 +6625,46 @@ class SendComposeActionInput$Type extends MessageType {
|
|
|
6322
6625
|
}
|
|
6323
6626
|
}
|
|
6324
6627
|
/**
|
|
6325
|
-
* @generated MessageType for protobuf message
|
|
6628
|
+
* @generated MessageType for protobuf message UpdateDialogNotificationSettingsInput
|
|
6326
6629
|
*/
|
|
6327
|
-
export const
|
|
6630
|
+
export const UpdateDialogNotificationSettingsInput = new UpdateDialogNotificationSettingsInput$Type();
|
|
6328
6631
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
6329
|
-
class
|
|
6632
|
+
class UpdateDialogNotificationSettingsResult$Type extends MessageType {
|
|
6330
6633
|
constructor() {
|
|
6331
|
-
super("
|
|
6634
|
+
super("UpdateDialogNotificationSettingsResult", [
|
|
6635
|
+
{ no: 1, name: "updates", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Update }
|
|
6636
|
+
]);
|
|
6332
6637
|
}
|
|
6333
6638
|
create(value) {
|
|
6334
6639
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
6640
|
+
message.updates = [];
|
|
6335
6641
|
if (value !== undefined)
|
|
6336
6642
|
reflectionMergePartial(this, message, value);
|
|
6337
6643
|
return message;
|
|
6338
6644
|
}
|
|
6339
6645
|
internalBinaryRead(reader, length, options, target) {
|
|
6340
|
-
|
|
6646
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
6647
|
+
while (reader.pos < end) {
|
|
6648
|
+
let [fieldNo, wireType] = reader.tag();
|
|
6649
|
+
switch (fieldNo) {
|
|
6650
|
+
case /* repeated Update updates */ 1:
|
|
6651
|
+
message.updates.push(Update.internalBinaryRead(reader, reader.uint32(), options));
|
|
6652
|
+
break;
|
|
6653
|
+
default:
|
|
6654
|
+
let u = options.readUnknownField;
|
|
6655
|
+
if (u === "throw")
|
|
6656
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
6657
|
+
let d = reader.skip(wireType);
|
|
6658
|
+
if (u !== false)
|
|
6659
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
6660
|
+
}
|
|
6661
|
+
}
|
|
6662
|
+
return message;
|
|
6341
6663
|
}
|
|
6342
6664
|
internalBinaryWrite(message, writer, options) {
|
|
6665
|
+
/* repeated Update updates = 1; */
|
|
6666
|
+
for (let i = 0; i < message.updates.length; i++)
|
|
6667
|
+
Update.internalBinaryWrite(message.updates[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
6343
6668
|
let u = options.writeUnknownFields;
|
|
6344
6669
|
if (u !== false)
|
|
6345
6670
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -6347,13 +6672,16 @@ class SendComposeActionResult$Type extends MessageType {
|
|
|
6347
6672
|
}
|
|
6348
6673
|
}
|
|
6349
6674
|
/**
|
|
6350
|
-
* @generated MessageType for protobuf message
|
|
6675
|
+
* @generated MessageType for protobuf message UpdateDialogNotificationSettingsResult
|
|
6351
6676
|
*/
|
|
6352
|
-
export const
|
|
6677
|
+
export const UpdateDialogNotificationSettingsResult = new UpdateDialogNotificationSettingsResult$Type();
|
|
6353
6678
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
6354
|
-
class
|
|
6679
|
+
class SendComposeActionInput$Type extends MessageType {
|
|
6355
6680
|
constructor() {
|
|
6356
|
-
super("
|
|
6681
|
+
super("SendComposeActionInput", [
|
|
6682
|
+
{ no: 1, name: "peer_id", kind: "message", T: () => InputPeer },
|
|
6683
|
+
{ no: 2, name: "action", kind: "enum", opt: true, T: () => ["UpdateComposeAction.ComposeAction", UpdateComposeAction_ComposeAction] }
|
|
6684
|
+
]);
|
|
6357
6685
|
}
|
|
6358
6686
|
create(value) {
|
|
6359
6687
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
@@ -6362,13 +6690,405 @@ class GetChatsInput$Type extends MessageType {
|
|
|
6362
6690
|
return message;
|
|
6363
6691
|
}
|
|
6364
6692
|
internalBinaryRead(reader, length, options, target) {
|
|
6365
|
-
|
|
6693
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
6694
|
+
while (reader.pos < end) {
|
|
6695
|
+
let [fieldNo, wireType] = reader.tag();
|
|
6696
|
+
switch (fieldNo) {
|
|
6697
|
+
case /* InputPeer peer_id */ 1:
|
|
6698
|
+
message.peerId = InputPeer.internalBinaryRead(reader, reader.uint32(), options, message.peerId);
|
|
6699
|
+
break;
|
|
6700
|
+
case /* optional UpdateComposeAction.ComposeAction action */ 2:
|
|
6701
|
+
message.action = reader.int32();
|
|
6702
|
+
break;
|
|
6703
|
+
default:
|
|
6704
|
+
let u = options.readUnknownField;
|
|
6705
|
+
if (u === "throw")
|
|
6706
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
6707
|
+
let d = reader.skip(wireType);
|
|
6708
|
+
if (u !== false)
|
|
6709
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
6710
|
+
}
|
|
6711
|
+
}
|
|
6712
|
+
return message;
|
|
6366
6713
|
}
|
|
6367
6714
|
internalBinaryWrite(message, writer, options) {
|
|
6368
|
-
|
|
6369
|
-
if (
|
|
6370
|
-
(
|
|
6371
|
-
|
|
6715
|
+
/* InputPeer peer_id = 1; */
|
|
6716
|
+
if (message.peerId)
|
|
6717
|
+
InputPeer.internalBinaryWrite(message.peerId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
6718
|
+
/* optional UpdateComposeAction.ComposeAction action = 2; */
|
|
6719
|
+
if (message.action !== undefined)
|
|
6720
|
+
writer.tag(2, WireType.Varint).int32(message.action);
|
|
6721
|
+
let u = options.writeUnknownFields;
|
|
6722
|
+
if (u !== false)
|
|
6723
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
6724
|
+
return writer;
|
|
6725
|
+
}
|
|
6726
|
+
}
|
|
6727
|
+
/**
|
|
6728
|
+
* @generated MessageType for protobuf message SendComposeActionInput
|
|
6729
|
+
*/
|
|
6730
|
+
export const SendComposeActionInput = new SendComposeActionInput$Type();
|
|
6731
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
6732
|
+
class SendComposeActionResult$Type extends MessageType {
|
|
6733
|
+
constructor() {
|
|
6734
|
+
super("SendComposeActionResult", []);
|
|
6735
|
+
}
|
|
6736
|
+
create(value) {
|
|
6737
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
6738
|
+
if (value !== undefined)
|
|
6739
|
+
reflectionMergePartial(this, message, value);
|
|
6740
|
+
return message;
|
|
6741
|
+
}
|
|
6742
|
+
internalBinaryRead(reader, length, options, target) {
|
|
6743
|
+
return target ?? this.create();
|
|
6744
|
+
}
|
|
6745
|
+
internalBinaryWrite(message, writer, options) {
|
|
6746
|
+
let u = options.writeUnknownFields;
|
|
6747
|
+
if (u !== false)
|
|
6748
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
6749
|
+
return writer;
|
|
6750
|
+
}
|
|
6751
|
+
}
|
|
6752
|
+
/**
|
|
6753
|
+
* @generated MessageType for protobuf message SendComposeActionResult
|
|
6754
|
+
*/
|
|
6755
|
+
export const SendComposeActionResult = new SendComposeActionResult$Type();
|
|
6756
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
6757
|
+
class PushContentEncryptionKey$Type extends MessageType {
|
|
6758
|
+
constructor() {
|
|
6759
|
+
super("PushContentEncryptionKey", [
|
|
6760
|
+
{ no: 1, name: "public_key", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
6761
|
+
{ no: 2, name: "key_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
6762
|
+
{ no: 3, name: "algorithm", kind: "enum", T: () => ["PushContentEncryptionKey.Algorithm", PushContentEncryptionKey_Algorithm, "ALGORITHM_"] }
|
|
6763
|
+
]);
|
|
6764
|
+
}
|
|
6765
|
+
create(value) {
|
|
6766
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
6767
|
+
message.publicKey = new Uint8Array(0);
|
|
6768
|
+
message.algorithm = 0;
|
|
6769
|
+
if (value !== undefined)
|
|
6770
|
+
reflectionMergePartial(this, message, value);
|
|
6771
|
+
return message;
|
|
6772
|
+
}
|
|
6773
|
+
internalBinaryRead(reader, length, options, target) {
|
|
6774
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
6775
|
+
while (reader.pos < end) {
|
|
6776
|
+
let [fieldNo, wireType] = reader.tag();
|
|
6777
|
+
switch (fieldNo) {
|
|
6778
|
+
case /* bytes public_key */ 1:
|
|
6779
|
+
message.publicKey = reader.bytes();
|
|
6780
|
+
break;
|
|
6781
|
+
case /* optional string key_id */ 2:
|
|
6782
|
+
message.keyId = reader.string();
|
|
6783
|
+
break;
|
|
6784
|
+
case /* PushContentEncryptionKey.Algorithm algorithm */ 3:
|
|
6785
|
+
message.algorithm = reader.int32();
|
|
6786
|
+
break;
|
|
6787
|
+
default:
|
|
6788
|
+
let u = options.readUnknownField;
|
|
6789
|
+
if (u === "throw")
|
|
6790
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
6791
|
+
let d = reader.skip(wireType);
|
|
6792
|
+
if (u !== false)
|
|
6793
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
6794
|
+
}
|
|
6795
|
+
}
|
|
6796
|
+
return message;
|
|
6797
|
+
}
|
|
6798
|
+
internalBinaryWrite(message, writer, options) {
|
|
6799
|
+
/* bytes public_key = 1; */
|
|
6800
|
+
if (message.publicKey.length)
|
|
6801
|
+
writer.tag(1, WireType.LengthDelimited).bytes(message.publicKey);
|
|
6802
|
+
/* optional string key_id = 2; */
|
|
6803
|
+
if (message.keyId !== undefined)
|
|
6804
|
+
writer.tag(2, WireType.LengthDelimited).string(message.keyId);
|
|
6805
|
+
/* PushContentEncryptionKey.Algorithm algorithm = 3; */
|
|
6806
|
+
if (message.algorithm !== 0)
|
|
6807
|
+
writer.tag(3, WireType.Varint).int32(message.algorithm);
|
|
6808
|
+
let u = options.writeUnknownFields;
|
|
6809
|
+
if (u !== false)
|
|
6810
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
6811
|
+
return writer;
|
|
6812
|
+
}
|
|
6813
|
+
}
|
|
6814
|
+
/**
|
|
6815
|
+
* @generated MessageType for protobuf message PushContentEncryptionKey
|
|
6816
|
+
*/
|
|
6817
|
+
export const PushContentEncryptionKey = new PushContentEncryptionKey$Type();
|
|
6818
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
6819
|
+
class ApnsNotificationMethod$Type extends MessageType {
|
|
6820
|
+
constructor() {
|
|
6821
|
+
super("ApnsNotificationMethod", [
|
|
6822
|
+
{ no: 1, name: "device_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
6823
|
+
]);
|
|
6824
|
+
}
|
|
6825
|
+
create(value) {
|
|
6826
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
6827
|
+
message.deviceToken = "";
|
|
6828
|
+
if (value !== undefined)
|
|
6829
|
+
reflectionMergePartial(this, message, value);
|
|
6830
|
+
return message;
|
|
6831
|
+
}
|
|
6832
|
+
internalBinaryRead(reader, length, options, target) {
|
|
6833
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
6834
|
+
while (reader.pos < end) {
|
|
6835
|
+
let [fieldNo, wireType] = reader.tag();
|
|
6836
|
+
switch (fieldNo) {
|
|
6837
|
+
case /* string device_token */ 1:
|
|
6838
|
+
message.deviceToken = reader.string();
|
|
6839
|
+
break;
|
|
6840
|
+
default:
|
|
6841
|
+
let u = options.readUnknownField;
|
|
6842
|
+
if (u === "throw")
|
|
6843
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
6844
|
+
let d = reader.skip(wireType);
|
|
6845
|
+
if (u !== false)
|
|
6846
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
6847
|
+
}
|
|
6848
|
+
}
|
|
6849
|
+
return message;
|
|
6850
|
+
}
|
|
6851
|
+
internalBinaryWrite(message, writer, options) {
|
|
6852
|
+
/* string device_token = 1; */
|
|
6853
|
+
if (message.deviceToken !== "")
|
|
6854
|
+
writer.tag(1, WireType.LengthDelimited).string(message.deviceToken);
|
|
6855
|
+
let u = options.writeUnknownFields;
|
|
6856
|
+
if (u !== false)
|
|
6857
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
6858
|
+
return writer;
|
|
6859
|
+
}
|
|
6860
|
+
}
|
|
6861
|
+
/**
|
|
6862
|
+
* @generated MessageType for protobuf message ApnsNotificationMethod
|
|
6863
|
+
*/
|
|
6864
|
+
export const ApnsNotificationMethod = new ApnsNotificationMethod$Type();
|
|
6865
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
6866
|
+
class ExpoAndroidNotificationMethod$Type extends MessageType {
|
|
6867
|
+
constructor() {
|
|
6868
|
+
super("ExpoAndroidNotificationMethod", [
|
|
6869
|
+
{ no: 1, name: "expo_push_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
6870
|
+
]);
|
|
6871
|
+
}
|
|
6872
|
+
create(value) {
|
|
6873
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
6874
|
+
message.expoPushToken = "";
|
|
6875
|
+
if (value !== undefined)
|
|
6876
|
+
reflectionMergePartial(this, message, value);
|
|
6877
|
+
return message;
|
|
6878
|
+
}
|
|
6879
|
+
internalBinaryRead(reader, length, options, target) {
|
|
6880
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
6881
|
+
while (reader.pos < end) {
|
|
6882
|
+
let [fieldNo, wireType] = reader.tag();
|
|
6883
|
+
switch (fieldNo) {
|
|
6884
|
+
case /* string expo_push_token */ 1:
|
|
6885
|
+
message.expoPushToken = reader.string();
|
|
6886
|
+
break;
|
|
6887
|
+
default:
|
|
6888
|
+
let u = options.readUnknownField;
|
|
6889
|
+
if (u === "throw")
|
|
6890
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
6891
|
+
let d = reader.skip(wireType);
|
|
6892
|
+
if (u !== false)
|
|
6893
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
6894
|
+
}
|
|
6895
|
+
}
|
|
6896
|
+
return message;
|
|
6897
|
+
}
|
|
6898
|
+
internalBinaryWrite(message, writer, options) {
|
|
6899
|
+
/* string expo_push_token = 1; */
|
|
6900
|
+
if (message.expoPushToken !== "")
|
|
6901
|
+
writer.tag(1, WireType.LengthDelimited).string(message.expoPushToken);
|
|
6902
|
+
let u = options.writeUnknownFields;
|
|
6903
|
+
if (u !== false)
|
|
6904
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
6905
|
+
return writer;
|
|
6906
|
+
}
|
|
6907
|
+
}
|
|
6908
|
+
/**
|
|
6909
|
+
* @generated MessageType for protobuf message ExpoAndroidNotificationMethod
|
|
6910
|
+
*/
|
|
6911
|
+
export const ExpoAndroidNotificationMethod = new ExpoAndroidNotificationMethod$Type();
|
|
6912
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
6913
|
+
class PushNotificationMethod$Type extends MessageType {
|
|
6914
|
+
constructor() {
|
|
6915
|
+
super("PushNotificationMethod", [
|
|
6916
|
+
{ no: 1, name: "provider", kind: "enum", T: () => ["PushNotificationProvider", PushNotificationProvider, "PUSH_NOTIFICATION_PROVIDER_"] },
|
|
6917
|
+
{ no: 2, name: "apns", kind: "message", oneof: "method", T: () => ApnsNotificationMethod },
|
|
6918
|
+
{ no: 3, name: "expo_android", kind: "message", oneof: "method", T: () => ExpoAndroidNotificationMethod }
|
|
6919
|
+
]);
|
|
6920
|
+
}
|
|
6921
|
+
create(value) {
|
|
6922
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
6923
|
+
message.provider = 0;
|
|
6924
|
+
message.method = { oneofKind: undefined };
|
|
6925
|
+
if (value !== undefined)
|
|
6926
|
+
reflectionMergePartial(this, message, value);
|
|
6927
|
+
return message;
|
|
6928
|
+
}
|
|
6929
|
+
internalBinaryRead(reader, length, options, target) {
|
|
6930
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
6931
|
+
while (reader.pos < end) {
|
|
6932
|
+
let [fieldNo, wireType] = reader.tag();
|
|
6933
|
+
switch (fieldNo) {
|
|
6934
|
+
case /* PushNotificationProvider provider */ 1:
|
|
6935
|
+
message.provider = reader.int32();
|
|
6936
|
+
break;
|
|
6937
|
+
case /* ApnsNotificationMethod apns */ 2:
|
|
6938
|
+
message.method = {
|
|
6939
|
+
oneofKind: "apns",
|
|
6940
|
+
apns: ApnsNotificationMethod.internalBinaryRead(reader, reader.uint32(), options, message.method.apns)
|
|
6941
|
+
};
|
|
6942
|
+
break;
|
|
6943
|
+
case /* ExpoAndroidNotificationMethod expo_android */ 3:
|
|
6944
|
+
message.method = {
|
|
6945
|
+
oneofKind: "expoAndroid",
|
|
6946
|
+
expoAndroid: ExpoAndroidNotificationMethod.internalBinaryRead(reader, reader.uint32(), options, message.method.expoAndroid)
|
|
6947
|
+
};
|
|
6948
|
+
break;
|
|
6949
|
+
default:
|
|
6950
|
+
let u = options.readUnknownField;
|
|
6951
|
+
if (u === "throw")
|
|
6952
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
6953
|
+
let d = reader.skip(wireType);
|
|
6954
|
+
if (u !== false)
|
|
6955
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
6956
|
+
}
|
|
6957
|
+
}
|
|
6958
|
+
return message;
|
|
6959
|
+
}
|
|
6960
|
+
internalBinaryWrite(message, writer, options) {
|
|
6961
|
+
/* PushNotificationProvider provider = 1; */
|
|
6962
|
+
if (message.provider !== 0)
|
|
6963
|
+
writer.tag(1, WireType.Varint).int32(message.provider);
|
|
6964
|
+
/* ApnsNotificationMethod apns = 2; */
|
|
6965
|
+
if (message.method.oneofKind === "apns")
|
|
6966
|
+
ApnsNotificationMethod.internalBinaryWrite(message.method.apns, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
6967
|
+
/* ExpoAndroidNotificationMethod expo_android = 3; */
|
|
6968
|
+
if (message.method.oneofKind === "expoAndroid")
|
|
6969
|
+
ExpoAndroidNotificationMethod.internalBinaryWrite(message.method.expoAndroid, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
6970
|
+
let u = options.writeUnknownFields;
|
|
6971
|
+
if (u !== false)
|
|
6972
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
6973
|
+
return writer;
|
|
6974
|
+
}
|
|
6975
|
+
}
|
|
6976
|
+
/**
|
|
6977
|
+
* @generated MessageType for protobuf message PushNotificationMethod
|
|
6978
|
+
*/
|
|
6979
|
+
export const PushNotificationMethod = new PushNotificationMethod$Type();
|
|
6980
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
6981
|
+
class UpdatePushNotificationDetailsInput$Type extends MessageType {
|
|
6982
|
+
constructor() {
|
|
6983
|
+
super("UpdatePushNotificationDetailsInput", [
|
|
6984
|
+
{ no: 1, name: "apple_push_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
6985
|
+
{ no: 2, name: "push_content_encryption_key", kind: "message", T: () => PushContentEncryptionKey },
|
|
6986
|
+
{ no: 3, name: "push_content_version", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ },
|
|
6987
|
+
{ no: 4, name: "notification_method", kind: "message", T: () => PushNotificationMethod }
|
|
6988
|
+
]);
|
|
6989
|
+
}
|
|
6990
|
+
create(value) {
|
|
6991
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
6992
|
+
message.applePushToken = "";
|
|
6993
|
+
if (value !== undefined)
|
|
6994
|
+
reflectionMergePartial(this, message, value);
|
|
6995
|
+
return message;
|
|
6996
|
+
}
|
|
6997
|
+
internalBinaryRead(reader, length, options, target) {
|
|
6998
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
6999
|
+
while (reader.pos < end) {
|
|
7000
|
+
let [fieldNo, wireType] = reader.tag();
|
|
7001
|
+
switch (fieldNo) {
|
|
7002
|
+
case /* string apple_push_token = 1 [deprecated = true];*/ 1:
|
|
7003
|
+
message.applePushToken = reader.string();
|
|
7004
|
+
break;
|
|
7005
|
+
case /* optional PushContentEncryptionKey push_content_encryption_key */ 2:
|
|
7006
|
+
message.pushContentEncryptionKey = PushContentEncryptionKey.internalBinaryRead(reader, reader.uint32(), options, message.pushContentEncryptionKey);
|
|
7007
|
+
break;
|
|
7008
|
+
case /* optional uint32 push_content_version */ 3:
|
|
7009
|
+
message.pushContentVersion = reader.uint32();
|
|
7010
|
+
break;
|
|
7011
|
+
case /* optional PushNotificationMethod notification_method */ 4:
|
|
7012
|
+
message.notificationMethod = PushNotificationMethod.internalBinaryRead(reader, reader.uint32(), options, message.notificationMethod);
|
|
7013
|
+
break;
|
|
7014
|
+
default:
|
|
7015
|
+
let u = options.readUnknownField;
|
|
7016
|
+
if (u === "throw")
|
|
7017
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
7018
|
+
let d = reader.skip(wireType);
|
|
7019
|
+
if (u !== false)
|
|
7020
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
7021
|
+
}
|
|
7022
|
+
}
|
|
7023
|
+
return message;
|
|
7024
|
+
}
|
|
7025
|
+
internalBinaryWrite(message, writer, options) {
|
|
7026
|
+
/* string apple_push_token = 1 [deprecated = true]; */
|
|
7027
|
+
if (message.applePushToken !== "")
|
|
7028
|
+
writer.tag(1, WireType.LengthDelimited).string(message.applePushToken);
|
|
7029
|
+
/* optional PushContentEncryptionKey push_content_encryption_key = 2; */
|
|
7030
|
+
if (message.pushContentEncryptionKey)
|
|
7031
|
+
PushContentEncryptionKey.internalBinaryWrite(message.pushContentEncryptionKey, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
7032
|
+
/* optional uint32 push_content_version = 3; */
|
|
7033
|
+
if (message.pushContentVersion !== undefined)
|
|
7034
|
+
writer.tag(3, WireType.Varint).uint32(message.pushContentVersion);
|
|
7035
|
+
/* optional PushNotificationMethod notification_method = 4; */
|
|
7036
|
+
if (message.notificationMethod)
|
|
7037
|
+
PushNotificationMethod.internalBinaryWrite(message.notificationMethod, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
7038
|
+
let u = options.writeUnknownFields;
|
|
7039
|
+
if (u !== false)
|
|
7040
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
7041
|
+
return writer;
|
|
7042
|
+
}
|
|
7043
|
+
}
|
|
7044
|
+
/**
|
|
7045
|
+
* @generated MessageType for protobuf message UpdatePushNotificationDetailsInput
|
|
7046
|
+
*/
|
|
7047
|
+
export const UpdatePushNotificationDetailsInput = new UpdatePushNotificationDetailsInput$Type();
|
|
7048
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
7049
|
+
class UpdatePushNotificationDetailsResult$Type extends MessageType {
|
|
7050
|
+
constructor() {
|
|
7051
|
+
super("UpdatePushNotificationDetailsResult", []);
|
|
7052
|
+
}
|
|
7053
|
+
create(value) {
|
|
7054
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
7055
|
+
if (value !== undefined)
|
|
7056
|
+
reflectionMergePartial(this, message, value);
|
|
7057
|
+
return message;
|
|
7058
|
+
}
|
|
7059
|
+
internalBinaryRead(reader, length, options, target) {
|
|
7060
|
+
return target ?? this.create();
|
|
7061
|
+
}
|
|
7062
|
+
internalBinaryWrite(message, writer, options) {
|
|
7063
|
+
let u = options.writeUnknownFields;
|
|
7064
|
+
if (u !== false)
|
|
7065
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
7066
|
+
return writer;
|
|
7067
|
+
}
|
|
7068
|
+
}
|
|
7069
|
+
/**
|
|
7070
|
+
* @generated MessageType for protobuf message UpdatePushNotificationDetailsResult
|
|
7071
|
+
*/
|
|
7072
|
+
export const UpdatePushNotificationDetailsResult = new UpdatePushNotificationDetailsResult$Type();
|
|
7073
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
7074
|
+
class GetChatsInput$Type extends MessageType {
|
|
7075
|
+
constructor() {
|
|
7076
|
+
super("GetChatsInput", []);
|
|
7077
|
+
}
|
|
7078
|
+
create(value) {
|
|
7079
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
7080
|
+
if (value !== undefined)
|
|
7081
|
+
reflectionMergePartial(this, message, value);
|
|
7082
|
+
return message;
|
|
7083
|
+
}
|
|
7084
|
+
internalBinaryRead(reader, length, options, target) {
|
|
7085
|
+
return target ?? this.create();
|
|
7086
|
+
}
|
|
7087
|
+
internalBinaryWrite(message, writer, options) {
|
|
7088
|
+
let u = options.writeUnknownFields;
|
|
7089
|
+
if (u !== false)
|
|
7090
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
7091
|
+
return writer;
|
|
6372
7092
|
}
|
|
6373
7093
|
}
|
|
6374
7094
|
/**
|
|
@@ -7685,6 +8405,115 @@ class GetChatHistoryResult$Type extends MessageType {
|
|
|
7685
8405
|
*/
|
|
7686
8406
|
export const GetChatHistoryResult = new GetChatHistoryResult$Type();
|
|
7687
8407
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
8408
|
+
class GetMessagesInput$Type extends MessageType {
|
|
8409
|
+
constructor() {
|
|
8410
|
+
super("GetMessagesInput", [
|
|
8411
|
+
{ no: 1, name: "peer_id", kind: "message", T: () => InputPeer },
|
|
8412
|
+
{ no: 2, name: "message_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
8413
|
+
]);
|
|
8414
|
+
}
|
|
8415
|
+
create(value) {
|
|
8416
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
8417
|
+
message.messageIds = [];
|
|
8418
|
+
if (value !== undefined)
|
|
8419
|
+
reflectionMergePartial(this, message, value);
|
|
8420
|
+
return message;
|
|
8421
|
+
}
|
|
8422
|
+
internalBinaryRead(reader, length, options, target) {
|
|
8423
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
8424
|
+
while (reader.pos < end) {
|
|
8425
|
+
let [fieldNo, wireType] = reader.tag();
|
|
8426
|
+
switch (fieldNo) {
|
|
8427
|
+
case /* InputPeer peer_id */ 1:
|
|
8428
|
+
message.peerId = InputPeer.internalBinaryRead(reader, reader.uint32(), options, message.peerId);
|
|
8429
|
+
break;
|
|
8430
|
+
case /* repeated int64 message_ids */ 2:
|
|
8431
|
+
if (wireType === WireType.LengthDelimited)
|
|
8432
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
8433
|
+
message.messageIds.push(reader.int64().toBigInt());
|
|
8434
|
+
else
|
|
8435
|
+
message.messageIds.push(reader.int64().toBigInt());
|
|
8436
|
+
break;
|
|
8437
|
+
default:
|
|
8438
|
+
let u = options.readUnknownField;
|
|
8439
|
+
if (u === "throw")
|
|
8440
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
8441
|
+
let d = reader.skip(wireType);
|
|
8442
|
+
if (u !== false)
|
|
8443
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
8444
|
+
}
|
|
8445
|
+
}
|
|
8446
|
+
return message;
|
|
8447
|
+
}
|
|
8448
|
+
internalBinaryWrite(message, writer, options) {
|
|
8449
|
+
/* InputPeer peer_id = 1; */
|
|
8450
|
+
if (message.peerId)
|
|
8451
|
+
InputPeer.internalBinaryWrite(message.peerId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
8452
|
+
/* repeated int64 message_ids = 2; */
|
|
8453
|
+
if (message.messageIds.length) {
|
|
8454
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
|
8455
|
+
for (let i = 0; i < message.messageIds.length; i++)
|
|
8456
|
+
writer.int64(message.messageIds[i]);
|
|
8457
|
+
writer.join();
|
|
8458
|
+
}
|
|
8459
|
+
let u = options.writeUnknownFields;
|
|
8460
|
+
if (u !== false)
|
|
8461
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
8462
|
+
return writer;
|
|
8463
|
+
}
|
|
8464
|
+
}
|
|
8465
|
+
/**
|
|
8466
|
+
* @generated MessageType for protobuf message GetMessagesInput
|
|
8467
|
+
*/
|
|
8468
|
+
export const GetMessagesInput = new GetMessagesInput$Type();
|
|
8469
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
8470
|
+
class GetMessagesResult$Type extends MessageType {
|
|
8471
|
+
constructor() {
|
|
8472
|
+
super("GetMessagesResult", [
|
|
8473
|
+
{ no: 1, name: "messages", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Message }
|
|
8474
|
+
]);
|
|
8475
|
+
}
|
|
8476
|
+
create(value) {
|
|
8477
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
8478
|
+
message.messages = [];
|
|
8479
|
+
if (value !== undefined)
|
|
8480
|
+
reflectionMergePartial(this, message, value);
|
|
8481
|
+
return message;
|
|
8482
|
+
}
|
|
8483
|
+
internalBinaryRead(reader, length, options, target) {
|
|
8484
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
8485
|
+
while (reader.pos < end) {
|
|
8486
|
+
let [fieldNo, wireType] = reader.tag();
|
|
8487
|
+
switch (fieldNo) {
|
|
8488
|
+
case /* repeated Message messages */ 1:
|
|
8489
|
+
message.messages.push(Message.internalBinaryRead(reader, reader.uint32(), options));
|
|
8490
|
+
break;
|
|
8491
|
+
default:
|
|
8492
|
+
let u = options.readUnknownField;
|
|
8493
|
+
if (u === "throw")
|
|
8494
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
8495
|
+
let d = reader.skip(wireType);
|
|
8496
|
+
if (u !== false)
|
|
8497
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
8498
|
+
}
|
|
8499
|
+
}
|
|
8500
|
+
return message;
|
|
8501
|
+
}
|
|
8502
|
+
internalBinaryWrite(message, writer, options) {
|
|
8503
|
+
/* repeated Message messages = 1; */
|
|
8504
|
+
for (let i = 0; i < message.messages.length; i++)
|
|
8505
|
+
Message.internalBinaryWrite(message.messages[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
8506
|
+
let u = options.writeUnknownFields;
|
|
8507
|
+
if (u !== false)
|
|
8508
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
8509
|
+
return writer;
|
|
8510
|
+
}
|
|
8511
|
+
}
|
|
8512
|
+
/**
|
|
8513
|
+
* @generated MessageType for protobuf message GetMessagesResult
|
|
8514
|
+
*/
|
|
8515
|
+
export const GetMessagesResult = new GetMessagesResult$Type();
|
|
8516
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
7688
8517
|
class SearchMessagesInput$Type extends MessageType {
|
|
7689
8518
|
constructor() {
|
|
7690
8519
|
super("SearchMessagesInput", [
|
|
@@ -8126,7 +8955,8 @@ class Update$Type extends MessageType {
|
|
|
8126
8955
|
{ no: 29, name: "dialog_archived", kind: "message", oneof: "update", T: () => UpdateDialogArchived },
|
|
8127
8956
|
{ no: 30, name: "chat_info", kind: "message", oneof: "update", T: () => UpdateChatInfo },
|
|
8128
8957
|
{ no: 31, name: "pinned_messages", kind: "message", oneof: "update", T: () => UpdatePinnedMessages },
|
|
8129
|
-
{ no: 32, name: "chat_moved", kind: "message", oneof: "update", T: () => UpdateChatMoved }
|
|
8958
|
+
{ no: 32, name: "chat_moved", kind: "message", oneof: "update", T: () => UpdateChatMoved },
|
|
8959
|
+
{ no: 33, name: "dialog_notification_settings", kind: "message", oneof: "update", T: () => UpdateDialogNotificationSettings }
|
|
8130
8960
|
]);
|
|
8131
8961
|
}
|
|
8132
8962
|
create(value) {
|
|
@@ -8321,6 +9151,12 @@ class Update$Type extends MessageType {
|
|
|
8321
9151
|
chatMoved: UpdateChatMoved.internalBinaryRead(reader, reader.uint32(), options, message.update.chatMoved)
|
|
8322
9152
|
};
|
|
8323
9153
|
break;
|
|
9154
|
+
case /* UpdateDialogNotificationSettings dialog_notification_settings */ 33:
|
|
9155
|
+
message.update = {
|
|
9156
|
+
oneofKind: "dialogNotificationSettings",
|
|
9157
|
+
dialogNotificationSettings: UpdateDialogNotificationSettings.internalBinaryRead(reader, reader.uint32(), options, message.update.dialogNotificationSettings)
|
|
9158
|
+
};
|
|
9159
|
+
break;
|
|
8324
9160
|
default:
|
|
8325
9161
|
let u = options.readUnknownField;
|
|
8326
9162
|
if (u === "throw")
|
|
@@ -8426,6 +9262,9 @@ class Update$Type extends MessageType {
|
|
|
8426
9262
|
/* UpdateChatMoved chat_moved = 32; */
|
|
8427
9263
|
if (message.update.oneofKind === "chatMoved")
|
|
8428
9264
|
UpdateChatMoved.internalBinaryWrite(message.update.chatMoved, writer.tag(32, WireType.LengthDelimited).fork(), options).join();
|
|
9265
|
+
/* UpdateDialogNotificationSettings dialog_notification_settings = 33; */
|
|
9266
|
+
if (message.update.oneofKind === "dialogNotificationSettings")
|
|
9267
|
+
UpdateDialogNotificationSettings.internalBinaryWrite(message.update.dialogNotificationSettings, writer.tag(33, WireType.LengthDelimited).fork(), options).join();
|
|
8429
9268
|
let u = options.writeUnknownFields;
|
|
8430
9269
|
if (u !== false)
|
|
8431
9270
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -9316,6 +10155,59 @@ class UpdateDialogArchived$Type extends MessageType {
|
|
|
9316
10155
|
*/
|
|
9317
10156
|
export const UpdateDialogArchived = new UpdateDialogArchived$Type();
|
|
9318
10157
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
10158
|
+
class UpdateDialogNotificationSettings$Type extends MessageType {
|
|
10159
|
+
constructor() {
|
|
10160
|
+
super("UpdateDialogNotificationSettings", [
|
|
10161
|
+
{ no: 1, name: "peer_id", kind: "message", T: () => Peer },
|
|
10162
|
+
{ no: 2, name: "notification_settings", kind: "message", T: () => DialogNotificationSettings }
|
|
10163
|
+
]);
|
|
10164
|
+
}
|
|
10165
|
+
create(value) {
|
|
10166
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
10167
|
+
if (value !== undefined)
|
|
10168
|
+
reflectionMergePartial(this, message, value);
|
|
10169
|
+
return message;
|
|
10170
|
+
}
|
|
10171
|
+
internalBinaryRead(reader, length, options, target) {
|
|
10172
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
10173
|
+
while (reader.pos < end) {
|
|
10174
|
+
let [fieldNo, wireType] = reader.tag();
|
|
10175
|
+
switch (fieldNo) {
|
|
10176
|
+
case /* Peer peer_id */ 1:
|
|
10177
|
+
message.peerId = Peer.internalBinaryRead(reader, reader.uint32(), options, message.peerId);
|
|
10178
|
+
break;
|
|
10179
|
+
case /* optional DialogNotificationSettings notification_settings */ 2:
|
|
10180
|
+
message.notificationSettings = DialogNotificationSettings.internalBinaryRead(reader, reader.uint32(), options, message.notificationSettings);
|
|
10181
|
+
break;
|
|
10182
|
+
default:
|
|
10183
|
+
let u = options.readUnknownField;
|
|
10184
|
+
if (u === "throw")
|
|
10185
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
10186
|
+
let d = reader.skip(wireType);
|
|
10187
|
+
if (u !== false)
|
|
10188
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
10189
|
+
}
|
|
10190
|
+
}
|
|
10191
|
+
return message;
|
|
10192
|
+
}
|
|
10193
|
+
internalBinaryWrite(message, writer, options) {
|
|
10194
|
+
/* Peer peer_id = 1; */
|
|
10195
|
+
if (message.peerId)
|
|
10196
|
+
Peer.internalBinaryWrite(message.peerId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
10197
|
+
/* optional DialogNotificationSettings notification_settings = 2; */
|
|
10198
|
+
if (message.notificationSettings)
|
|
10199
|
+
DialogNotificationSettings.internalBinaryWrite(message.notificationSettings, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
10200
|
+
let u = options.writeUnknownFields;
|
|
10201
|
+
if (u !== false)
|
|
10202
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
10203
|
+
return writer;
|
|
10204
|
+
}
|
|
10205
|
+
}
|
|
10206
|
+
/**
|
|
10207
|
+
* @generated MessageType for protobuf message UpdateDialogNotificationSettings
|
|
10208
|
+
*/
|
|
10209
|
+
export const UpdateDialogNotificationSettings = new UpdateDialogNotificationSettings$Type();
|
|
10210
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
9319
10211
|
class UpdateNewChat$Type extends MessageType {
|
|
9320
10212
|
constructor() {
|
|
9321
10213
|
super("UpdateNewChat", [
|