@andrey4emk/npm-app-back-b24 0.6.1 → 0.6.3
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 +3 -2
package/package.json
CHANGED
package/sendMessage/wappi.js
CHANGED
|
@@ -219,7 +219,8 @@ export class Wappi {
|
|
|
219
219
|
let token = this.telegaAuth.token;
|
|
220
220
|
let profile_id = this.telegaAuth.profile_id;
|
|
221
221
|
let url = `https://wappi.pro/tapi/sync/contact/add?profile_id=${profile_id}`;
|
|
222
|
-
|
|
222
|
+
console.log("addContactTelegramWappi token,profile_id и url:");
|
|
223
|
+
console.log(token, profile_id, url);
|
|
223
224
|
try {
|
|
224
225
|
let res = await fetch(url, {
|
|
225
226
|
method: "POST",
|
|
@@ -234,7 +235,7 @@ export class Wappi {
|
|
|
234
235
|
});
|
|
235
236
|
|
|
236
237
|
let data = await res.json();
|
|
237
|
-
|
|
238
|
+
console.log("addContactTelegramWappi data:", data);
|
|
238
239
|
if (data.status !== "done") {
|
|
239
240
|
return { error: true, message: `Ошибка создания контакта ${phone} в Telegram`, data: data };
|
|
240
241
|
} else {
|