From b12fcd23fc5722e6659c2474544e84535bab0962 Mon Sep 17 00:00:00 2001 From: AntoXa PRO Date: Fri, 29 Nov 2024 12:47:25 +0300 Subject: [PATCH] fix hot --- src/handlers/test.ts | 6 +++++- src/index.ts | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/handlers/test.ts b/src/handlers/test.ts index 3b6b1b0..4037efc 100644 --- a/src/handlers/test.ts +++ b/src/handlers/test.ts @@ -1,5 +1,9 @@ import { Context } from 'telegraf' -export const testHandler = (ctx: Context) => { +// export const testHandler = (ctx: Context) => { +// console.log('Test handler:', ctx) +// } + +export function testHandler (ctx: Context) { console.log('Test handler:', ctx) } diff --git a/src/index.ts b/src/index.ts index a795513..cae065c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,7 +4,6 @@ import { Telegraf } from 'telegraf' import { errorHandler } from './errors' import { testHandler } from './handlers' - // Главная функция приложения (Точка входа). const main = () => { try {