@azteam/telegram-api
Advanced tools
Comparing version 1.1.14 to 1.1.15
{ | ||
"name": "@azteam/telegram-api", | ||
"version": "1.1.14", | ||
"version": "1.1.15", | ||
"description": "", | ||
@@ -19,4 +19,4 @@ "main": "src/index.js", | ||
"@azteam/error": "1.0.15", | ||
"@azteam/http-client": "1.0.75" | ||
"@azteam/http-client": "1.0.77" | ||
} | ||
} |
@@ -18,3 +18,3 @@ import HttpClient from '@azteam/http-client'; | ||
async sendFile(id, file, option = {}) { | ||
async sendFile(id, fileBuffer, option = {}) { | ||
if (Array.isArray(message)) { | ||
@@ -24,3 +24,3 @@ message = message.join('\n'); | ||
return this.client.post(this.endpoint + '/sendDocument', { | ||
return this.client.upload(this.endpoint + '/sendDocument', { | ||
chat_id: id, | ||
@@ -27,0 +27,0 @@ document: file, |
4075
+ Added@azteam/http-client@1.0.77(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedform-data@4.0.1(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
- Removed@azteam/http-client@1.0.75(transitive)
Updated@azteam/http-client@1.0.77