mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fixes
This commit is contained in:
@@ -218,7 +218,7 @@ export class WAConnection extends EventEmitter {
|
||||
const response = await this.query ({json, binaryTags, tag, timeoutMs, expect200, waitForOpen})
|
||||
return response
|
||||
}
|
||||
throw new BaileysError(`Unexpected status code in '${json[0] || 'generic query'}': ${response.status}`, {query: json})
|
||||
throw new BaileysError(`Unexpected status code in '${json[0] || 'generic query'}': ${response.status}`, {query: json, status: response.status})
|
||||
}
|
||||
return response
|
||||
}
|
||||
|
||||
@@ -201,6 +201,9 @@ export enum WAMetric {
|
||||
queryLabel = 36,
|
||||
queryQuickReply = 39
|
||||
}
|
||||
|
||||
export const STORIES_JID = 'status@broadcast'
|
||||
|
||||
export enum WAFlag {
|
||||
ignore = 1 << 7,
|
||||
acknowledge = 1 << 6,
|
||||
|
||||
Reference in New Issue
Block a user