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:
@@ -346,4 +346,12 @@ export const getCodeFromWSError = (error: Error) => {
|
||||
}
|
||||
|
||||
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