telegram-bot-api-nodejs 1.0.46 → 1.0.47
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/index.js +4 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -525,7 +525,10 @@ export function parseResponse(response) {
|
|
|
525
525
|
}
|
|
526
526
|
const error_code = Number(data.error_code ?? 0);
|
|
527
527
|
const description = String(data.description ?? "");
|
|
528
|
-
const parameters = data.parameters || {}
|
|
528
|
+
const parameters = Object.assign(data.parameters || {}, {
|
|
529
|
+
text,
|
|
530
|
+
url: response.url.replace(/bot[\d]+\:[^\/]+/ig, "*")
|
|
531
|
+
});
|
|
529
532
|
throw new TelegramError(description, error_code, parameters);
|
|
530
533
|
});
|
|
531
534
|
}
|