@veluga/telegram
Advanced tools
Comparing version 0.0.0-alpha.1 to 0.0.0-alpha.2
@@ -14,3 +14,3 @@ import FormData from 'form-data'; | ||
protected static readonly defaultConfig: Required<BotConfig>; | ||
protected readonly config: Required<BotConfig>; | ||
readonly config: Required<BotConfig>; | ||
readonly client: BotClient; | ||
@@ -17,0 +17,0 @@ protected readonly LONGPOLL_TIMEOUT = 25; |
@@ -103,3 +103,5 @@ "use strict"; | ||
try { | ||
const { data, status, statusText } = await axios_1.default.post(url, { | ||
const { data, status, statusText } = await axios_1.default.request({ | ||
method: 'POST', | ||
url, | ||
data: form, | ||
@@ -106,0 +108,0 @@ headers: form.getHeaders(), |
@@ -9,3 +9,3 @@ export { Bot } from './bot'; | ||
/** | ||
* Utilites | ||
* Utilities | ||
*/ | ||
@@ -15,1 +15,2 @@ export { sendMessageUniversal } from './utils/sendMessageUniversal'; | ||
export * from './utils/extractBotCommand'; | ||
export * from './utils/downloadFile'; |
@@ -29,3 +29,3 @@ "use strict"; | ||
/** | ||
* Utilites | ||
* Utilities | ||
*/ | ||
@@ -36,1 +36,2 @@ var sendMessageUniversal_1 = require("./utils/sendMessageUniversal"); | ||
__exportStar(require("./utils/extractBotCommand"), exports); | ||
__exportStar(require("./utils/downloadFile"), exports); |
{ | ||
"name": "@veluga/telegram", | ||
"version": "0.0.0-alpha.1", | ||
"version": "0.0.0-alpha.2", | ||
"description": "Library for Telegram Bot API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
319752
273
7876