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)
|
.attach(files)
|
||||||
.end(response => {
|
.end(response => {
|
||||||
if (response.statusType === 4 || response.statusType === 5 ||
|
if (response.statusType === 4 || response.statusType === 5 ||
|
||||||
!response.body.ok) {
|
!response.body || !response.body.ok) {
|
||||||
reject(response);
|
reject(response);
|
||||||
} else {
|
} else {
|
||||||
resolve(response.body);
|
resolve(response.body);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "telegram-api",
|
"name": "telegram-api",
|
||||||
"version": "0.5.20",
|
"version": "0.5.21",
|
||||||
"description": "Control Telegram bots easily using the new Telegram API",
|
"description": "Control Telegram bots easily using the new Telegram API",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Loading…
Reference in New Issue
Block a user