mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-29 13:27:44 +00:00
doc: Update ParseError message; error might not be from Telegram
This commit is contained in:
parent
ea420edad9
commit
772609c334
@ -250,7 +250,7 @@ class TelegramBot extends EventEmitter {
|
|||||||
try {
|
try {
|
||||||
data = resp.body = JSON.parse(resp.body);
|
data = resp.body = JSON.parse(resp.body);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
throw new errors.ParseError(`Error parsing Telegram response: ${resp.body}`, resp);
|
throw new errors.ParseError(`Error parsing response: ${resp.body}`, resp);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.ok) {
|
if (data.ok) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user