@andrey4emk/npm-app-back-b24 0.8.3 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/sendMessage/wappi.js +4 -4
package/package.json
CHANGED
package/sendMessage/wappi.js
CHANGED
|
@@ -136,7 +136,7 @@ export class Wappi {
|
|
|
136
136
|
if (fileName.includes(".pdf") && messangerType === "max") {
|
|
137
137
|
await this.sendMessageWappi(messangerType, { phone: phone, message: message });
|
|
138
138
|
}
|
|
139
|
-
console.log("base64:", base64);
|
|
139
|
+
// console.log("base64:", base64);
|
|
140
140
|
let res = await fetch(url, {
|
|
141
141
|
method: "POST",
|
|
142
142
|
headers: {
|
|
@@ -265,8 +265,8 @@ export class Wappi {
|
|
|
265
265
|
let token = this.telegaAuth.token;
|
|
266
266
|
let profile_id = this.telegaAuth.profile_id;
|
|
267
267
|
let url = `https://wappi.pro/tapi/sync/contact/add?profile_id=${profile_id}`;
|
|
268
|
-
console.log("addContactTelegramWappi token,profile_id и url:");
|
|
269
|
-
console.log(token, profile_id, url);
|
|
268
|
+
// console.log("addContactTelegramWappi token,profile_id и url:");
|
|
269
|
+
// console.log(token, profile_id, url);
|
|
270
270
|
try {
|
|
271
271
|
let res = await fetch(url, {
|
|
272
272
|
method: "POST",
|
|
@@ -281,7 +281,7 @@ export class Wappi {
|
|
|
281
281
|
});
|
|
282
282
|
|
|
283
283
|
let data = await res.json();
|
|
284
|
-
console.log("addContactTelegramWappi data:", data);
|
|
284
|
+
// console.log("addContactTelegramWappi data:", data);
|
|
285
285
|
if (data.status !== "done") {
|
|
286
286
|
return { error: true, message: `Ошибка создания контакта ${phone} в Telegram`, data: data };
|
|
287
287
|
} else {
|