This commit is contained in:
Mahdi Dibaiee 2015-07-27 09:25:27 +04:30
parent 2dd3dd2e80
commit c1c80f1b81
3 changed files with 2 additions and 2 deletions

BIN
hand-glow.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View File

@ -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);

View File

@ -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": {