diff --git a/bot/handlers/callback.py b/bot/handlers/callback.py index 5f1920c..2a060bb 100644 --- a/bot/handlers/callback.py +++ b/bot/handlers/callback.py @@ -66,9 +66,9 @@ async def handle_callback(update: Update, context: ContextTypes.DEFAULT_TYPE) -> elif action == "delete": title = reminder.title + remove_reminder_job(reminder_id) session.delete(reminder) session.commit() - remove_reminder_job(reminder_id) await query.edit_message_text(f"πŸ—‘ ε·²εˆ ι™€ζι†’οΌš{title}") except Exception: diff --git a/bot/utils/keyboards.py b/bot/utils/keyboards.py index 7837136..1fd6bed 100644 --- a/bot/utils/keyboards.py +++ b/bot/utils/keyboards.py @@ -48,10 +48,6 @@ def reminder_action_keyboard(reminder_id: int) -> InlineKeyboardMarkup: "⏰ 廢期", callback_data=f"snooze_{reminder_id}" ), ], - [ - InlineKeyboardButton("⏸ ζš‚εœ", callback_data=f"pause_{reminder_id}"), - InlineKeyboardButton("πŸ—‘ εˆ ι™€", callback_data=f"delete_{reminder_id}"), - ], ] )