Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

puregram

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

puregram - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

3

package.json
{
"name": "puregram",
"version": "1.1.3",
"version": "1.1.4",
"main": "src/index.js",

@@ -13,2 +13,3 @@ "repository": {

"debug": "^4.1.1",
"form-data": "^3.0.0",
"middleware-io": "^2.1.0",

@@ -15,0 +16,0 @@ "node-fetch": "^2.6.0"

let fetch = require('node-fetch');
let FormData = require('form-data');
let { Readable } = require('stream');
let fs = require('fs');

@@ -61,6 +64,14 @@ let APIError = require('./attachments/apierror');

try {
let body = null;
if (query instanceof FormData) {
body = query;
} else if (type === 'query') {
body = JSON.stringify(query);
}
let response = await fetch(url, {
method: 'POST',
headers,
body: type === 'query' ? JSON.stringify(query) : null,
headers: body instanceof FormData ? null : headers,
body,
agent: this.agent

@@ -110,5 +121,9 @@ });

sendPhoto(params = {}) {
return this.request({
let { photo } = params;
return getResponse(photo, {
method: 'sendPhoto',
query: params,
key: 'photo',
params,
telegram: this.telegram
});

@@ -118,5 +133,9 @@ }

sendAudio(params = {}) {
return this.request({
let { audio } = params;
return getResponse(audio, {
method: 'sendAudio',
query: params,
key: 'audio',
params,
telegram: this.telegram
});

@@ -126,5 +145,9 @@ }

sendDocument(params = {}) {
return this.request({
let { document } = params;
return getResponse(document, {
method: 'sendDocument',
query: params,
key: 'document',
params,
telegram: this.telegram
});

@@ -134,5 +157,9 @@ }

sendVideo(params = {}) {
return this.request({
let { video } = params;
return getResponse(video, {
method: 'sendVideo',
query: params,
key: 'video',
params,
telegram: this.telegram
});

@@ -142,5 +169,9 @@ }

sendAnimation(params = {}) {
return this.request({
let { animation } = params;
return getResponse(animation, {
method: 'sendAnimation',
query: params,
key: 'animation',
params,
telegram: this.telegram
});

@@ -150,5 +181,9 @@ }

sendVoice(params = {}) {
return this.request({
let { voice } = params;
return getResponse(voice, {
method: 'sendVoice',
query: params,
key: 'voice',
params,
telegram: this.telegram
});

@@ -158,5 +193,9 @@ }

sendVideoNote(params = {}) {
return this.request({
let { videoNote } = params;
return getResponse(videoNote, {
method: 'sendVideoNote',
query: params,
key: 'videonote',
params,
telegram: this.telegram
});

@@ -166,5 +205,9 @@ }

sendMediaGroup(params = {}) {
return this.request({
let { media } = params;
return getResponse(media, {
method: 'sendMediaGroup',
query: params,
key: 'media',
params,
telegram: this.telegram
});

@@ -232,5 +275,3 @@ }

method: 'getFile',
query: {
file_id: id,
},
query: { file_id: id },
});

@@ -598,2 +639,46 @@ }

async function getResponse(value, { method, key, params, telegram }) {
let response = null;
let form = null;
if (value instanceof Readable) {
form = new FormData();
form.append(key, value);
} else if (Buffer.isBuffer(value)) {
form = new FormData();
form.append(key, value, { filename: key + this.chatId });
} else if (typeof value === 'string' && !value.startsWith('http')) {
form = new FormData();
let stream = fs.createReadStream(value);
form.append(key, stream);
}
if (form && key in params) {
let { [key]: _, ...tempParams } = params;
params = tempParams;
}
if (form) {
for (let [fKey, fValue] of Object.entries(params)) {
form.append(fKey, fValue);
}
response = await telegram.api.request({
method,
query: form
});
} else {
response = await telegram.api.request({
method,
query: params
});
}
return response;
}
module.exports = API;

@@ -41,3 +41,3 @@ import Params from "../../typings/params";

*/
public sendPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;
public sendPhoto(photo: Interfaces.IInputFile | string, params: Params.ISendPhotoParams): Promise<MessageContext>;

@@ -58,3 +58,3 @@ public replyWithPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;

*/
public sendAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;
public sendAudio(audio: Interfaces.IInputFile | string, params: Params.ISendAudioParams): Promise<MessageContext>;

@@ -73,3 +73,3 @@ public replyWithAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;

*/
public sendVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;
public sendVideo(video: Interfaces.IInputFile | string, params: Params.ISendVideoParams): Promise<MessageContext>;

@@ -87,3 +87,3 @@ public replyWithVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;

*/
public sendAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;
public sendAnimation(animation: Interfaces.IInputFile | string, params: Params.ISendAnimationParams): Promise<MessageContext>;

@@ -99,3 +99,3 @@ public replyWithAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;

*/
public sendVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;
public sendVideoNote(videoNote: Interfaces.IInputFile | string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

@@ -115,3 +115,3 @@ public replyWithVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

*/
public sendVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;
public sendVoice(voice: Interfaces.IInputFile | string, params: Params.ISendVoiceParams): Promise<MessageContext>;

@@ -125,3 +125,3 @@ public replyWithVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;

*/
public sendMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;
public sendMediaGroup(mediaGroup: Interfaces.IInputFile | string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -128,0 +128,0 @@ public replyWithMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -40,3 +40,3 @@ import Params from "../../typings/params";

*/
public sendPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;
public sendPhoto(photo: Interfaces.IInputFile | string, params: Params.ISendPhotoParams): Promise<MessageContext>;

@@ -57,3 +57,3 @@ public replyWithPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;

*/
public sendAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;
public sendAudio(audio: Interfaces.IInputFile | string, params: Params.ISendAudioParams): Promise<MessageContext>;

@@ -72,3 +72,3 @@ public replyWithAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;

*/
public sendVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;
public sendVideo(video: Interfaces.IInputFile | string, params: Params.ISendVideoParams): Promise<MessageContext>;

@@ -86,3 +86,3 @@ public replyWithVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;

*/
public sendAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;
public sendAnimation(animation: Interfaces.IInputFile | string, params: Params.ISendAnimationParams): Promise<MessageContext>;

@@ -98,3 +98,3 @@ public replyWithAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;

*/
public sendVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;
public sendVideoNote(videoNote: Interfaces.IInputFile | string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

@@ -114,3 +114,3 @@ public replyWithVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

*/
public sendVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;
public sendVoice(voice: Interfaces.IInputFile | string, params: Params.ISendVoiceParams): Promise<MessageContext>;

@@ -124,3 +124,3 @@ public replyWithVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;

*/
public sendMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;
public sendMediaGroup(mediaGroup: Interfaces.IInputFile | string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -127,0 +127,0 @@ public replyWithMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -177,3 +177,3 @@ import Params from "../../typings/params";

*/
public sendPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;
public sendPhoto(photo: Interfaces.IInputFile | string, params: Params.ISendPhotoParams): Promise<MessageContext>;

@@ -194,3 +194,3 @@ public replyWithPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;

*/
public sendAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;
public sendAudio(audio: Interfaces.IInputFile | string, params: Params.ISendAudioParams): Promise<MessageContext>;

@@ -209,3 +209,3 @@ public replyWithAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;

*/
public sendVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;
public sendVideo(video: Interfaces.IInputFile | string, params: Params.ISendVideoParams): Promise<MessageContext>;

@@ -223,3 +223,3 @@ public replyWithVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;

*/
public sendAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;
public sendAnimation(animation: Interfaces.IInputFile | string, params: Params.ISendAnimationParams): Promise<MessageContext>;

@@ -235,3 +235,3 @@ public replyWithAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;

*/
public sendVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;
public sendVideoNote(videoNote: Interfaces.IInputFile | string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

@@ -251,3 +251,3 @@ public replyWithVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

*/
public sendVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;
public sendVoice(voice: Interfaces.IInputFile | string, params: Params.ISendVoiceParams): Promise<MessageContext>;

@@ -261,3 +261,3 @@ public replyWithVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;

*/
public sendMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;
public sendMediaGroup(mediaGroup: Interfaces.IInputFile | string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -264,0 +264,0 @@ public replyWithMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -37,3 +37,3 @@ import Params from "../../typings/params";

*/
public sendPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;
public sendPhoto(photo: Interfaces.IInputFile | string, params: Params.ISendPhotoParams): Promise<MessageContext>;

@@ -54,3 +54,3 @@ public replyWithPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;

*/
public sendAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;
public sendAudio(audio: Interfaces.IInputFile | string, params: Params.ISendAudioParams): Promise<MessageContext>;

@@ -69,3 +69,3 @@ public replyWithAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;

*/
public sendVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;
public sendVideo(video: Interfaces.IInputFile | string, params: Params.ISendVideoParams): Promise<MessageContext>;

@@ -83,3 +83,3 @@ public replyWithVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;

*/
public sendAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;
public sendAnimation(animation: Interfaces.IInputFile | string, params: Params.ISendAnimationParams): Promise<MessageContext>;

@@ -95,3 +95,3 @@ public replyWithAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;

*/
public sendVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;
public sendVideoNote(videoNote: Interfaces.IInputFile | string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

@@ -111,3 +111,3 @@ public replyWithVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

*/
public sendVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;
public sendVoice(voice: Interfaces.IInputFile | string, params: Params.ISendVoiceParams): Promise<MessageContext>;

@@ -121,3 +121,3 @@ public replyWithVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;

*/
public sendMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;
public sendMediaGroup(mediaGroup: Interfaces.IInputFile | string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -124,0 +124,0 @@ public replyWithMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -39,3 +39,3 @@ import Params from "../../typings/params";

*/
public sendPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;
public sendPhoto(photo: Interfaces.IInputFile | string, params: Params.ISendPhotoParams): Promise<MessageContext>;

@@ -56,3 +56,3 @@ public replyWithPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;

*/
public sendAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;
public sendAudio(audio: Interfaces.IInputFile | string, params: Params.ISendAudioParams): Promise<MessageContext>;

@@ -71,3 +71,3 @@ public replyWithAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;

*/
public sendVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;
public sendVideo(video: Interfaces.IInputFile | string, params: Params.ISendVideoParams): Promise<MessageContext>;

@@ -85,3 +85,3 @@ public replyWithVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;

*/
public sendAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;
public sendAnimation(animation: Interfaces.IInputFile | string, params: Params.ISendAnimationParams): Promise<MessageContext>;

@@ -97,3 +97,3 @@ public replyWithAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;

*/
public sendVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;
public sendVideoNote(videoNote: Interfaces.IInputFile | string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

@@ -113,3 +113,3 @@ public replyWithVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

*/
public sendVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;
public sendVoice(voice: Interfaces.IInputFile | string, params: Params.ISendVoiceParams): Promise<MessageContext>;

@@ -123,3 +123,3 @@ public replyWithVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;

*/
public sendMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;
public sendMediaGroup(mediaGroup: Interfaces.IInputFile | string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -126,0 +126,0 @@ public replyWithMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -171,3 +171,3 @@ import Params from "../../typings/params";

*/
public sendPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;
public sendPhoto(photo: Interfaces.IInputFile | string, params: Params.ISendPhotoParams): Promise<MessageContext>;

@@ -188,3 +188,3 @@ public replyWithPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;

*/
public sendAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;
public sendAudio(audio: Interfaces.IInputFile | string, params: Params.ISendAudioParams): Promise<MessageContext>;

@@ -203,3 +203,3 @@ public replyWithAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;

*/
public sendVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;
public sendVideo(video: Interfaces.IInputFile | string, params: Params.ISendVideoParams): Promise<MessageContext>;

@@ -217,3 +217,3 @@ public replyWithVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;

*/
public sendAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;
public sendAnimation(animation: Interfaces.IInputFile | string, params: Params.ISendAnimationParams): Promise<MessageContext>;

@@ -229,3 +229,3 @@ public replyWithAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;

*/
public sendVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;
public sendVideoNote(videoNote: Interfaces.IInputFile | string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

@@ -245,3 +245,3 @@ public replyWithVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

*/
public sendVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;
public sendVoice(voice: Interfaces.IInputFile | string, params: Params.ISendVoiceParams): Promise<MessageContext>;

@@ -255,3 +255,3 @@ public replyWithVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;

*/
public sendMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;
public sendMediaGroup(mediaGroup: Interfaces.IInputFile | string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -258,0 +258,0 @@ public replyWithMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -171,3 +171,3 @@ import Params from "../../typings/params";

*/
public sendPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;
public sendPhoto(photo: Interfaces.IInputFile | string, params: Params.ISendPhotoParams): Promise<MessageContext>;

@@ -188,3 +188,3 @@ public replyWithPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;

*/
public sendAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;
public sendAudio(audio: Interfaces.IInputFile | string, params: Params.ISendAudioParams): Promise<MessageContext>;

@@ -203,3 +203,3 @@ public replyWithAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;

*/
public sendVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;
public sendVideo(video: Interfaces.IInputFile | string, params: Params.ISendVideoParams): Promise<MessageContext>;

@@ -217,3 +217,3 @@ public replyWithVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;

*/
public sendAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;
public sendAnimation(animation: Interfaces.IInputFile | string, params: Params.ISendAnimationParams): Promise<MessageContext>;

@@ -229,3 +229,3 @@ public replyWithAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;

*/
public sendVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;
public sendVideoNote(videoNote: Interfaces.IInputFile | string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

@@ -245,3 +245,3 @@ public replyWithVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

*/
public sendVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;
public sendVoice(voice: Interfaces.IInputFile | string, params: Params.ISendVoiceParams): Promise<MessageContext>;

@@ -255,3 +255,3 @@ public replyWithVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;

*/
public sendMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;
public sendMediaGroup(mediaGroup: Interfaces.IInputFile | string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -258,0 +258,0 @@ public replyWithMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -39,3 +39,3 @@ import Params from "../../typings/params";

*/
public sendPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;
public sendPhoto(photo: Interfaces.IInputFile | string, params: Params.ISendPhotoParams): Promise<MessageContext>;

@@ -56,3 +56,3 @@ public replyWithPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;

*/
public sendAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;
public sendAudio(audio: Interfaces.IInputFile | string, params: Params.ISendAudioParams): Promise<MessageContext>;

@@ -71,3 +71,3 @@ public replyWithAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;

*/
public sendVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;
public sendVideo(video: Interfaces.IInputFile | string, params: Params.ISendVideoParams): Promise<MessageContext>;

@@ -85,3 +85,3 @@ public replyWithVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;

*/
public sendAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;
public sendAnimation(animation: Interfaces.IInputFile | string, params: Params.ISendAnimationParams): Promise<MessageContext>;

@@ -97,3 +97,3 @@ public replyWithAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;

*/
public sendVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;
public sendVideoNote(videoNote: Interfaces.IInputFile | string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

@@ -113,3 +113,3 @@ public replyWithVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

*/
public sendVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;
public sendVoice(voice: Interfaces.IInputFile | string, params: Params.ISendVoiceParams): Promise<MessageContext>;

@@ -123,3 +123,3 @@ public replyWithVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;

*/
public sendMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;
public sendMediaGroup(mediaGroup: Interfaces.IInputFile | string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -126,0 +126,0 @@ public replyWithMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -37,3 +37,3 @@ import Params from "../../typings/params";

*/
public sendPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;
public sendPhoto(photo: Interfaces.IInputFile | string, params: Params.ISendPhotoParams): Promise<MessageContext>;

@@ -54,3 +54,3 @@ public replyWithPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;

*/
public sendAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;
public sendAudio(audio: Interfaces.IInputFile | string, params: Params.ISendAudioParams): Promise<MessageContext>;

@@ -69,3 +69,3 @@ public replyWithAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;

*/
public sendVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;
public sendVideo(video: Interfaces.IInputFile | string, params: Params.ISendVideoParams): Promise<MessageContext>;

@@ -83,3 +83,3 @@ public replyWithVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;

*/
public sendAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;
public sendAnimation(animation: Interfaces.IInputFile | string, params: Params.ISendAnimationParams): Promise<MessageContext>;

@@ -95,3 +95,3 @@ public replyWithAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;

*/
public sendVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;
public sendVideoNote(videoNote: Interfaces.IInputFile | string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

@@ -111,3 +111,3 @@ public replyWithVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

*/
public sendVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;
public sendVoice(voice: Interfaces.IInputFile | string, params: Params.ISendVoiceParams): Promise<MessageContext>;

@@ -121,3 +121,3 @@ public replyWithVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;

*/
public sendMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;
public sendMediaGroup(mediaGroup: Interfaces.IInputFile | string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -124,0 +124,0 @@ public replyWithMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -40,3 +40,3 @@ import Params from "../../typings/params";

*/
public sendPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;
public sendPhoto(photo: Interfaces.IInputFile | string, params: Params.ISendPhotoParams): Promise<MessageContext>;

@@ -57,3 +57,3 @@ public replyWithPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;

*/
public sendAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;
public sendAudio(audio: Interfaces.IInputFile | string, params: Params.ISendAudioParams): Promise<MessageContext>;

@@ -72,3 +72,3 @@ public replyWithAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;

*/
public sendVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;
public sendVideo(video: Interfaces.IInputFile | string, params: Params.ISendVideoParams): Promise<MessageContext>;

@@ -86,3 +86,3 @@ public replyWithVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;

*/
public sendAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;
public sendAnimation(animation: Interfaces.IInputFile | string, params: Params.ISendAnimationParams): Promise<MessageContext>;

@@ -98,3 +98,3 @@ public replyWithAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;

*/
public sendVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;
public sendVideoNote(videoNote: Interfaces.IInputFile | string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

@@ -114,3 +114,3 @@ public replyWithVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

*/
public sendVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;
public sendVoice(voice: Interfaces.IInputFile | string, params: Params.ISendVoiceParams): Promise<MessageContext>;

@@ -124,3 +124,3 @@ public replyWithVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;

*/
public sendMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;
public sendMediaGroup(mediaGroup: Interfaces.IInputFile | string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -127,0 +127,0 @@ public replyWithMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -39,3 +39,3 @@ import Params from "../../typings/params";

*/
public sendPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;
public sendPhoto(photo: Interfaces.IInputFile | string, params: Params.ISendPhotoParams): Promise<MessageContext>;

@@ -56,3 +56,3 @@ public replyWithPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;

*/
public sendAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;
public sendAudio(audio: Interfaces.IInputFile | string, params: Params.ISendAudioParams): Promise<MessageContext>;

@@ -71,3 +71,3 @@ public replyWithAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;

*/
public sendVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;
public sendVideo(video: Interfaces.IInputFile | string, params: Params.ISendVideoParams): Promise<MessageContext>;

@@ -85,3 +85,3 @@ public replyWithVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;

*/
public sendAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;
public sendAnimation(animation: Interfaces.IInputFile | string, params: Params.ISendAnimationParams): Promise<MessageContext>;

@@ -97,3 +97,3 @@ public replyWithAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;

*/
public sendVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;
public sendVideoNote(videoNote: Interfaces.IInputFile | string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

@@ -113,3 +113,3 @@ public replyWithVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

*/
public sendVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;
public sendVoice(voice: Interfaces.IInputFile | string, params: Params.ISendVoiceParams): Promise<MessageContext>;

@@ -123,3 +123,3 @@ public replyWithVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;

*/
public sendMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;
public sendMediaGroup(mediaGroup: Interfaces.IInputFile | string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -126,0 +126,0 @@ public replyWithMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -406,5 +406,5 @@ import Params from '../../typings/params';

*/
public sendPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;
public sendPhoto(photo: Interfaces.IInputFile | string, params: Params.ISendPhotoParams): Promise<MessageContext>;
public replyWithPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;
public replyWithPhoto(photo: Interfaces.IInputFile | string, params: Params.ISendPhotoParams): Promise<MessageContext>;

@@ -423,5 +423,5 @@ /**

*/
public sendAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;
public sendAudio(audio: Interfaces.IInputFile | string, params: Params.ISendAudioParams): Promise<MessageContext>;
public replyWithAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;
public replyWithAudio(audio: Interfaces.IInputFile | string, params: Params.ISendAudioParams): Promise<MessageContext>;

@@ -438,5 +438,5 @@ /**

*/
public sendVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;
public sendVideo(video: Interfaces.IInputFile | string, params: Params.ISendVideoParams): Promise<MessageContext>;
public replyWithVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;
public replyWithVideo(video: Interfaces.IInputFile | string, params: Params.ISendVideoParams): Promise<MessageContext>;

@@ -452,5 +452,5 @@ /**

*/
public sendAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;
public sendAnimation(animation: Interfaces.IInputFile | string, params: Params.ISendAnimationParams): Promise<MessageContext>;
public replyWithAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;
public replyWithAnimation(animation: Interfaces.IInputFile | string, params: Params.ISendAnimationParams): Promise<MessageContext>;

@@ -464,5 +464,5 @@ /**

*/
public sendVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;
public sendVideoNote(videoNote: Interfaces.IInputFile | string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;
public replyWithVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;
public replyWithVideoNote(videoNote: Interfaces.IInputFile | string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

@@ -480,5 +480,5 @@ /**

*/
public sendVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;
public sendVoice(voice: Interfaces.IInputFile | string, params: Params.ISendVoiceParams): Promise<MessageContext>;
public replyWithVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;
public replyWithVoice(voice: Interfaces.IInputFile | string, params: Params.ISendVoiceParams): Promise<MessageContext>;

@@ -490,5 +490,5 @@ /**

*/
public sendMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;
public sendMediaGroup(mediaGroup: Interfaces.IInputFile | string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;
public replyWithMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;
public replyWithMediaGroup(mediaGroup: Interfaces.IInputFile | string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -495,0 +495,0 @@ /**

@@ -39,3 +39,3 @@ import Params from "../../typings/params";

*/
public sendPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;
public sendPhoto(photo: Interfaces.IInputFile | string, params: Params.ISendPhotoParams): Promise<MessageContext>;

@@ -56,3 +56,3 @@ public replyWithPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;

*/
public sendAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;
public sendAudio(audio: Interfaces.IInputFile | string, params: Params.ISendAudioParams): Promise<MessageContext>;

@@ -71,3 +71,3 @@ public replyWithAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;

*/
public sendVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;
public sendVideo(video: Interfaces.IInputFile | string, params: Params.ISendVideoParams): Promise<MessageContext>;

@@ -85,3 +85,3 @@ public replyWithVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;

*/
public sendAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;
public sendAnimation(animation: Interfaces.IInputFile | string, params: Params.ISendAnimationParams): Promise<MessageContext>;

@@ -97,3 +97,3 @@ public replyWithAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;

*/
public sendVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;
public sendVideoNote(videoNote: Interfaces.IInputFile | string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

@@ -113,3 +113,3 @@ public replyWithVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

*/
public sendVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;
public sendVoice(voice: Interfaces.IInputFile | string, params: Params.ISendVoiceParams): Promise<MessageContext>;

@@ -123,3 +123,3 @@ public replyWithVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;

*/
public sendMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;
public sendMediaGroup(mediaGroup: Interfaces.IInputFile | string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -126,0 +126,0 @@ public replyWithMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -39,3 +39,3 @@ import Params from "../../typings/params";

*/
public sendPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;
public sendPhoto(photo: Interfaces.IInputFile | string, params: Params.ISendPhotoParams): Promise<MessageContext>;

@@ -56,3 +56,3 @@ public replyWithPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;

*/
public sendAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;
public sendAudio(audio: Interfaces.IInputFile | string, params: Params.ISendAudioParams): Promise<MessageContext>;

@@ -71,3 +71,3 @@ public replyWithAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;

*/
public sendVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;
public sendVideo(video: Interfaces.IInputFile | string, params: Params.ISendVideoParams): Promise<MessageContext>;

@@ -85,3 +85,3 @@ public replyWithVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;

*/
public sendAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;
public sendAnimation(animation: Interfaces.IInputFile | string, params: Params.ISendAnimationParams): Promise<MessageContext>;

@@ -97,3 +97,3 @@ public replyWithAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;

*/
public sendVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;
public sendVideoNote(videoNote: Interfaces.IInputFile | string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

@@ -113,3 +113,3 @@ public replyWithVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

*/
public sendVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;
public sendVoice(voice: Interfaces.IInputFile | string, params: Params.ISendVoiceParams): Promise<MessageContext>;

@@ -123,3 +123,3 @@ public replyWithVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;

*/
public sendMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;
public sendMediaGroup(mediaGroup: Interfaces.IInputFile | string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -126,0 +126,0 @@ public replyWithMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -39,3 +39,3 @@ import Params from "../../typings/params";

*/
public sendPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;
public sendPhoto(photo: Interfaces.IInputFile | string, params: Params.ISendPhotoParams): Promise<MessageContext>;

@@ -56,3 +56,3 @@ public replyWithPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;

*/
public sendAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;
public sendAudio(audio: Interfaces.IInputFile | string, params: Params.ISendAudioParams): Promise<MessageContext>;

@@ -71,3 +71,3 @@ public replyWithAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;

*/
public sendVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;
public sendVideo(video: Interfaces.IInputFile | string, params: Params.ISendVideoParams): Promise<MessageContext>;

@@ -85,3 +85,3 @@ public replyWithVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;

*/
public sendAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;
public sendAnimation(animation: Interfaces.IInputFile | string, params: Params.ISendAnimationParams): Promise<MessageContext>;

@@ -97,3 +97,3 @@ public replyWithAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;

*/
public sendVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;
public sendVideoNote(videoNote: Interfaces.IInputFile | string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

@@ -113,3 +113,3 @@ public replyWithVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

*/
public sendVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;
public sendVoice(voice: Interfaces.IInputFile | string, params: Params.ISendVoiceParams): Promise<MessageContext>;

@@ -123,3 +123,3 @@ public replyWithVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;

*/
public sendMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;
public sendMediaGroup(mediaGroup: Interfaces.IInputFile | string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -126,0 +126,0 @@ public replyWithMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -39,3 +39,3 @@ import Params from "../../typings/params";

*/
public sendPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;
public sendPhoto(photo: Interfaces.IInputFile | string, params: Params.ISendPhotoParams): Promise<MessageContext>;

@@ -56,3 +56,3 @@ public replyWithPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;

*/
public sendAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;
public sendAudio(audio: Interfaces.IInputFile | string, params: Params.ISendAudioParams): Promise<MessageContext>;

@@ -71,3 +71,3 @@ public replyWithAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;

*/
public sendVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;
public sendVideo(video: Interfaces.IInputFile | string, params: Params.ISendVideoParams): Promise<MessageContext>;

@@ -85,3 +85,3 @@ public replyWithVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;

*/
public sendAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;
public sendAnimation(animation: Interfaces.IInputFile | string, params: Params.ISendAnimationParams): Promise<MessageContext>;

@@ -97,3 +97,3 @@ public replyWithAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;

*/
public sendVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;
public sendVideoNote(videoNote: Interfaces.IInputFile | string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

@@ -113,3 +113,3 @@ public replyWithVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

*/
public sendVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;
public sendVoice(voice: Interfaces.IInputFile | string, params: Params.ISendVoiceParams): Promise<MessageContext>;

@@ -123,3 +123,3 @@ public replyWithVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;

*/
public sendMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;
public sendMediaGroup(mediaGroup: Interfaces.IInputFile | string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -126,0 +126,0 @@ public replyWithMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -39,3 +39,3 @@ import Params from "../../typings/params";

*/
public sendPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;
public sendPhoto(photo: Interfaces.IInputFile | string, params: Params.ISendPhotoParams): Promise<MessageContext>;

@@ -56,3 +56,3 @@ public replyWithPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;

*/
public sendAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;
public sendAudio(audio: Interfaces.IInputFile | string, params: Params.ISendAudioParams): Promise<MessageContext>;

@@ -71,3 +71,3 @@ public replyWithAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;

*/
public sendVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;
public sendVideo(video: Interfaces.IInputFile | string, params: Params.ISendVideoParams): Promise<MessageContext>;

@@ -85,3 +85,3 @@ public replyWithVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;

*/
public sendAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;
public sendAnimation(animation: Interfaces.IInputFile | string, params: Params.ISendAnimationParams): Promise<MessageContext>;

@@ -97,3 +97,3 @@ public replyWithAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;

*/
public sendVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;
public sendVideoNote(videoNote: Interfaces.IInputFile | string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

@@ -113,3 +113,3 @@ public replyWithVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

*/
public sendVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;
public sendVoice(voice: Interfaces.IInputFile | string, params: Params.ISendVoiceParams): Promise<MessageContext>;

@@ -123,3 +123,3 @@ public replyWithVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;

*/
public sendMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;
public sendMediaGroup(mediaGroup: Interfaces.IInputFile | string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -126,0 +126,0 @@ public replyWithMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -39,3 +39,3 @@ import Params from "../../typings/params";

*/
public sendPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;
public sendPhoto(photo: Interfaces.IInputFile | string, params: Params.ISendPhotoParams): Promise<MessageContext>;

@@ -56,3 +56,3 @@ public replyWithPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;

*/
public sendAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;
public sendAudio(audio: Interfaces.IInputFile | string, params: Params.ISendAudioParams): Promise<MessageContext>;

@@ -71,3 +71,3 @@ public replyWithAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;

*/
public sendVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;
public sendVideo(video: Interfaces.IInputFile | string, params: Params.ISendVideoParams): Promise<MessageContext>;

@@ -85,3 +85,3 @@ public replyWithVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;

*/
public sendAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;
public sendAnimation(animation: Interfaces.IInputFile | string, params: Params.ISendAnimationParams): Promise<MessageContext>;

@@ -97,3 +97,3 @@ public replyWithAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;

*/
public sendVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;
public sendVideoNote(videoNote: Interfaces.IInputFile | string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

@@ -113,3 +113,3 @@ public replyWithVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

*/
public sendVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;
public sendVoice(voice: Interfaces.IInputFile | string, params: Params.ISendVoiceParams): Promise<MessageContext>;

@@ -123,3 +123,3 @@ public replyWithVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;

*/
public sendMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;
public sendMediaGroup(mediaGroup: Interfaces.IInputFile | string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -126,0 +126,0 @@ public replyWithMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -178,3 +178,3 @@ import Params from "../../typings/params";

*/
public sendPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;
public sendPhoto(photo: Interfaces.IInputFile | string, params: Params.ISendPhotoParams): Promise<MessageContext>;

@@ -195,3 +195,3 @@ public replyWithPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;

*/
public sendAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;
public sendAudio(audio: Interfaces.IInputFile | string, params: Params.ISendAudioParams): Promise<MessageContext>;

@@ -210,3 +210,3 @@ public replyWithAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;

*/
public sendVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;
public sendVideo(video: Interfaces.IInputFile | string, params: Params.ISendVideoParams): Promise<MessageContext>;

@@ -224,3 +224,3 @@ public replyWithVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;

*/
public sendAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;
public sendAnimation(animation: Interfaces.IInputFile | string, params: Params.ISendAnimationParams): Promise<MessageContext>;

@@ -236,3 +236,3 @@ public replyWithAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;

*/
public sendVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;
public sendVideoNote(videoNote: Interfaces.IInputFile | string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

@@ -252,3 +252,3 @@ public replyWithVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

*/
public sendVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;
public sendVoice(voice: Interfaces.IInputFile | string, params: Params.ISendVoiceParams): Promise<MessageContext>;

@@ -262,3 +262,3 @@ public replyWithVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;

*/
public sendMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;
public sendMediaGroup(mediaGroup: Interfaces.IInputFile | string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -265,0 +265,0 @@ public replyWithMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -41,3 +41,3 @@ import Params from "../../typings/params";

*/
public sendPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;
public sendPhoto(photo: Interfaces.IInputFile | string, params: Params.ISendPhotoParams): Promise<MessageContext>;

@@ -58,3 +58,3 @@ public replyWithPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;

*/
public sendAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;
public sendAudio(audio: Interfaces.IInputFile | string, params: Params.ISendAudioParams): Promise<MessageContext>;

@@ -73,3 +73,3 @@ public replyWithAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;

*/
public sendVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;
public sendVideo(video: Interfaces.IInputFile | string, params: Params.ISendVideoParams): Promise<MessageContext>;

@@ -87,3 +87,3 @@ public replyWithVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;

*/
public sendAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;
public sendAnimation(animation: Interfaces.IInputFile | string, params: Params.ISendAnimationParams): Promise<MessageContext>;

@@ -99,3 +99,3 @@ public replyWithAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;

*/
public sendVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;
public sendVideoNote(videoNote: Interfaces.IInputFile | string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

@@ -115,3 +115,3 @@ public replyWithVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

*/
public sendVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;
public sendVoice(voice: Interfaces.IInputFile | string, params: Params.ISendVoiceParams): Promise<MessageContext>;

@@ -125,3 +125,3 @@ public replyWithVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;

*/
public sendMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;
public sendMediaGroup(mediaGroup: Interfaces.IInputFile | string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -128,0 +128,0 @@ public replyWithMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -41,3 +41,3 @@ import Params from "../../typings/params";

*/
public sendPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;
public sendPhoto(photo: Interfaces.IInputFile | string, params: Params.ISendPhotoParams): Promise<MessageContext>;

@@ -58,3 +58,3 @@ public replyWithPhoto(photo: string, params: Params.ISendPhotoParams): Promise<MessageContext>;

*/
public sendAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;
public sendAudio(audio: Interfaces.IInputFile | string, params: Params.ISendAudioParams): Promise<MessageContext>;

@@ -73,3 +73,3 @@ public replyWithAudio(audio: string, params: Params.ISendAudioParams): Promise<MessageContext>;

*/
public sendVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;
public sendVideo(video: Interfaces.IInputFile | string, params: Params.ISendVideoParams): Promise<MessageContext>;

@@ -87,3 +87,3 @@ public replyWithVideo(video: string, params: Params.ISendVideoParams): Promise<MessageContext>;

*/
public sendAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;
public sendAnimation(animation: Interfaces.IInputFile | string, params: Params.ISendAnimationParams): Promise<MessageContext>;

@@ -99,3 +99,3 @@ public replyWithAnimation(animation: string, params: Params.ISendAnimationParams): Promise<MessageContext>;

*/
public sendVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;
public sendVideoNote(videoNote: Interfaces.IInputFile | string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

@@ -115,3 +115,3 @@ public replyWithVideoNote(videoNote: string, params: Params.ISendVideoNoteParams): Promise<MessageContext>;

*/
public sendVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;
public sendVoice(voice: Interfaces.IInputFile | string, params: Params.ISendVoiceParams): Promise<MessageContext>;

@@ -125,3 +125,3 @@ public replyWithVoice(voice: string, params: Params.ISendVoiceParams): Promise<MessageContext>;

*/
public sendMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;
public sendMediaGroup(mediaGroup: Interfaces.IInputFile | string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

@@ -128,0 +128,0 @@ public replyWithMediaGroup(mediaGroup: string, params: Params.ISendMediaGroupParams): Promise<MessageContext>;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc