diff --git a/WAProto/WAProto.proto b/WAProto/WAProto.proto index d91d73e7..e9390b90 100644 --- a/WAProto/WAProto.proto +++ b/WAProto/WAProto.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package proto; -/// WhatsApp Version: 2.3000.1034427372 +/// WhatsApp Version: 2.3000.1034530777 message ADVDeviceIdentity { optional uint32 rawId = 1; @@ -3967,6 +3967,7 @@ message MsgOpaqueData { optional string quarantineExtractedText = 48; optional int64 pollEndTime = 49; optional bool pollHideVoterNames = 50; + optional bool pollAllowAddOption = 52; message EventLocation { optional double degreesLatitude = 1; optional double degreesLongitude = 2; diff --git a/WAProto/index.d.ts b/WAProto/index.d.ts index dea0c0df..c52053ee 100644 --- a/WAProto/index.d.ts +++ b/WAProto/index.d.ts @@ -10114,6 +10114,7 @@ export namespace proto { quarantineExtractedText?: (string|null); pollEndTime?: (number|Long|null); pollHideVoterNames?: (boolean|null); + pollAllowAddOption?: (boolean|null); } class MsgOpaqueData implements IMsgOpaqueData { @@ -10164,6 +10165,7 @@ export namespace proto { public quarantineExtractedText?: (string|null); public pollEndTime?: (number|Long|null); public pollHideVoterNames?: (boolean|null); + public pollAllowAddOption?: (boolean|null); public static create(properties?: proto.IMsgOpaqueData): proto.MsgOpaqueData; public static encode(m: proto.IMsgOpaqueData, w?: $protobuf.Writer): $protobuf.Writer; public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.MsgOpaqueData; diff --git a/WAProto/index.js b/WAProto/index.js index 91c9c948..aee5d172 100644 --- a/WAProto/index.js +++ b/WAProto/index.js @@ -70846,6 +70846,7 @@ export const proto = $root.proto = (() => { MsgOpaqueData.prototype.quarantineExtractedText = null; MsgOpaqueData.prototype.pollEndTime = null; MsgOpaqueData.prototype.pollHideVoterNames = null; + MsgOpaqueData.prototype.pollAllowAddOption = null; let $oneOfFields; @@ -71119,6 +71120,12 @@ export const proto = $root.proto = (() => { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(MsgOpaqueData.prototype, "_pollAllowAddOption", { + get: $util.oneOfGetter($oneOfFields = ["pollAllowAddOption"]), + set: $util.oneOfSetter($oneOfFields) + }); + MsgOpaqueData.create = function create(properties) { return new MsgOpaqueData(properties); }; @@ -71220,6 +71227,8 @@ export const proto = $root.proto = (() => { w.uint32(400).bool(m.pollHideVoterNames); if (m.originalSelfAuthor != null && Object.hasOwnProperty.call(m, "originalSelfAuthor")) w.uint32(410).string(m.originalSelfAuthor); + if (m.pollAllowAddOption != null && Object.hasOwnProperty.call(m, "pollAllowAddOption")) + w.uint32(416).bool(m.pollAllowAddOption); return w; }; @@ -71418,6 +71427,10 @@ export const proto = $root.proto = (() => { m.pollHideVoterNames = r.bool(); break; } + case 52: { + m.pollAllowAddOption = r.bool(); + break; + } default: r.skipType(t & 7); break; @@ -71663,6 +71676,9 @@ export const proto = $root.proto = (() => { if (d.pollHideVoterNames != null) { m.pollHideVoterNames = Boolean(d.pollHideVoterNames); } + if (d.pollAllowAddOption != null) { + m.pollAllowAddOption = Boolean(d.pollAllowAddOption); + } return m; }; @@ -71916,6 +71932,11 @@ export const proto = $root.proto = (() => { if (o.oneofs) d._originalSelfAuthor = "originalSelfAuthor"; } + if (m.pollAllowAddOption != null && m.hasOwnProperty("pollAllowAddOption")) { + d.pollAllowAddOption = m.pollAllowAddOption; + if (o.oneofs) + d._pollAllowAddOption = "pollAllowAddOption"; + } return d; }; diff --git a/src/Defaults/baileys-version.json b/src/Defaults/baileys-version.json index e251c369..ca7623ec 100644 --- a/src/Defaults/baileys-version.json +++ b/src/Defaults/baileys-version.json @@ -1 +1 @@ -{"version":[2,3000,1034439448]} +{"version": [2, 3000, 1034530777]}