mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Fix export issue
This commit is contained in:
@@ -100,7 +100,7 @@ export interface MessageStatusUpdate {
|
|||||||
/** Message IDs read/delivered */
|
/** Message IDs read/delivered */
|
||||||
ids: string[]
|
ids: string[]
|
||||||
/** Status of the Message IDs */
|
/** Status of the Message IDs */
|
||||||
type: proto.WebMessageInfo.WEB_MESSAGE_INFO_STATUS
|
type: WA_MESSAGE_STATUS_TYPE
|
||||||
}
|
}
|
||||||
export enum GroupSettingChange {
|
export enum GroupSettingChange {
|
||||||
messageSend = 'announcement',
|
messageSend = 'announcement',
|
||||||
@@ -139,8 +139,8 @@ export interface WALocationMessage {
|
|||||||
degreesLongitude: number
|
degreesLongitude: number
|
||||||
address?: string
|
address?: string
|
||||||
}
|
}
|
||||||
export const WA_MESSAGE_STUB_TYPE = proto.WebMessageInfo.WEB_MESSAGE_INFO_STUBTYPE
|
export import WA_MESSAGE_STUB_TYPE = proto.WebMessageInfo.WEB_MESSAGE_INFO_STUBTYPE
|
||||||
export const WA_MESSAGE_STATUS_TYPE = proto.WebMessageInfo.WEB_MESSAGE_INFO_STATUS
|
export import WA_MESSAGE_STATUS_TYPE = proto.WebMessageInfo.WEB_MESSAGE_INFO_STATUS
|
||||||
|
|
||||||
/** Reverse stub type dictionary */
|
/** Reverse stub type dictionary */
|
||||||
export const WAMessageType = function () {
|
export const WAMessageType = function () {
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ console.log ('parsing ' + wsMessages.length + ' messages')
|
|||||||
const list = wsMessages.map ((item, i) => {
|
const list = wsMessages.map ((item, i) => {
|
||||||
const buffer = Buffer.from (item.data, 'base64')
|
const buffer = Buffer.from (item.data, 'base64')
|
||||||
try {
|
try {
|
||||||
|
|
||||||
const [tag, json, binaryTags] = decrypt (buffer)
|
const [tag, json, binaryTags] = decrypt (buffer)
|
||||||
return {tag, json: JSON.stringify(json), binaryTags}
|
return {tag, json: JSON.stringify(json), binaryTags}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -44,7 +45,7 @@ const list = wsMessages.map ((item, i) => {
|
|||||||
const [tag, json, binaryTags] = decrypt (item.data)
|
const [tag, json, binaryTags] = decrypt (item.data)
|
||||||
return {tag, json: JSON.stringify(json), binaryTags}
|
return {tag, json: JSON.stringify(json), binaryTags}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log ('error in decoding: ' + error)
|
console.log ('error in decoding: ' + item.data + ': ' + error)
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user