mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: add check WA business account
This commit is contained in:
@@ -347,3 +347,11 @@ export const getCodeFromWSError = (error: Error) => {
|
|||||||
|
|
||||||
return statusCode
|
return statusCode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Is the given platform WA business
|
||||||
|
* @param platform AuthenticationCreds.platform
|
||||||
|
*/
|
||||||
|
export const isWABusinessPlatform = (platform: string) => {
|
||||||
|
return platform === 'smbi' || platform === 'smba'
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user