Fix #8
This commit is contained in:
parent
2dd3dd2e80
commit
c1c80f1b81
BIN
hand-glow.jpg
Normal file
BIN
hand-glow.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
@ -16,7 +16,7 @@ export default function fetch(path, data = {}) {
|
||||
.attach(files)
|
||||
.end(response => {
|
||||
if (response.statusType === 4 || response.statusType === 5 ||
|
||||
!response.body.ok) {
|
||||
!response.body || !response.body.ok) {
|
||||
reject(response);
|
||||
} else {
|
||||
resolve(response.body);
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "telegram-api",
|
||||
"version": "0.5.20",
|
||||
"version": "0.5.21",
|
||||
"description": "Control Telegram bots easily using the new Telegram API",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
Loading…
Reference in New Issue
Block a user