fix(whatsapp.gblib): Fix in bot switching.
This commit is contained in:
parent
8e87b24190
commit
99e6cbc742
1 changed files with 1 additions and 0 deletions
|
@ -760,6 +760,7 @@ export class WhatsappDirectLine extends GBService {
|
||||||
switch (this.provider) {
|
switch (this.provider) {
|
||||||
case 'GeneralBots':
|
case 'GeneralBots':
|
||||||
const attachment = await MessageMedia.fromUrl(url);
|
const attachment = await MessageMedia.fromUrl(url);
|
||||||
|
to = to.replace('+', '');
|
||||||
if (to.indexOf('@') == -1) {
|
if (to.indexOf('@') == -1) {
|
||||||
if (to.length == 18) {
|
if (to.length == 18) {
|
||||||
to = to + '@g.us';
|
to = to + '@g.us';
|
||||||
|
|
Loading…
Add table
Reference in a new issue