fix(whatsapp.gblib): Fix in sending numbers with plus sign.

This commit is contained in:
Rodrigo Rodriguez 2023-09-21 11:15:09 -03:00
parent edd800f36e
commit 54612054cc

View file

@ -900,6 +900,7 @@ export class WhatsappDirectLine extends GBService {
switch (this.provider) {
case 'GeneralBots':
to = to.replace('+', '');
if (to.indexOf('@') == -1) {
if (to.length == 18) {
to = to + '@g.us';