We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d47cc5d commit 0c4c816Copy full SHA for 0c4c816
1 file changed
src/whatsapp/services/whatsapp.service.ts
@@ -1844,8 +1844,10 @@ export class WAStartupService {
1844
private async sendMessageWithTyping<T = proto.IMessage>(number: string, message: T, options?: Options) {
1845
this.logger.verbose('Sending message with typing');
1846
1847
+ this.logger.verbose(`Check if number "${number}" is WhatsApp`);
1848
const isWA = (await this.whatsappNumber({ numbers: [number] }))?.shift();
1849
1850
+ this.logger.verbose(`Exists: "${isWA.exists}" | jid: ${isWA.jid}`);
1851
if (!isWA.exists && !isJidGroup(isWA.jid) && !isWA.jid.includes('@broadcast')) {
1852
throw new BadRequestException(isWA);
1853
}
0 commit comments