Skip to content

Commit

Permalink
refactor: replaced 'require' with 'import' for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertoBaroso committed Jun 7, 2024
1 parent 9a0372c commit 2d2f3ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/api/telegram.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 2d2f3ac

Please sign in to comment.