@wppconnect/wa-proto 2.3000.1024617758 → 2.3000.1024884592

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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [2.3000.1024884592](https://github.com/wppconnect-team/wa-proto/compare/v2.3000.1024744989...v2.3000.1024884592) (2025-07-18)
2
+
3
+
4
+
5
+ ## 2.3000.1024744989 (2025-07-15)
6
+
7
+
8
+
1
9
  ## [2.3000.1024617758](https://github.com/wppconnect-team/wa-proto/compare/v2.3000.1024570263...v2.3000.1024617758) (2025-07-10)
2
10
 
3
11
 
package/WAProto.proto CHANGED
@@ -1,7 +1,7 @@
1
1
  syntax = "proto3";
2
2
  package waproto;
3
3
 
4
- /// WhatsApp Version: 2.3000.1024617758
4
+ /// WhatsApp Version: 2.3000.1024884592
5
5
 
6
6
  message ADVDeviceIdentity {
7
7
  optional uint32 rawId = 1;
@@ -1342,6 +1342,7 @@ message DeviceProps {
1342
1342
  optional bool supportFbidBotChatHistory = 12;
1343
1343
  optional bool supportAddOnHistorySyncMigration = 13;
1344
1344
  optional bool supportMessageAssociation = 14;
1345
+ optional bool supportGroupHistory = 15;
1345
1346
  }
1346
1347
 
1347
1348
  enum PlatformType {
@@ -1811,6 +1812,7 @@ message Message {
1811
1812
  optional FutureProofMessage botForwardedMessage = 104;
1812
1813
  optional StatusQuestionAnswerMessage statusQuestionAnswerMessage = 105;
1813
1814
  optional QuestionAdminReplyMessage questionAdminReplyMessage = 106;
1815
+ optional QuestionResponseMessage questionResponseMessage = 107;
1814
1816
  message AlbumMessage {
1815
1817
  optional uint32 expectedImageCount = 2;
1816
1818
  optional uint32 expectedVideoCount = 3;
@@ -2989,6 +2991,11 @@ message Message {
2989
2991
 
2990
2992
  }
2991
2993
 
2994
+ message QuestionResponseMessage {
2995
+ optional MessageKey key = 1;
2996
+ optional string text = 2;
2997
+ }
2998
+
2992
2999
  message ReactionMessage {
2993
3000
  optional MessageKey key = 1;
2994
3001
  optional string text = 2;
@@ -3069,6 +3076,7 @@ message Message {
3069
3076
  UNKNOWN = 0;
3070
3077
  STATUS_ADD_YOURS = 1;
3071
3078
  STATUS_RESHARE = 2;
3079
+ STATUS_QUESTION_ANSWER_RESHARE = 3;
3072
3080
  }
3073
3081
  }
3074
3082
 
package/dist/index.d.ts CHANGED
@@ -13957,6 +13957,9 @@ export namespace waproto {
13957
13957
 
13958
13958
  /** HistorySyncConfig supportMessageAssociation */
13959
13959
  supportMessageAssociation?: (boolean|null);
13960
+
13961
+ /** HistorySyncConfig supportGroupHistory */
13962
+ supportGroupHistory?: (boolean|null);
13960
13963
  }
13961
13964
 
13962
13965
  /** Represents a HistorySyncConfig. */
@@ -14010,6 +14013,9 @@ export namespace waproto {
14010
14013
  /** HistorySyncConfig supportMessageAssociation. */
14011
14014
  public supportMessageAssociation?: (boolean|null);
14012
14015
 
14016
+ /** HistorySyncConfig supportGroupHistory. */
14017
+ public supportGroupHistory?: (boolean|null);
14018
+
14013
14019
  /**
14014
14020
  * Creates a new HistorySyncConfig instance using the specified properties.
14015
14021
  * @param [properties] Properties to set
@@ -19094,6 +19100,9 @@ export namespace waproto {
19094
19100
 
19095
19101
  /** Message questionAdminReplyMessage */
19096
19102
  questionAdminReplyMessage?: (waproto.Message.IQuestionAdminReplyMessage|null);
19103
+
19104
+ /** Message questionResponseMessage */
19105
+ questionResponseMessage?: (waproto.Message.IQuestionResponseMessage|null);
19097
19106
  }
19098
19107
 
19099
19108
  /** Represents a Message. */
@@ -19375,6 +19384,9 @@ export namespace waproto {
19375
19384
  /** Message questionAdminReplyMessage. */
19376
19385
  public questionAdminReplyMessage?: (waproto.Message.IQuestionAdminReplyMessage|null);
19377
19386
 
19387
+ /** Message questionResponseMessage. */
19388
+ public questionResponseMessage?: (waproto.Message.IQuestionResponseMessage|null);
19389
+
19378
19390
  /**
19379
19391
  * Creates a new Message instance using the specified properties.
19380
19392
  * @param [properties] Properties to set
@@ -33955,6 +33967,109 @@ export namespace waproto {
33955
33967
  }
33956
33968
  }
33957
33969
 
33970
+ /** Properties of a QuestionResponseMessage. */
33971
+ interface IQuestionResponseMessage {
33972
+
33973
+ /** QuestionResponseMessage key */
33974
+ key?: (waproto.IMessageKey|null);
33975
+
33976
+ /** QuestionResponseMessage text */
33977
+ text?: (string|null);
33978
+ }
33979
+
33980
+ /** Represents a QuestionResponseMessage. */
33981
+ class QuestionResponseMessage implements IQuestionResponseMessage {
33982
+
33983
+ /**
33984
+ * Constructs a new QuestionResponseMessage.
33985
+ * @param [properties] Properties to set
33986
+ */
33987
+ constructor(properties?: waproto.Message.IQuestionResponseMessage);
33988
+
33989
+ /** QuestionResponseMessage key. */
33990
+ public key?: (waproto.IMessageKey|null);
33991
+
33992
+ /** QuestionResponseMessage text. */
33993
+ public text?: (string|null);
33994
+
33995
+ /**
33996
+ * Creates a new QuestionResponseMessage instance using the specified properties.
33997
+ * @param [properties] Properties to set
33998
+ * @returns QuestionResponseMessage instance
33999
+ */
34000
+ public static create(properties?: waproto.Message.IQuestionResponseMessage): waproto.Message.QuestionResponseMessage;
34001
+
34002
+ /**
34003
+ * Encodes the specified QuestionResponseMessage message. Does not implicitly {@link waproto.Message.QuestionResponseMessage.verify|verify} messages.
34004
+ * @param message QuestionResponseMessage message or plain object to encode
34005
+ * @param [writer] Writer to encode to
34006
+ * @returns Writer
34007
+ */
34008
+ public static encode(message: waproto.Message.IQuestionResponseMessage, writer?: $protobuf.Writer): $protobuf.Writer;
34009
+
34010
+ /**
34011
+ * Encodes the specified QuestionResponseMessage message, length delimited. Does not implicitly {@link waproto.Message.QuestionResponseMessage.verify|verify} messages.
34012
+ * @param message QuestionResponseMessage message or plain object to encode
34013
+ * @param [writer] Writer to encode to
34014
+ * @returns Writer
34015
+ */
34016
+ public static encodeDelimited(message: waproto.Message.IQuestionResponseMessage, writer?: $protobuf.Writer): $protobuf.Writer;
34017
+
34018
+ /**
34019
+ * Decodes a QuestionResponseMessage message from the specified reader or buffer.
34020
+ * @param reader Reader or buffer to decode from
34021
+ * @param [length] Message length if known beforehand
34022
+ * @returns QuestionResponseMessage
34023
+ * @throws {Error} If the payload is not a reader or valid buffer
34024
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34025
+ */
34026
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.Message.QuestionResponseMessage;
34027
+
34028
+ /**
34029
+ * Decodes a QuestionResponseMessage message from the specified reader or buffer, length delimited.
34030
+ * @param reader Reader or buffer to decode from
34031
+ * @returns QuestionResponseMessage
34032
+ * @throws {Error} If the payload is not a reader or valid buffer
34033
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34034
+ */
34035
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.Message.QuestionResponseMessage;
34036
+
34037
+ /**
34038
+ * Verifies a QuestionResponseMessage message.
34039
+ * @param message Plain object to verify
34040
+ * @returns `null` if valid, otherwise the reason why it is not
34041
+ */
34042
+ public static verify(message: { [k: string]: any }): (string|null);
34043
+
34044
+ /**
34045
+ * Creates a QuestionResponseMessage message from a plain object. Also converts values to their respective internal types.
34046
+ * @param object Plain object
34047
+ * @returns QuestionResponseMessage
34048
+ */
34049
+ public static fromObject(object: { [k: string]: any }): waproto.Message.QuestionResponseMessage;
34050
+
34051
+ /**
34052
+ * Creates a plain object from a QuestionResponseMessage message. Also converts values to other types if specified.
34053
+ * @param message QuestionResponseMessage
34054
+ * @param [options] Conversion options
34055
+ * @returns Plain object
34056
+ */
34057
+ public static toObject(message: waproto.Message.QuestionResponseMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
34058
+
34059
+ /**
34060
+ * Converts this QuestionResponseMessage to JSON.
34061
+ * @returns JSON object
34062
+ */
34063
+ public toJSON(): { [k: string]: any };
34064
+
34065
+ /**
34066
+ * Gets the default type url for QuestionResponseMessage
34067
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
34068
+ * @returns The default type url
34069
+ */
34070
+ public static getTypeUrl(typeUrlPrefix?: string): string;
34071
+ }
34072
+
33958
34073
  /** Properties of a ReactionMessage. */
33959
34074
  interface IReactionMessage {
33960
34075
 
@@ -35089,7 +35204,8 @@ export namespace waproto {
35089
35204
  enum StatusNotificationType {
35090
35205
  UNKNOWN = 0,
35091
35206
  STATUS_ADD_YOURS = 1,
35092
- STATUS_RESHARE = 2
35207
+ STATUS_RESHARE = 2,
35208
+ STATUS_QUESTION_ANSWER_RESHARE = 3
35093
35209
  }
35094
35210
  }
35095
35211
 
package/dist/index.js CHANGED
@@ -43625,6 +43625,7 @@ $root.waproto = (function() {
43625
43625
  * @property {boolean|null} [supportFbidBotChatHistory] HistorySyncConfig supportFbidBotChatHistory
43626
43626
  * @property {boolean|null} [supportAddOnHistorySyncMigration] HistorySyncConfig supportAddOnHistorySyncMigration
43627
43627
  * @property {boolean|null} [supportMessageAssociation] HistorySyncConfig supportMessageAssociation
43628
+ * @property {boolean|null} [supportGroupHistory] HistorySyncConfig supportGroupHistory
43628
43629
  */
43629
43630
 
43630
43631
  /**
@@ -43754,6 +43755,14 @@ $root.waproto = (function() {
43754
43755
  */
43755
43756
  HistorySyncConfig.prototype.supportMessageAssociation = null;
43756
43757
 
43758
+ /**
43759
+ * HistorySyncConfig supportGroupHistory.
43760
+ * @member {boolean|null|undefined} supportGroupHistory
43761
+ * @memberof waproto.DeviceProps.HistorySyncConfig
43762
+ * @instance
43763
+ */
43764
+ HistorySyncConfig.prototype.supportGroupHistory = null;
43765
+
43757
43766
  // OneOf field names bound to virtual getters and setters
43758
43767
  var $oneOfFields;
43759
43768
 
@@ -43841,6 +43850,12 @@ $root.waproto = (function() {
43841
43850
  set: $util.oneOfSetter($oneOfFields)
43842
43851
  });
43843
43852
 
43853
+ // Virtual OneOf for proto3 optional field
43854
+ Object.defineProperty(HistorySyncConfig.prototype, "_supportGroupHistory", {
43855
+ get: $util.oneOfGetter($oneOfFields = ["supportGroupHistory"]),
43856
+ set: $util.oneOfSetter($oneOfFields)
43857
+ });
43858
+
43844
43859
  /**
43845
43860
  * Creates a new HistorySyncConfig instance using the specified properties.
43846
43861
  * @function create
@@ -43893,6 +43908,8 @@ $root.waproto = (function() {
43893
43908
  writer.uint32(/* id 13, wireType 0 =*/104).bool(message.supportAddOnHistorySyncMigration);
43894
43909
  if (message.supportMessageAssociation != null && Object.hasOwnProperty.call(message, "supportMessageAssociation"))
43895
43910
  writer.uint32(/* id 14, wireType 0 =*/112).bool(message.supportMessageAssociation);
43911
+ if (message.supportGroupHistory != null && Object.hasOwnProperty.call(message, "supportGroupHistory"))
43912
+ writer.uint32(/* id 15, wireType 0 =*/120).bool(message.supportGroupHistory);
43896
43913
  return writer;
43897
43914
  };
43898
43915
 
@@ -43983,6 +44000,10 @@ $root.waproto = (function() {
43983
44000
  message.supportMessageAssociation = reader.bool();
43984
44001
  break;
43985
44002
  }
44003
+ case 15: {
44004
+ message.supportGroupHistory = reader.bool();
44005
+ break;
44006
+ }
43986
44007
  default:
43987
44008
  reader.skipType(tag & 7);
43988
44009
  break;
@@ -44089,6 +44110,11 @@ $root.waproto = (function() {
44089
44110
  if (typeof message.supportMessageAssociation !== "boolean")
44090
44111
  return "supportMessageAssociation: boolean expected";
44091
44112
  }
44113
+ if (message.supportGroupHistory != null && message.hasOwnProperty("supportGroupHistory")) {
44114
+ properties._supportGroupHistory = 1;
44115
+ if (typeof message.supportGroupHistory !== "boolean")
44116
+ return "supportGroupHistory: boolean expected";
44117
+ }
44092
44118
  return null;
44093
44119
  };
44094
44120
 
@@ -44132,6 +44158,8 @@ $root.waproto = (function() {
44132
44158
  message.supportAddOnHistorySyncMigration = Boolean(object.supportAddOnHistorySyncMigration);
44133
44159
  if (object.supportMessageAssociation != null)
44134
44160
  message.supportMessageAssociation = Boolean(object.supportMessageAssociation);
44161
+ if (object.supportGroupHistory != null)
44162
+ message.supportGroupHistory = Boolean(object.supportGroupHistory);
44135
44163
  return message;
44136
44164
  };
44137
44165
 
@@ -44218,6 +44246,11 @@ $root.waproto = (function() {
44218
44246
  if (options.oneofs)
44219
44247
  object._supportMessageAssociation = "supportMessageAssociation";
44220
44248
  }
44249
+ if (message.supportGroupHistory != null && message.hasOwnProperty("supportGroupHistory")) {
44250
+ object.supportGroupHistory = message.supportGroupHistory;
44251
+ if (options.oneofs)
44252
+ object._supportGroupHistory = "supportGroupHistory";
44253
+ }
44221
44254
  return object;
44222
44255
  };
44223
44256
 
@@ -57958,6 +57991,7 @@ $root.waproto = (function() {
57958
57991
  * @property {waproto.Message.IFutureProofMessage|null} [botForwardedMessage] Message botForwardedMessage
57959
57992
  * @property {waproto.Message.IStatusQuestionAnswerMessage|null} [statusQuestionAnswerMessage] Message statusQuestionAnswerMessage
57960
57993
  * @property {waproto.Message.IQuestionAdminReplyMessage|null} [questionAdminReplyMessage] Message questionAdminReplyMessage
57994
+ * @property {waproto.Message.IQuestionResponseMessage|null} [questionResponseMessage] Message questionResponseMessage
57961
57995
  */
57962
57996
 
57963
57997
  /**
@@ -58695,6 +58729,14 @@ $root.waproto = (function() {
58695
58729
  */
58696
58730
  Message.prototype.questionAdminReplyMessage = null;
58697
58731
 
58732
+ /**
58733
+ * Message questionResponseMessage.
58734
+ * @member {waproto.Message.IQuestionResponseMessage|null|undefined} questionResponseMessage
58735
+ * @memberof waproto.Message
58736
+ * @instance
58737
+ */
58738
+ Message.prototype.questionResponseMessage = null;
58739
+
58698
58740
  // OneOf field names bound to virtual getters and setters
58699
58741
  var $oneOfFields;
58700
58742
 
@@ -59238,6 +59280,12 @@ $root.waproto = (function() {
59238
59280
  set: $util.oneOfSetter($oneOfFields)
59239
59281
  });
59240
59282
 
59283
+ // Virtual OneOf for proto3 optional field
59284
+ Object.defineProperty(Message.prototype, "_questionResponseMessage", {
59285
+ get: $util.oneOfGetter($oneOfFields = ["questionResponseMessage"]),
59286
+ set: $util.oneOfSetter($oneOfFields)
59287
+ });
59288
+
59241
59289
  /**
59242
59290
  * Creates a new Message instance using the specified properties.
59243
59291
  * @function create
@@ -59442,6 +59490,8 @@ $root.waproto = (function() {
59442
59490
  $root.waproto.Message.StatusQuestionAnswerMessage.encode(message.statusQuestionAnswerMessage, writer.uint32(/* id 105, wireType 2 =*/842).fork()).ldelim();
59443
59491
  if (message.questionAdminReplyMessage != null && Object.hasOwnProperty.call(message, "questionAdminReplyMessage"))
59444
59492
  $root.waproto.Message.QuestionAdminReplyMessage.encode(message.questionAdminReplyMessage, writer.uint32(/* id 106, wireType 2 =*/850).fork()).ldelim();
59493
+ if (message.questionResponseMessage != null && Object.hasOwnProperty.call(message, "questionResponseMessage"))
59494
+ $root.waproto.Message.QuestionResponseMessage.encode(message.questionResponseMessage, writer.uint32(/* id 107, wireType 2 =*/858).fork()).ldelim();
59445
59495
  return writer;
59446
59496
  };
59447
59497
 
@@ -59836,6 +59886,10 @@ $root.waproto = (function() {
59836
59886
  message.questionAdminReplyMessage = $root.waproto.Message.QuestionAdminReplyMessage.decode(reader, reader.uint32());
59837
59887
  break;
59838
59888
  }
59889
+ case 107: {
59890
+ message.questionResponseMessage = $root.waproto.Message.QuestionResponseMessage.decode(reader, reader.uint32());
59891
+ break;
59892
+ }
59839
59893
  default:
59840
59894
  reader.skipType(tag & 7);
59841
59895
  break;
@@ -60589,6 +60643,14 @@ $root.waproto = (function() {
60589
60643
  return "questionAdminReplyMessage." + error;
60590
60644
  }
60591
60645
  }
60646
+ if (message.questionResponseMessage != null && message.hasOwnProperty("questionResponseMessage")) {
60647
+ properties._questionResponseMessage = 1;
60648
+ {
60649
+ var error = $root.waproto.Message.QuestionResponseMessage.verify(message.questionResponseMessage);
60650
+ if (error)
60651
+ return "questionResponseMessage." + error;
60652
+ }
60653
+ }
60592
60654
  return null;
60593
60655
  };
60594
60656
 
@@ -61051,6 +61113,11 @@ $root.waproto = (function() {
61051
61113
  throw TypeError(".waproto.Message.questionAdminReplyMessage: object expected");
61052
61114
  message.questionAdminReplyMessage = $root.waproto.Message.QuestionAdminReplyMessage.fromObject(object.questionAdminReplyMessage);
61053
61115
  }
61116
+ if (object.questionResponseMessage != null) {
61117
+ if (typeof object.questionResponseMessage !== "object")
61118
+ throw TypeError(".waproto.Message.questionResponseMessage: object expected");
61119
+ message.questionResponseMessage = $root.waproto.Message.QuestionResponseMessage.fromObject(object.questionResponseMessage);
61120
+ }
61054
61121
  return message;
61055
61122
  };
61056
61123
 
@@ -61517,6 +61584,11 @@ $root.waproto = (function() {
61517
61584
  if (options.oneofs)
61518
61585
  object._questionAdminReplyMessage = "questionAdminReplyMessage";
61519
61586
  }
61587
+ if (message.questionResponseMessage != null && message.hasOwnProperty("questionResponseMessage")) {
61588
+ object.questionResponseMessage = $root.waproto.Message.QuestionResponseMessage.toObject(message.questionResponseMessage, options);
61589
+ if (options.oneofs)
61590
+ object._questionResponseMessage = "questionResponseMessage";
61591
+ }
61520
61592
  return object;
61521
61593
  };
61522
61594
 
@@ -105141,6 +105213,261 @@ $root.waproto = (function() {
105141
105213
  return QuestionAdminReplyMessage;
105142
105214
  })();
105143
105215
 
105216
+ Message.QuestionResponseMessage = (function() {
105217
+
105218
+ /**
105219
+ * Properties of a QuestionResponseMessage.
105220
+ * @memberof waproto.Message
105221
+ * @interface IQuestionResponseMessage
105222
+ * @property {waproto.IMessageKey|null} [key] QuestionResponseMessage key
105223
+ * @property {string|null} [text] QuestionResponseMessage text
105224
+ */
105225
+
105226
+ /**
105227
+ * Constructs a new QuestionResponseMessage.
105228
+ * @memberof waproto.Message
105229
+ * @classdesc Represents a QuestionResponseMessage.
105230
+ * @implements IQuestionResponseMessage
105231
+ * @constructor
105232
+ * @param {waproto.Message.IQuestionResponseMessage=} [properties] Properties to set
105233
+ */
105234
+ function QuestionResponseMessage(properties) {
105235
+ if (properties)
105236
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
105237
+ if (properties[keys[i]] != null)
105238
+ this[keys[i]] = properties[keys[i]];
105239
+ }
105240
+
105241
+ /**
105242
+ * QuestionResponseMessage key.
105243
+ * @member {waproto.IMessageKey|null|undefined} key
105244
+ * @memberof waproto.Message.QuestionResponseMessage
105245
+ * @instance
105246
+ */
105247
+ QuestionResponseMessage.prototype.key = null;
105248
+
105249
+ /**
105250
+ * QuestionResponseMessage text.
105251
+ * @member {string|null|undefined} text
105252
+ * @memberof waproto.Message.QuestionResponseMessage
105253
+ * @instance
105254
+ */
105255
+ QuestionResponseMessage.prototype.text = null;
105256
+
105257
+ // OneOf field names bound to virtual getters and setters
105258
+ var $oneOfFields;
105259
+
105260
+ // Virtual OneOf for proto3 optional field
105261
+ Object.defineProperty(QuestionResponseMessage.prototype, "_key", {
105262
+ get: $util.oneOfGetter($oneOfFields = ["key"]),
105263
+ set: $util.oneOfSetter($oneOfFields)
105264
+ });
105265
+
105266
+ // Virtual OneOf for proto3 optional field
105267
+ Object.defineProperty(QuestionResponseMessage.prototype, "_text", {
105268
+ get: $util.oneOfGetter($oneOfFields = ["text"]),
105269
+ set: $util.oneOfSetter($oneOfFields)
105270
+ });
105271
+
105272
+ /**
105273
+ * Creates a new QuestionResponseMessage instance using the specified properties.
105274
+ * @function create
105275
+ * @memberof waproto.Message.QuestionResponseMessage
105276
+ * @static
105277
+ * @param {waproto.Message.IQuestionResponseMessage=} [properties] Properties to set
105278
+ * @returns {waproto.Message.QuestionResponseMessage} QuestionResponseMessage instance
105279
+ */
105280
+ QuestionResponseMessage.create = function create(properties) {
105281
+ return new QuestionResponseMessage(properties);
105282
+ };
105283
+
105284
+ /**
105285
+ * Encodes the specified QuestionResponseMessage message. Does not implicitly {@link waproto.Message.QuestionResponseMessage.verify|verify} messages.
105286
+ * @function encode
105287
+ * @memberof waproto.Message.QuestionResponseMessage
105288
+ * @static
105289
+ * @param {waproto.Message.IQuestionResponseMessage} message QuestionResponseMessage message or plain object to encode
105290
+ * @param {$protobuf.Writer} [writer] Writer to encode to
105291
+ * @returns {$protobuf.Writer} Writer
105292
+ */
105293
+ QuestionResponseMessage.encode = function encode(message, writer) {
105294
+ if (!writer)
105295
+ writer = $Writer.create();
105296
+ if (message.key != null && Object.hasOwnProperty.call(message, "key"))
105297
+ $root.waproto.MessageKey.encode(message.key, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
105298
+ if (message.text != null && Object.hasOwnProperty.call(message, "text"))
105299
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.text);
105300
+ return writer;
105301
+ };
105302
+
105303
+ /**
105304
+ * Encodes the specified QuestionResponseMessage message, length delimited. Does not implicitly {@link waproto.Message.QuestionResponseMessage.verify|verify} messages.
105305
+ * @function encodeDelimited
105306
+ * @memberof waproto.Message.QuestionResponseMessage
105307
+ * @static
105308
+ * @param {waproto.Message.IQuestionResponseMessage} message QuestionResponseMessage message or plain object to encode
105309
+ * @param {$protobuf.Writer} [writer] Writer to encode to
105310
+ * @returns {$protobuf.Writer} Writer
105311
+ */
105312
+ QuestionResponseMessage.encodeDelimited = function encodeDelimited(message, writer) {
105313
+ return this.encode(message, writer).ldelim();
105314
+ };
105315
+
105316
+ /**
105317
+ * Decodes a QuestionResponseMessage message from the specified reader or buffer.
105318
+ * @function decode
105319
+ * @memberof waproto.Message.QuestionResponseMessage
105320
+ * @static
105321
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
105322
+ * @param {number} [length] Message length if known beforehand
105323
+ * @returns {waproto.Message.QuestionResponseMessage} QuestionResponseMessage
105324
+ * @throws {Error} If the payload is not a reader or valid buffer
105325
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
105326
+ */
105327
+ QuestionResponseMessage.decode = function decode(reader, length) {
105328
+ if (!(reader instanceof $Reader))
105329
+ reader = $Reader.create(reader);
105330
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.Message.QuestionResponseMessage();
105331
+ while (reader.pos < end) {
105332
+ var tag = reader.uint32();
105333
+ switch (tag >>> 3) {
105334
+ case 1: {
105335
+ message.key = $root.waproto.MessageKey.decode(reader, reader.uint32());
105336
+ break;
105337
+ }
105338
+ case 2: {
105339
+ message.text = reader.string();
105340
+ break;
105341
+ }
105342
+ default:
105343
+ reader.skipType(tag & 7);
105344
+ break;
105345
+ }
105346
+ }
105347
+ return message;
105348
+ };
105349
+
105350
+ /**
105351
+ * Decodes a QuestionResponseMessage message from the specified reader or buffer, length delimited.
105352
+ * @function decodeDelimited
105353
+ * @memberof waproto.Message.QuestionResponseMessage
105354
+ * @static
105355
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
105356
+ * @returns {waproto.Message.QuestionResponseMessage} QuestionResponseMessage
105357
+ * @throws {Error} If the payload is not a reader or valid buffer
105358
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
105359
+ */
105360
+ QuestionResponseMessage.decodeDelimited = function decodeDelimited(reader) {
105361
+ if (!(reader instanceof $Reader))
105362
+ reader = new $Reader(reader);
105363
+ return this.decode(reader, reader.uint32());
105364
+ };
105365
+
105366
+ /**
105367
+ * Verifies a QuestionResponseMessage message.
105368
+ * @function verify
105369
+ * @memberof waproto.Message.QuestionResponseMessage
105370
+ * @static
105371
+ * @param {Object.<string,*>} message Plain object to verify
105372
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
105373
+ */
105374
+ QuestionResponseMessage.verify = function verify(message) {
105375
+ if (typeof message !== "object" || message === null)
105376
+ return "object expected";
105377
+ var properties = {};
105378
+ if (message.key != null && message.hasOwnProperty("key")) {
105379
+ properties._key = 1;
105380
+ {
105381
+ var error = $root.waproto.MessageKey.verify(message.key);
105382
+ if (error)
105383
+ return "key." + error;
105384
+ }
105385
+ }
105386
+ if (message.text != null && message.hasOwnProperty("text")) {
105387
+ properties._text = 1;
105388
+ if (!$util.isString(message.text))
105389
+ return "text: string expected";
105390
+ }
105391
+ return null;
105392
+ };
105393
+
105394
+ /**
105395
+ * Creates a QuestionResponseMessage message from a plain object. Also converts values to their respective internal types.
105396
+ * @function fromObject
105397
+ * @memberof waproto.Message.QuestionResponseMessage
105398
+ * @static
105399
+ * @param {Object.<string,*>} object Plain object
105400
+ * @returns {waproto.Message.QuestionResponseMessage} QuestionResponseMessage
105401
+ */
105402
+ QuestionResponseMessage.fromObject = function fromObject(object) {
105403
+ if (object instanceof $root.waproto.Message.QuestionResponseMessage)
105404
+ return object;
105405
+ var message = new $root.waproto.Message.QuestionResponseMessage();
105406
+ if (object.key != null) {
105407
+ if (typeof object.key !== "object")
105408
+ throw TypeError(".waproto.Message.QuestionResponseMessage.key: object expected");
105409
+ message.key = $root.waproto.MessageKey.fromObject(object.key);
105410
+ }
105411
+ if (object.text != null)
105412
+ message.text = String(object.text);
105413
+ return message;
105414
+ };
105415
+
105416
+ /**
105417
+ * Creates a plain object from a QuestionResponseMessage message. Also converts values to other types if specified.
105418
+ * @function toObject
105419
+ * @memberof waproto.Message.QuestionResponseMessage
105420
+ * @static
105421
+ * @param {waproto.Message.QuestionResponseMessage} message QuestionResponseMessage
105422
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
105423
+ * @returns {Object.<string,*>} Plain object
105424
+ */
105425
+ QuestionResponseMessage.toObject = function toObject(message, options) {
105426
+ if (!options)
105427
+ options = {};
105428
+ var object = {};
105429
+ if (message.key != null && message.hasOwnProperty("key")) {
105430
+ object.key = $root.waproto.MessageKey.toObject(message.key, options);
105431
+ if (options.oneofs)
105432
+ object._key = "key";
105433
+ }
105434
+ if (message.text != null && message.hasOwnProperty("text")) {
105435
+ object.text = message.text;
105436
+ if (options.oneofs)
105437
+ object._text = "text";
105438
+ }
105439
+ return object;
105440
+ };
105441
+
105442
+ /**
105443
+ * Converts this QuestionResponseMessage to JSON.
105444
+ * @function toJSON
105445
+ * @memberof waproto.Message.QuestionResponseMessage
105446
+ * @instance
105447
+ * @returns {Object.<string,*>} JSON object
105448
+ */
105449
+ QuestionResponseMessage.prototype.toJSON = function toJSON() {
105450
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
105451
+ };
105452
+
105453
+ /**
105454
+ * Gets the default type url for QuestionResponseMessage
105455
+ * @function getTypeUrl
105456
+ * @memberof waproto.Message.QuestionResponseMessage
105457
+ * @static
105458
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
105459
+ * @returns {string} The default type url
105460
+ */
105461
+ QuestionResponseMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
105462
+ if (typeUrlPrefix === undefined) {
105463
+ typeUrlPrefix = "type.googleapis.com";
105464
+ }
105465
+ return typeUrlPrefix + "/waproto.Message.QuestionResponseMessage";
105466
+ };
105467
+
105468
+ return QuestionResponseMessage;
105469
+ })();
105470
+
105144
105471
  Message.ReactionMessage = (function() {
105145
105472
 
105146
105473
  /**
@@ -108141,6 +108468,7 @@ $root.waproto = (function() {
108141
108468
  case 0:
108142
108469
  case 1:
108143
108470
  case 2:
108471
+ case 3:
108144
108472
  break;
108145
108473
  }
108146
108474
  }
@@ -108188,6 +108516,10 @@ $root.waproto = (function() {
108188
108516
  case 2:
108189
108517
  message.type = 2;
108190
108518
  break;
108519
+ case "STATUS_QUESTION_ANSWER_RESHARE":
108520
+ case 3:
108521
+ message.type = 3;
108522
+ break;
108191
108523
  }
108192
108524
  return message;
108193
108525
  };
@@ -108256,12 +108588,14 @@ $root.waproto = (function() {
108256
108588
  * @property {number} UNKNOWN=0 UNKNOWN value
108257
108589
  * @property {number} STATUS_ADD_YOURS=1 STATUS_ADD_YOURS value
108258
108590
  * @property {number} STATUS_RESHARE=2 STATUS_RESHARE value
108591
+ * @property {number} STATUS_QUESTION_ANSWER_RESHARE=3 STATUS_QUESTION_ANSWER_RESHARE value
108259
108592
  */
108260
108593
  StatusNotificationMessage.StatusNotificationType = (function() {
108261
108594
  var valuesById = {}, values = Object.create(valuesById);
108262
108595
  values[valuesById[0] = "UNKNOWN"] = 0;
108263
108596
  values[valuesById[1] = "STATUS_ADD_YOURS"] = 1;
108264
108597
  values[valuesById[2] = "STATUS_RESHARE"] = 2;
108598
+ values[valuesById[3] = "STATUS_QUESTION_ANSWER_RESHARE"] = 3;
108265
108599
  return values;
108266
108600
  })();
108267
108601
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wppconnect/wa-proto",
3
- "version": "2.3000.1024617758",
3
+ "version": "2.3000.1024884592",
4
4
  "description": "Protobuf files from WhatsApp WEB",
5
5
  "license": "Apache-2.0",
6
6
  "author": {