telegram-bot-api-nodejs
Advanced tools
Comparing version 1.0.55 to 1.0.57
13
index.js
@@ -558,10 +558,15 @@ import { readFileSync } from "fs"; | ||
return global.fetch(url, param).catch(function (cause) { | ||
const status = 0; | ||
const data = { | ||
throw new TelegramFetchDebugError(cause.message, { cause }, { | ||
url: removeTokenFromUrl(url), | ||
duration: Date.now() - start | ||
}; | ||
throw new TelegramError(cause.message, status, data, { cause }); | ||
}); | ||
}); | ||
} | ||
class TelegramFetchDebugError extends Error { | ||
data; | ||
constructor(message, options, data) { | ||
super(message, options); | ||
this.data = data; | ||
} | ||
} | ||
export const SUPPORTED_REACTION_EMOJI = ["๐", "๐", "\u2764\ufe0f" // red heart | ||
@@ -568,0 +573,0 @@ , |
{ | ||
"name": "telegram-bot-api-nodejs", | ||
"version": "1.0.55", | ||
"version": "1.0.57", | ||
"description": "Telegram Bot API client for nodejs", | ||
@@ -27,5 +27,5 @@ "type": "module", | ||
"devDependencies": { | ||
"@types/node": "^22.10.1", | ||
"@types/node": "^22.10.2", | ||
"typescript": "^5.7.2" | ||
} | ||
} |
79933
1848