@inline-chat/protocol 0.0.3 → 0.0.4
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 +194 -4
- package/dist/core.js +305 -5
- package/package.json +1 -1
package/dist/core.d.ts
CHANGED
|
@@ -1106,7 +1106,7 @@ export declare enum MessageAttachmentExternalTask_Status {
|
|
|
1106
1106
|
CANCELLED = 5
|
|
1107
1107
|
}
|
|
1108
1108
|
/**
|
|
1109
|
-
* WIP: add
|
|
1109
|
+
* WIP: add richer media/filtering metadata.
|
|
1110
1110
|
*
|
|
1111
1111
|
* @generated from protobuf message MessageMedia
|
|
1112
1112
|
*/
|
|
@@ -1138,6 +1138,12 @@ export interface MessageMedia {
|
|
|
1138
1138
|
* @generated from protobuf field: MessageNudge nudge = 4;
|
|
1139
1139
|
*/
|
|
1140
1140
|
nudge: MessageNudge;
|
|
1141
|
+
} | {
|
|
1142
|
+
oneofKind: "voice";
|
|
1143
|
+
/**
|
|
1144
|
+
* @generated from protobuf field: MessageVoice voice = 5;
|
|
1145
|
+
*/
|
|
1146
|
+
voice: MessageVoice;
|
|
1141
1147
|
} | {
|
|
1142
1148
|
oneofKind: undefined;
|
|
1143
1149
|
};
|
|
@@ -1169,6 +1175,15 @@ export interface MessageDocument {
|
|
|
1169
1175
|
*/
|
|
1170
1176
|
document?: Document;
|
|
1171
1177
|
}
|
|
1178
|
+
/**
|
|
1179
|
+
* @generated from protobuf message MessageVoice
|
|
1180
|
+
*/
|
|
1181
|
+
export interface MessageVoice {
|
|
1182
|
+
/**
|
|
1183
|
+
* @generated from protobuf field: Voice voice = 1;
|
|
1184
|
+
*/
|
|
1185
|
+
voice?: Voice;
|
|
1186
|
+
}
|
|
1172
1187
|
/**
|
|
1173
1188
|
* Nudge message (empty payload)
|
|
1174
1189
|
*
|
|
@@ -1265,6 +1280,57 @@ export interface Document {
|
|
|
1265
1280
|
* @generated from protobuf field: int64 date = 6;
|
|
1266
1281
|
*/
|
|
1267
1282
|
date: bigint;
|
|
1283
|
+
/**
|
|
1284
|
+
* Thumbnail of the document
|
|
1285
|
+
*
|
|
1286
|
+
* @generated from protobuf field: optional Photo photo = 7;
|
|
1287
|
+
*/
|
|
1288
|
+
photo?: Photo;
|
|
1289
|
+
}
|
|
1290
|
+
/**
|
|
1291
|
+
* @generated from protobuf message Voice
|
|
1292
|
+
*/
|
|
1293
|
+
export interface Voice {
|
|
1294
|
+
/**
|
|
1295
|
+
* @generated from protobuf field: int64 id = 1;
|
|
1296
|
+
*/
|
|
1297
|
+
id: bigint;
|
|
1298
|
+
/**
|
|
1299
|
+
* Date of upload
|
|
1300
|
+
*
|
|
1301
|
+
* @generated from protobuf field: int64 date = 2;
|
|
1302
|
+
*/
|
|
1303
|
+
date: bigint;
|
|
1304
|
+
/**
|
|
1305
|
+
* Duration of the voice message in seconds
|
|
1306
|
+
*
|
|
1307
|
+
* @generated from protobuf field: int32 duration = 3;
|
|
1308
|
+
*/
|
|
1309
|
+
duration: number;
|
|
1310
|
+
/**
|
|
1311
|
+
* File size
|
|
1312
|
+
*
|
|
1313
|
+
* @generated from protobuf field: int32 size = 4;
|
|
1314
|
+
*/
|
|
1315
|
+
size: number;
|
|
1316
|
+
/**
|
|
1317
|
+
* MIME type of the file
|
|
1318
|
+
*
|
|
1319
|
+
* @generated from protobuf field: string mime_type = 5;
|
|
1320
|
+
*/
|
|
1321
|
+
mimeType: string;
|
|
1322
|
+
/**
|
|
1323
|
+
* CDN URL
|
|
1324
|
+
*
|
|
1325
|
+
* @generated from protobuf field: optional string cdn_url = 6;
|
|
1326
|
+
*/
|
|
1327
|
+
cdnUrl?: string;
|
|
1328
|
+
/**
|
|
1329
|
+
* Waveform bytes for rendering
|
|
1330
|
+
*
|
|
1331
|
+
* @generated from protobuf field: bytes waveform = 7;
|
|
1332
|
+
*/
|
|
1333
|
+
waveform: Uint8Array;
|
|
1268
1334
|
}
|
|
1269
1335
|
/**
|
|
1270
1336
|
* Photo for message media, profile photo, space photo, or chat photo
|
|
@@ -2896,6 +2962,10 @@ export interface EditMessageInput {
|
|
|
2896
2962
|
* @generated from protobuf field: optional MessageEntities entities = 7;
|
|
2897
2963
|
*/
|
|
2898
2964
|
entities?: MessageEntities;
|
|
2965
|
+
/**
|
|
2966
|
+
* @generated from protobuf field: optional bool parse_markdown = 8;
|
|
2967
|
+
*/
|
|
2968
|
+
parseMarkdown?: boolean;
|
|
2899
2969
|
}
|
|
2900
2970
|
/**
|
|
2901
2971
|
* @generated from protobuf message EditMessageResult
|
|
@@ -2937,6 +3007,12 @@ export interface InputMedia {
|
|
|
2937
3007
|
* @generated from protobuf field: InputMediaNudge nudge = 4;
|
|
2938
3008
|
*/
|
|
2939
3009
|
nudge: InputMediaNudge;
|
|
3010
|
+
} | {
|
|
3011
|
+
oneofKind: "voice";
|
|
3012
|
+
/**
|
|
3013
|
+
* @generated from protobuf field: InputMediaVoice voice = 5;
|
|
3014
|
+
*/
|
|
3015
|
+
voice: InputMediaVoice;
|
|
2940
3016
|
} | {
|
|
2941
3017
|
oneofKind: undefined;
|
|
2942
3018
|
};
|
|
@@ -2974,6 +3050,17 @@ export interface InputMediaDocument {
|
|
|
2974
3050
|
*/
|
|
2975
3051
|
documentId: bigint;
|
|
2976
3052
|
}
|
|
3053
|
+
/**
|
|
3054
|
+
* @generated from protobuf message InputMediaVoice
|
|
3055
|
+
*/
|
|
3056
|
+
export interface InputMediaVoice {
|
|
3057
|
+
/**
|
|
3058
|
+
* ID of the voice message that we have uploaded
|
|
3059
|
+
*
|
|
3060
|
+
* @generated from protobuf field: int64 voice_id = 1;
|
|
3061
|
+
*/
|
|
3062
|
+
voiceId: bigint;
|
|
3063
|
+
}
|
|
2977
3064
|
/**
|
|
2978
3065
|
* Nudge message (empty payload)
|
|
2979
3066
|
*
|
|
@@ -3104,17 +3191,61 @@ export interface GetChatHistoryInput {
|
|
|
3104
3191
|
*/
|
|
3105
3192
|
peerId?: InputPeer;
|
|
3106
3193
|
/**
|
|
3107
|
-
*
|
|
3194
|
+
* Legacy older-history cursor.
|
|
3195
|
+
* When `mode` is not provided, this preserves old behavior and fetches messages with ID < offset_id.
|
|
3108
3196
|
*
|
|
3109
3197
|
* @generated from protobuf field: optional int64 offset_id = 2;
|
|
3110
3198
|
*/
|
|
3111
3199
|
offsetId?: bigint;
|
|
3112
3200
|
/**
|
|
3113
|
-
* Number of messages to return
|
|
3201
|
+
* Number of messages to return.
|
|
3202
|
+
* For `mode = HISTORY_MODE_AROUND`, this acts as a fallback split if before/after limits are not provided.
|
|
3114
3203
|
*
|
|
3115
3204
|
* @generated from protobuf field: optional int32 limit = 3;
|
|
3116
3205
|
*/
|
|
3117
3206
|
limit?: number;
|
|
3207
|
+
/**
|
|
3208
|
+
* Explicit fetch mode for history pagination/windowing.
|
|
3209
|
+
*
|
|
3210
|
+
* @generated from protobuf field: optional GetChatHistoryMode mode = 4;
|
|
3211
|
+
*/
|
|
3212
|
+
mode?: GetChatHistoryMode;
|
|
3213
|
+
/**
|
|
3214
|
+
* Around mode anchor message ID.
|
|
3215
|
+
*
|
|
3216
|
+
* @generated from protobuf field: optional int64 anchor_id = 5;
|
|
3217
|
+
*/
|
|
3218
|
+
anchorId?: bigint;
|
|
3219
|
+
/**
|
|
3220
|
+
* Older mode cursor (messages with ID < before_id).
|
|
3221
|
+
*
|
|
3222
|
+
* @generated from protobuf field: optional int64 before_id = 6;
|
|
3223
|
+
*/
|
|
3224
|
+
beforeId?: bigint;
|
|
3225
|
+
/**
|
|
3226
|
+
* Newer mode cursor (messages with ID > after_id).
|
|
3227
|
+
*
|
|
3228
|
+
* @generated from protobuf field: optional int64 after_id = 7;
|
|
3229
|
+
*/
|
|
3230
|
+
afterId?: bigint;
|
|
3231
|
+
/**
|
|
3232
|
+
* Around mode count for messages older than anchor.
|
|
3233
|
+
*
|
|
3234
|
+
* @generated from protobuf field: optional int32 before_limit = 8;
|
|
3235
|
+
*/
|
|
3236
|
+
beforeLimit?: number;
|
|
3237
|
+
/**
|
|
3238
|
+
* Around mode count for messages newer than anchor.
|
|
3239
|
+
*
|
|
3240
|
+
* @generated from protobuf field: optional int32 after_limit = 9;
|
|
3241
|
+
*/
|
|
3242
|
+
afterLimit?: number;
|
|
3243
|
+
/**
|
|
3244
|
+
* Around mode include anchor row in response.
|
|
3245
|
+
*
|
|
3246
|
+
* @generated from protobuf field: optional bool include_anchor = 10;
|
|
3247
|
+
*/
|
|
3248
|
+
includeAnchor?: boolean;
|
|
3118
3249
|
}
|
|
3119
3250
|
/**
|
|
3120
3251
|
* @generated from protobuf message GetChatHistoryResult
|
|
@@ -3934,7 +4065,11 @@ export declare enum UpdateComposeAction_ComposeAction {
|
|
|
3934
4065
|
/**
|
|
3935
4066
|
* @generated from protobuf enum value: UPLOADING_VIDEO = 4;
|
|
3936
4067
|
*/
|
|
3937
|
-
UPLOADING_VIDEO = 4
|
|
4068
|
+
UPLOADING_VIDEO = 4,
|
|
4069
|
+
/**
|
|
4070
|
+
* @generated from protobuf enum value: RECORDING_VOICE = 5;
|
|
4071
|
+
*/
|
|
4072
|
+
RECORDING_VOICE = 5
|
|
3938
4073
|
}
|
|
3939
4074
|
/**
|
|
3940
4075
|
* @generated from protobuf message UpdateMessageAttachment
|
|
@@ -4584,6 +4719,31 @@ export declare enum PushNotificationProvider {
|
|
|
4584
4719
|
*/
|
|
4585
4720
|
EXPO_ANDROID = 2
|
|
4586
4721
|
}
|
|
4722
|
+
/**
|
|
4723
|
+
* @generated from protobuf enum GetChatHistoryMode
|
|
4724
|
+
*/
|
|
4725
|
+
export declare enum GetChatHistoryMode {
|
|
4726
|
+
/**
|
|
4727
|
+
* @generated from protobuf enum value: HISTORY_MODE_UNSPECIFIED = 0;
|
|
4728
|
+
*/
|
|
4729
|
+
HISTORY_MODE_UNSPECIFIED = 0,
|
|
4730
|
+
/**
|
|
4731
|
+
* @generated from protobuf enum value: HISTORY_MODE_LATEST = 1;
|
|
4732
|
+
*/
|
|
4733
|
+
HISTORY_MODE_LATEST = 1,
|
|
4734
|
+
/**
|
|
4735
|
+
* @generated from protobuf enum value: HISTORY_MODE_OLDER = 2;
|
|
4736
|
+
*/
|
|
4737
|
+
HISTORY_MODE_OLDER = 2,
|
|
4738
|
+
/**
|
|
4739
|
+
* @generated from protobuf enum value: HISTORY_MODE_NEWER = 3;
|
|
4740
|
+
*/
|
|
4741
|
+
HISTORY_MODE_NEWER = 3,
|
|
4742
|
+
/**
|
|
4743
|
+
* @generated from protobuf enum value: HISTORY_MODE_AROUND = 4;
|
|
4744
|
+
*/
|
|
4745
|
+
HISTORY_MODE_AROUND = 4
|
|
4746
|
+
}
|
|
4587
4747
|
/**
|
|
4588
4748
|
* @generated from protobuf enum SearchMessagesFilter
|
|
4589
4749
|
*/
|
|
@@ -5053,6 +5213,16 @@ declare class MessageDocument$Type extends MessageType<MessageDocument> {
|
|
|
5053
5213
|
* @generated MessageType for protobuf message MessageDocument
|
|
5054
5214
|
*/
|
|
5055
5215
|
export declare const MessageDocument: MessageDocument$Type;
|
|
5216
|
+
declare class MessageVoice$Type extends MessageType<MessageVoice> {
|
|
5217
|
+
constructor();
|
|
5218
|
+
create(value?: PartialMessage<MessageVoice>): MessageVoice;
|
|
5219
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MessageVoice): MessageVoice;
|
|
5220
|
+
internalBinaryWrite(message: MessageVoice, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
5221
|
+
}
|
|
5222
|
+
/**
|
|
5223
|
+
* @generated MessageType for protobuf message MessageVoice
|
|
5224
|
+
*/
|
|
5225
|
+
export declare const MessageVoice: MessageVoice$Type;
|
|
5056
5226
|
declare class MessageNudge$Type extends MessageType<MessageNudge> {
|
|
5057
5227
|
constructor();
|
|
5058
5228
|
create(value?: PartialMessage<MessageNudge>): MessageNudge;
|
|
@@ -5083,6 +5253,16 @@ declare class Document$Type extends MessageType<Document> {
|
|
|
5083
5253
|
* @generated MessageType for protobuf message Document
|
|
5084
5254
|
*/
|
|
5085
5255
|
export declare const Document: Document$Type;
|
|
5256
|
+
declare class Voice$Type extends MessageType<Voice> {
|
|
5257
|
+
constructor();
|
|
5258
|
+
create(value?: PartialMessage<Voice>): Voice;
|
|
5259
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Voice): Voice;
|
|
5260
|
+
internalBinaryWrite(message: Voice, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
5261
|
+
}
|
|
5262
|
+
/**
|
|
5263
|
+
* @generated MessageType for protobuf message Voice
|
|
5264
|
+
*/
|
|
5265
|
+
export declare const Voice: Voice$Type;
|
|
5086
5266
|
declare class Photo$Type extends MessageType<Photo> {
|
|
5087
5267
|
constructor();
|
|
5088
5268
|
create(value?: PartialMessage<Photo>): Photo;
|
|
@@ -5753,6 +5933,16 @@ declare class InputMediaDocument$Type extends MessageType<InputMediaDocument> {
|
|
|
5753
5933
|
* @generated MessageType for protobuf message InputMediaDocument
|
|
5754
5934
|
*/
|
|
5755
5935
|
export declare const InputMediaDocument: InputMediaDocument$Type;
|
|
5936
|
+
declare class InputMediaVoice$Type extends MessageType<InputMediaVoice> {
|
|
5937
|
+
constructor();
|
|
5938
|
+
create(value?: PartialMessage<InputMediaVoice>): InputMediaVoice;
|
|
5939
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InputMediaVoice): InputMediaVoice;
|
|
5940
|
+
internalBinaryWrite(message: InputMediaVoice, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
5941
|
+
}
|
|
5942
|
+
/**
|
|
5943
|
+
* @generated MessageType for protobuf message InputMediaVoice
|
|
5944
|
+
*/
|
|
5945
|
+
export declare const InputMediaVoice: InputMediaVoice$Type;
|
|
5756
5946
|
declare class InputMediaNudge$Type extends MessageType<InputMediaNudge> {
|
|
5757
5947
|
constructor();
|
|
5758
5948
|
create(value?: PartialMessage<InputMediaNudge>): InputMediaNudge;
|
package/dist/core.js
CHANGED
|
@@ -317,6 +317,10 @@ export var UpdateComposeAction_ComposeAction;
|
|
|
317
317
|
* @generated from protobuf enum value: UPLOADING_VIDEO = 4;
|
|
318
318
|
*/
|
|
319
319
|
UpdateComposeAction_ComposeAction[UpdateComposeAction_ComposeAction["UPLOADING_VIDEO"] = 4] = "UPLOADING_VIDEO";
|
|
320
|
+
/**
|
|
321
|
+
* @generated from protobuf enum value: RECORDING_VOICE = 5;
|
|
322
|
+
*/
|
|
323
|
+
UpdateComposeAction_ComposeAction[UpdateComposeAction_ComposeAction["RECORDING_VOICE"] = 5] = "RECORDING_VOICE";
|
|
320
324
|
})(UpdateComposeAction_ComposeAction || (UpdateComposeAction_ComposeAction = {}));
|
|
321
325
|
/**
|
|
322
326
|
* @generated from protobuf enum UserStatus.Status
|
|
@@ -542,6 +546,32 @@ export var PushNotificationProvider;
|
|
|
542
546
|
*/
|
|
543
547
|
PushNotificationProvider[PushNotificationProvider["EXPO_ANDROID"] = 2] = "EXPO_ANDROID";
|
|
544
548
|
})(PushNotificationProvider || (PushNotificationProvider = {}));
|
|
549
|
+
/**
|
|
550
|
+
* @generated from protobuf enum GetChatHistoryMode
|
|
551
|
+
*/
|
|
552
|
+
export var GetChatHistoryMode;
|
|
553
|
+
(function (GetChatHistoryMode) {
|
|
554
|
+
/**
|
|
555
|
+
* @generated from protobuf enum value: HISTORY_MODE_UNSPECIFIED = 0;
|
|
556
|
+
*/
|
|
557
|
+
GetChatHistoryMode[GetChatHistoryMode["HISTORY_MODE_UNSPECIFIED"] = 0] = "HISTORY_MODE_UNSPECIFIED";
|
|
558
|
+
/**
|
|
559
|
+
* @generated from protobuf enum value: HISTORY_MODE_LATEST = 1;
|
|
560
|
+
*/
|
|
561
|
+
GetChatHistoryMode[GetChatHistoryMode["HISTORY_MODE_LATEST"] = 1] = "HISTORY_MODE_LATEST";
|
|
562
|
+
/**
|
|
563
|
+
* @generated from protobuf enum value: HISTORY_MODE_OLDER = 2;
|
|
564
|
+
*/
|
|
565
|
+
GetChatHistoryMode[GetChatHistoryMode["HISTORY_MODE_OLDER"] = 2] = "HISTORY_MODE_OLDER";
|
|
566
|
+
/**
|
|
567
|
+
* @generated from protobuf enum value: HISTORY_MODE_NEWER = 3;
|
|
568
|
+
*/
|
|
569
|
+
GetChatHistoryMode[GetChatHistoryMode["HISTORY_MODE_NEWER"] = 3] = "HISTORY_MODE_NEWER";
|
|
570
|
+
/**
|
|
571
|
+
* @generated from protobuf enum value: HISTORY_MODE_AROUND = 4;
|
|
572
|
+
*/
|
|
573
|
+
GetChatHistoryMode[GetChatHistoryMode["HISTORY_MODE_AROUND"] = 4] = "HISTORY_MODE_AROUND";
|
|
574
|
+
})(GetChatHistoryMode || (GetChatHistoryMode = {}));
|
|
545
575
|
/**
|
|
546
576
|
* @generated from protobuf enum SearchMessagesFilter
|
|
547
577
|
*/
|
|
@@ -3233,7 +3263,8 @@ class MessageMedia$Type extends MessageType {
|
|
|
3233
3263
|
{ no: 1, name: "photo", kind: "message", oneof: "media", T: () => MessagePhoto },
|
|
3234
3264
|
{ no: 2, name: "video", kind: "message", oneof: "media", T: () => MessageVideo },
|
|
3235
3265
|
{ no: 3, name: "document", kind: "message", oneof: "media", T: () => MessageDocument },
|
|
3236
|
-
{ no: 4, name: "nudge", kind: "message", oneof: "media", T: () => MessageNudge }
|
|
3266
|
+
{ no: 4, name: "nudge", kind: "message", oneof: "media", T: () => MessageNudge },
|
|
3267
|
+
{ no: 5, name: "voice", kind: "message", oneof: "media", T: () => MessageVoice }
|
|
3237
3268
|
]);
|
|
3238
3269
|
}
|
|
3239
3270
|
create(value) {
|
|
@@ -3272,6 +3303,12 @@ class MessageMedia$Type extends MessageType {
|
|
|
3272
3303
|
nudge: MessageNudge.internalBinaryRead(reader, reader.uint32(), options, message.media.nudge)
|
|
3273
3304
|
};
|
|
3274
3305
|
break;
|
|
3306
|
+
case /* MessageVoice voice */ 5:
|
|
3307
|
+
message.media = {
|
|
3308
|
+
oneofKind: "voice",
|
|
3309
|
+
voice: MessageVoice.internalBinaryRead(reader, reader.uint32(), options, message.media.voice)
|
|
3310
|
+
};
|
|
3311
|
+
break;
|
|
3275
3312
|
default:
|
|
3276
3313
|
let u = options.readUnknownField;
|
|
3277
3314
|
if (u === "throw")
|
|
@@ -3296,6 +3333,9 @@ class MessageMedia$Type extends MessageType {
|
|
|
3296
3333
|
/* MessageNudge nudge = 4; */
|
|
3297
3334
|
if (message.media.oneofKind === "nudge")
|
|
3298
3335
|
MessageNudge.internalBinaryWrite(message.media.nudge, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
3336
|
+
/* MessageVoice voice = 5; */
|
|
3337
|
+
if (message.media.oneofKind === "voice")
|
|
3338
|
+
MessageVoice.internalBinaryWrite(message.media.voice, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
3299
3339
|
let u = options.writeUnknownFields;
|
|
3300
3340
|
if (u !== false)
|
|
3301
3341
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3445,6 +3485,52 @@ class MessageDocument$Type extends MessageType {
|
|
|
3445
3485
|
*/
|
|
3446
3486
|
export const MessageDocument = new MessageDocument$Type();
|
|
3447
3487
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
3488
|
+
class MessageVoice$Type extends MessageType {
|
|
3489
|
+
constructor() {
|
|
3490
|
+
super("MessageVoice", [
|
|
3491
|
+
{ no: 1, name: "voice", kind: "message", T: () => Voice }
|
|
3492
|
+
]);
|
|
3493
|
+
}
|
|
3494
|
+
create(value) {
|
|
3495
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
3496
|
+
if (value !== undefined)
|
|
3497
|
+
reflectionMergePartial(this, message, value);
|
|
3498
|
+
return message;
|
|
3499
|
+
}
|
|
3500
|
+
internalBinaryRead(reader, length, options, target) {
|
|
3501
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3502
|
+
while (reader.pos < end) {
|
|
3503
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3504
|
+
switch (fieldNo) {
|
|
3505
|
+
case /* Voice voice */ 1:
|
|
3506
|
+
message.voice = Voice.internalBinaryRead(reader, reader.uint32(), options, message.voice);
|
|
3507
|
+
break;
|
|
3508
|
+
default:
|
|
3509
|
+
let u = options.readUnknownField;
|
|
3510
|
+
if (u === "throw")
|
|
3511
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3512
|
+
let d = reader.skip(wireType);
|
|
3513
|
+
if (u !== false)
|
|
3514
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3515
|
+
}
|
|
3516
|
+
}
|
|
3517
|
+
return message;
|
|
3518
|
+
}
|
|
3519
|
+
internalBinaryWrite(message, writer, options) {
|
|
3520
|
+
/* Voice voice = 1; */
|
|
3521
|
+
if (message.voice)
|
|
3522
|
+
Voice.internalBinaryWrite(message.voice, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3523
|
+
let u = options.writeUnknownFields;
|
|
3524
|
+
if (u !== false)
|
|
3525
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3526
|
+
return writer;
|
|
3527
|
+
}
|
|
3528
|
+
}
|
|
3529
|
+
/**
|
|
3530
|
+
* @generated MessageType for protobuf message MessageVoice
|
|
3531
|
+
*/
|
|
3532
|
+
export const MessageVoice = new MessageVoice$Type();
|
|
3533
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3448
3534
|
class MessageNudge$Type extends MessageType {
|
|
3449
3535
|
constructor() {
|
|
3450
3536
|
super("MessageNudge", []);
|
|
@@ -3579,7 +3665,8 @@ class Document$Type extends MessageType {
|
|
|
3579
3665
|
{ no: 3, name: "mime_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3580
3666
|
{ no: 4, name: "size", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
3581
3667
|
{ no: 5, name: "cdn_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3582
|
-
{ no: 6, name: "date", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
3668
|
+
{ no: 6, name: "date", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3669
|
+
{ no: 7, name: "photo", kind: "message", T: () => Photo }
|
|
3583
3670
|
]);
|
|
3584
3671
|
}
|
|
3585
3672
|
create(value) {
|
|
@@ -3616,6 +3703,9 @@ class Document$Type extends MessageType {
|
|
|
3616
3703
|
case /* int64 date */ 6:
|
|
3617
3704
|
message.date = reader.int64().toBigInt();
|
|
3618
3705
|
break;
|
|
3706
|
+
case /* optional Photo photo */ 7:
|
|
3707
|
+
message.photo = Photo.internalBinaryRead(reader, reader.uint32(), options, message.photo);
|
|
3708
|
+
break;
|
|
3619
3709
|
default:
|
|
3620
3710
|
let u = options.readUnknownField;
|
|
3621
3711
|
if (u === "throw")
|
|
@@ -3646,6 +3736,9 @@ class Document$Type extends MessageType {
|
|
|
3646
3736
|
/* int64 date = 6; */
|
|
3647
3737
|
if (message.date !== 0n)
|
|
3648
3738
|
writer.tag(6, WireType.Varint).int64(message.date);
|
|
3739
|
+
/* optional Photo photo = 7; */
|
|
3740
|
+
if (message.photo)
|
|
3741
|
+
Photo.internalBinaryWrite(message.photo, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
3649
3742
|
let u = options.writeUnknownFields;
|
|
3650
3743
|
if (u !== false)
|
|
3651
3744
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3657,6 +3750,100 @@ class Document$Type extends MessageType {
|
|
|
3657
3750
|
*/
|
|
3658
3751
|
export const Document = new Document$Type();
|
|
3659
3752
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
3753
|
+
class Voice$Type extends MessageType {
|
|
3754
|
+
constructor() {
|
|
3755
|
+
super("Voice", [
|
|
3756
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3757
|
+
{ no: 2, name: "date", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3758
|
+
{ no: 3, name: "duration", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
3759
|
+
{ no: 4, name: "size", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
3760
|
+
{ no: 5, name: "mime_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3761
|
+
{ no: 6, name: "cdn_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3762
|
+
{ no: 7, name: "waveform", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
3763
|
+
]);
|
|
3764
|
+
}
|
|
3765
|
+
create(value) {
|
|
3766
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
3767
|
+
message.id = 0n;
|
|
3768
|
+
message.date = 0n;
|
|
3769
|
+
message.duration = 0;
|
|
3770
|
+
message.size = 0;
|
|
3771
|
+
message.mimeType = "";
|
|
3772
|
+
message.waveform = new Uint8Array(0);
|
|
3773
|
+
if (value !== undefined)
|
|
3774
|
+
reflectionMergePartial(this, message, value);
|
|
3775
|
+
return message;
|
|
3776
|
+
}
|
|
3777
|
+
internalBinaryRead(reader, length, options, target) {
|
|
3778
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3779
|
+
while (reader.pos < end) {
|
|
3780
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3781
|
+
switch (fieldNo) {
|
|
3782
|
+
case /* int64 id */ 1:
|
|
3783
|
+
message.id = reader.int64().toBigInt();
|
|
3784
|
+
break;
|
|
3785
|
+
case /* int64 date */ 2:
|
|
3786
|
+
message.date = reader.int64().toBigInt();
|
|
3787
|
+
break;
|
|
3788
|
+
case /* int32 duration */ 3:
|
|
3789
|
+
message.duration = reader.int32();
|
|
3790
|
+
break;
|
|
3791
|
+
case /* int32 size */ 4:
|
|
3792
|
+
message.size = reader.int32();
|
|
3793
|
+
break;
|
|
3794
|
+
case /* string mime_type */ 5:
|
|
3795
|
+
message.mimeType = reader.string();
|
|
3796
|
+
break;
|
|
3797
|
+
case /* optional string cdn_url */ 6:
|
|
3798
|
+
message.cdnUrl = reader.string();
|
|
3799
|
+
break;
|
|
3800
|
+
case /* bytes waveform */ 7:
|
|
3801
|
+
message.waveform = reader.bytes();
|
|
3802
|
+
break;
|
|
3803
|
+
default:
|
|
3804
|
+
let u = options.readUnknownField;
|
|
3805
|
+
if (u === "throw")
|
|
3806
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3807
|
+
let d = reader.skip(wireType);
|
|
3808
|
+
if (u !== false)
|
|
3809
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3810
|
+
}
|
|
3811
|
+
}
|
|
3812
|
+
return message;
|
|
3813
|
+
}
|
|
3814
|
+
internalBinaryWrite(message, writer, options) {
|
|
3815
|
+
/* int64 id = 1; */
|
|
3816
|
+
if (message.id !== 0n)
|
|
3817
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
3818
|
+
/* int64 date = 2; */
|
|
3819
|
+
if (message.date !== 0n)
|
|
3820
|
+
writer.tag(2, WireType.Varint).int64(message.date);
|
|
3821
|
+
/* int32 duration = 3; */
|
|
3822
|
+
if (message.duration !== 0)
|
|
3823
|
+
writer.tag(3, WireType.Varint).int32(message.duration);
|
|
3824
|
+
/* int32 size = 4; */
|
|
3825
|
+
if (message.size !== 0)
|
|
3826
|
+
writer.tag(4, WireType.Varint).int32(message.size);
|
|
3827
|
+
/* string mime_type = 5; */
|
|
3828
|
+
if (message.mimeType !== "")
|
|
3829
|
+
writer.tag(5, WireType.LengthDelimited).string(message.mimeType);
|
|
3830
|
+
/* optional string cdn_url = 6; */
|
|
3831
|
+
if (message.cdnUrl !== undefined)
|
|
3832
|
+
writer.tag(6, WireType.LengthDelimited).string(message.cdnUrl);
|
|
3833
|
+
/* bytes waveform = 7; */
|
|
3834
|
+
if (message.waveform.length)
|
|
3835
|
+
writer.tag(7, WireType.LengthDelimited).bytes(message.waveform);
|
|
3836
|
+
let u = options.writeUnknownFields;
|
|
3837
|
+
if (u !== false)
|
|
3838
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3839
|
+
return writer;
|
|
3840
|
+
}
|
|
3841
|
+
}
|
|
3842
|
+
/**
|
|
3843
|
+
* @generated MessageType for protobuf message Voice
|
|
3844
|
+
*/
|
|
3845
|
+
export const Voice = new Voice$Type();
|
|
3846
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3660
3847
|
class Photo$Type extends MessageType {
|
|
3661
3848
|
constructor() {
|
|
3662
3849
|
super("Photo", [
|
|
@@ -7656,7 +7843,8 @@ class EditMessageInput$Type extends MessageType {
|
|
|
7656
7843
|
{ no: 1, name: "message_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
7657
7844
|
{ no: 2, name: "peer_id", kind: "message", T: () => InputPeer },
|
|
7658
7845
|
{ no: 3, name: "text", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7659
|
-
{ no: 7, name: "entities", kind: "message", T: () => MessageEntities }
|
|
7846
|
+
{ no: 7, name: "entities", kind: "message", T: () => MessageEntities },
|
|
7847
|
+
{ no: 8, name: "parse_markdown", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
7660
7848
|
]);
|
|
7661
7849
|
}
|
|
7662
7850
|
create(value) {
|
|
@@ -7684,6 +7872,9 @@ class EditMessageInput$Type extends MessageType {
|
|
|
7684
7872
|
case /* optional MessageEntities entities */ 7:
|
|
7685
7873
|
message.entities = MessageEntities.internalBinaryRead(reader, reader.uint32(), options, message.entities);
|
|
7686
7874
|
break;
|
|
7875
|
+
case /* optional bool parse_markdown */ 8:
|
|
7876
|
+
message.parseMarkdown = reader.bool();
|
|
7877
|
+
break;
|
|
7687
7878
|
default:
|
|
7688
7879
|
let u = options.readUnknownField;
|
|
7689
7880
|
if (u === "throw")
|
|
@@ -7708,6 +7899,9 @@ class EditMessageInput$Type extends MessageType {
|
|
|
7708
7899
|
/* optional MessageEntities entities = 7; */
|
|
7709
7900
|
if (message.entities)
|
|
7710
7901
|
MessageEntities.internalBinaryWrite(message.entities, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
7902
|
+
/* optional bool parse_markdown = 8; */
|
|
7903
|
+
if (message.parseMarkdown !== undefined)
|
|
7904
|
+
writer.tag(8, WireType.Varint).bool(message.parseMarkdown);
|
|
7711
7905
|
let u = options.writeUnknownFields;
|
|
7712
7906
|
if (u !== false)
|
|
7713
7907
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -7772,7 +7966,8 @@ class InputMedia$Type extends MessageType {
|
|
|
7772
7966
|
{ no: 1, name: "photo", kind: "message", oneof: "media", T: () => InputMediaPhoto },
|
|
7773
7967
|
{ no: 2, name: "video", kind: "message", oneof: "media", T: () => InputMediaVideo },
|
|
7774
7968
|
{ no: 3, name: "document", kind: "message", oneof: "media", T: () => InputMediaDocument },
|
|
7775
|
-
{ no: 4, name: "nudge", kind: "message", oneof: "media", T: () => InputMediaNudge }
|
|
7969
|
+
{ no: 4, name: "nudge", kind: "message", oneof: "media", T: () => InputMediaNudge },
|
|
7970
|
+
{ no: 5, name: "voice", kind: "message", oneof: "media", T: () => InputMediaVoice }
|
|
7776
7971
|
]);
|
|
7777
7972
|
}
|
|
7778
7973
|
create(value) {
|
|
@@ -7811,6 +8006,12 @@ class InputMedia$Type extends MessageType {
|
|
|
7811
8006
|
nudge: InputMediaNudge.internalBinaryRead(reader, reader.uint32(), options, message.media.nudge)
|
|
7812
8007
|
};
|
|
7813
8008
|
break;
|
|
8009
|
+
case /* InputMediaVoice voice */ 5:
|
|
8010
|
+
message.media = {
|
|
8011
|
+
oneofKind: "voice",
|
|
8012
|
+
voice: InputMediaVoice.internalBinaryRead(reader, reader.uint32(), options, message.media.voice)
|
|
8013
|
+
};
|
|
8014
|
+
break;
|
|
7814
8015
|
default:
|
|
7815
8016
|
let u = options.readUnknownField;
|
|
7816
8017
|
if (u === "throw")
|
|
@@ -7835,6 +8036,9 @@ class InputMedia$Type extends MessageType {
|
|
|
7835
8036
|
/* InputMediaNudge nudge = 4; */
|
|
7836
8037
|
if (message.media.oneofKind === "nudge")
|
|
7837
8038
|
InputMediaNudge.internalBinaryWrite(message.media.nudge, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
8039
|
+
/* InputMediaVoice voice = 5; */
|
|
8040
|
+
if (message.media.oneofKind === "voice")
|
|
8041
|
+
InputMediaVoice.internalBinaryWrite(message.media.voice, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
7838
8042
|
let u = options.writeUnknownFields;
|
|
7839
8043
|
if (u !== false)
|
|
7840
8044
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -7987,6 +8191,53 @@ class InputMediaDocument$Type extends MessageType {
|
|
|
7987
8191
|
*/
|
|
7988
8192
|
export const InputMediaDocument = new InputMediaDocument$Type();
|
|
7989
8193
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
8194
|
+
class InputMediaVoice$Type extends MessageType {
|
|
8195
|
+
constructor() {
|
|
8196
|
+
super("InputMediaVoice", [
|
|
8197
|
+
{ no: 1, name: "voice_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
8198
|
+
]);
|
|
8199
|
+
}
|
|
8200
|
+
create(value) {
|
|
8201
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
8202
|
+
message.voiceId = 0n;
|
|
8203
|
+
if (value !== undefined)
|
|
8204
|
+
reflectionMergePartial(this, message, value);
|
|
8205
|
+
return message;
|
|
8206
|
+
}
|
|
8207
|
+
internalBinaryRead(reader, length, options, target) {
|
|
8208
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
8209
|
+
while (reader.pos < end) {
|
|
8210
|
+
let [fieldNo, wireType] = reader.tag();
|
|
8211
|
+
switch (fieldNo) {
|
|
8212
|
+
case /* int64 voice_id */ 1:
|
|
8213
|
+
message.voiceId = reader.int64().toBigInt();
|
|
8214
|
+
break;
|
|
8215
|
+
default:
|
|
8216
|
+
let u = options.readUnknownField;
|
|
8217
|
+
if (u === "throw")
|
|
8218
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
8219
|
+
let d = reader.skip(wireType);
|
|
8220
|
+
if (u !== false)
|
|
8221
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
8222
|
+
}
|
|
8223
|
+
}
|
|
8224
|
+
return message;
|
|
8225
|
+
}
|
|
8226
|
+
internalBinaryWrite(message, writer, options) {
|
|
8227
|
+
/* int64 voice_id = 1; */
|
|
8228
|
+
if (message.voiceId !== 0n)
|
|
8229
|
+
writer.tag(1, WireType.Varint).int64(message.voiceId);
|
|
8230
|
+
let u = options.writeUnknownFields;
|
|
8231
|
+
if (u !== false)
|
|
8232
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
8233
|
+
return writer;
|
|
8234
|
+
}
|
|
8235
|
+
}
|
|
8236
|
+
/**
|
|
8237
|
+
* @generated MessageType for protobuf message InputMediaVoice
|
|
8238
|
+
*/
|
|
8239
|
+
export const InputMediaVoice = new InputMediaVoice$Type();
|
|
8240
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
7990
8241
|
class InputMediaNudge$Type extends MessageType {
|
|
7991
8242
|
constructor() {
|
|
7992
8243
|
super("InputMediaNudge", []);
|
|
@@ -8303,7 +8554,14 @@ class GetChatHistoryInput$Type extends MessageType {
|
|
|
8303
8554
|
super("GetChatHistoryInput", [
|
|
8304
8555
|
{ no: 1, name: "peer_id", kind: "message", T: () => InputPeer },
|
|
8305
8556
|
{ no: 2, name: "offset_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
8306
|
-
{ no: 3, name: "limit", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }
|
|
8557
|
+
{ no: 3, name: "limit", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
8558
|
+
{ no: 4, name: "mode", kind: "enum", opt: true, T: () => ["GetChatHistoryMode", GetChatHistoryMode] },
|
|
8559
|
+
{ no: 5, name: "anchor_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
8560
|
+
{ no: 6, name: "before_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
8561
|
+
{ no: 7, name: "after_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
8562
|
+
{ no: 8, name: "before_limit", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
8563
|
+
{ no: 9, name: "after_limit", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
8564
|
+
{ no: 10, name: "include_anchor", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
8307
8565
|
]);
|
|
8308
8566
|
}
|
|
8309
8567
|
create(value) {
|
|
@@ -8326,6 +8584,27 @@ class GetChatHistoryInput$Type extends MessageType {
|
|
|
8326
8584
|
case /* optional int32 limit */ 3:
|
|
8327
8585
|
message.limit = reader.int32();
|
|
8328
8586
|
break;
|
|
8587
|
+
case /* optional GetChatHistoryMode mode */ 4:
|
|
8588
|
+
message.mode = reader.int32();
|
|
8589
|
+
break;
|
|
8590
|
+
case /* optional int64 anchor_id */ 5:
|
|
8591
|
+
message.anchorId = reader.int64().toBigInt();
|
|
8592
|
+
break;
|
|
8593
|
+
case /* optional int64 before_id */ 6:
|
|
8594
|
+
message.beforeId = reader.int64().toBigInt();
|
|
8595
|
+
break;
|
|
8596
|
+
case /* optional int64 after_id */ 7:
|
|
8597
|
+
message.afterId = reader.int64().toBigInt();
|
|
8598
|
+
break;
|
|
8599
|
+
case /* optional int32 before_limit */ 8:
|
|
8600
|
+
message.beforeLimit = reader.int32();
|
|
8601
|
+
break;
|
|
8602
|
+
case /* optional int32 after_limit */ 9:
|
|
8603
|
+
message.afterLimit = reader.int32();
|
|
8604
|
+
break;
|
|
8605
|
+
case /* optional bool include_anchor */ 10:
|
|
8606
|
+
message.includeAnchor = reader.bool();
|
|
8607
|
+
break;
|
|
8329
8608
|
default:
|
|
8330
8609
|
let u = options.readUnknownField;
|
|
8331
8610
|
if (u === "throw")
|
|
@@ -8347,6 +8626,27 @@ class GetChatHistoryInput$Type extends MessageType {
|
|
|
8347
8626
|
/* optional int32 limit = 3; */
|
|
8348
8627
|
if (message.limit !== undefined)
|
|
8349
8628
|
writer.tag(3, WireType.Varint).int32(message.limit);
|
|
8629
|
+
/* optional GetChatHistoryMode mode = 4; */
|
|
8630
|
+
if (message.mode !== undefined)
|
|
8631
|
+
writer.tag(4, WireType.Varint).int32(message.mode);
|
|
8632
|
+
/* optional int64 anchor_id = 5; */
|
|
8633
|
+
if (message.anchorId !== undefined)
|
|
8634
|
+
writer.tag(5, WireType.Varint).int64(message.anchorId);
|
|
8635
|
+
/* optional int64 before_id = 6; */
|
|
8636
|
+
if (message.beforeId !== undefined)
|
|
8637
|
+
writer.tag(6, WireType.Varint).int64(message.beforeId);
|
|
8638
|
+
/* optional int64 after_id = 7; */
|
|
8639
|
+
if (message.afterId !== undefined)
|
|
8640
|
+
writer.tag(7, WireType.Varint).int64(message.afterId);
|
|
8641
|
+
/* optional int32 before_limit = 8; */
|
|
8642
|
+
if (message.beforeLimit !== undefined)
|
|
8643
|
+
writer.tag(8, WireType.Varint).int32(message.beforeLimit);
|
|
8644
|
+
/* optional int32 after_limit = 9; */
|
|
8645
|
+
if (message.afterLimit !== undefined)
|
|
8646
|
+
writer.tag(9, WireType.Varint).int32(message.afterLimit);
|
|
8647
|
+
/* optional bool include_anchor = 10; */
|
|
8648
|
+
if (message.includeAnchor !== undefined)
|
|
8649
|
+
writer.tag(10, WireType.Varint).bool(message.includeAnchor);
|
|
8350
8650
|
let u = options.writeUnknownFields;
|
|
8351
8651
|
if (u !== false)
|
|
8352
8652
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|