Skip to content

Commit

Permalink
removed createReadStream import
Browse files Browse the repository at this point in the history
  • Loading branch information
naseif committed Mar 3, 2022
1 parent b03ac53 commit 7fc4989
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/structure/TelegramAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import {
} from "../types";

import FormData from "form-data";
import { createReadStream } from "node:fs";

export class TelegramAPI {
/**
Expand Down Expand Up @@ -482,7 +481,7 @@ export class TelegramAPI {
*/
async sendPhoto(
chat_id: string | number,
photo: any,
photo: Buffer | string,
options?: sendPhotoOptions
): Promise<IMessage> {
let params = {};
Expand Down

0 comments on commit 7fc4989

Please sign in to comment.