diff --git a/pages/api/telegram.ts b/pages/api/telegram.ts index 684281a..47837be 100755 --- a/pages/api/telegram.ts +++ b/pages/api/telegram.ts @@ -1,5 +1,5 @@ -const TelegramBot = require("node-telegram-bot-api"); -const fs = require("fs"); +import TelegramBot from "node-telegram-bot-api"; +import fs from "fs"; import { handleError } from "./application"; const token = process.env.TELEGRAM_TOKEN;