fix(whatsapp.gblib): Fix in bot switching.

This commit is contained in:
Rodrigo Rodriguez 2023-09-03 16:38:40 -03:00
parent 8e87b24190
commit 99e6cbc742

View file

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