From c190651e9175144c3f76eddd1b0575c642e4fa53 Mon Sep 17 00:00:00 2001 From: Sergey Bahmatov Date: Fri, 28 Mar 2025 22:32:04 +0500 Subject: [PATCH] fix --- pomodoro_bot/bot.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/pomodoro_bot/bot.py b/pomodoro_bot/bot.py index 8004fdc..fc51526 100644 --- a/pomodoro_bot/bot.py +++ b/pomodoro_bot/bot.py @@ -11,25 +11,6 @@ API_TOKEN = os.getenv("BOT_TOKEN") bot = Bot(token=API_TOKEN) dp = Dispatcher(bot) - - - await message.reply("Привет! Я твой личный Pomodoro-бот. Выбирай действие:", reply_markup=menu_kb) - - - if call.data == "pomodoro": - await timer_manager.start_timer(call.from_user.id, 25*60, call.message.chat.id, 'Pomodoro') - await call.message.answer("Начался 25-минутный Pomodoro! 🔥") - elif call.data == "shortbreak": - await timer_manager.start_timer(call.from_user.id, 5*60, call.message.chat.id, 'Short Break') - await call.message.answer("Начался 5-минутный перерыв ☕") - elif call.data == "longbreak": - await timer_manager.start_timer(call.from_user.id, 15*60, call.message.chat.id, 'Long Break') - await call.message.answer("Начался длинный перерыв 😌") - elif call.data == "stop": - await timer_manager.stop_timer(call.from_user.id) - await call.message.answer("Таймер остановлен ⏹") - await call.answer() - menu_kb = InlineKeyboardMarkup(row_width=2) menu_kb.add( InlineKeyboardButton("▶️ Pomodoro", callback_data="pomodoro"),