build
This commit is contained in:
parent
10a8af0431
commit
82961d7fa5
@ -47,7 +47,7 @@ function fetch(path) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_unirest2['default'].post('https://api.telegram.org/bot' + path).field(data).attach(files).end(function (response) {
|
_unirest2['default'].post('https://api.telegram.org/bot' + path).field(data).attach(files).end(function (response) {
|
||||||
if (response.statusType === 4 || response.statusType === 5 || !response.body.ok) {
|
if (response.statusType === 4 || response.statusType === 5 || !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.21",
|
"version": "0.5.22",
|
||||||
"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