diff --git a/src/docbot/handlers/doctors/meet_doctor_handler.py b/src/docbot/handlers/doctors/meet_doctor_handler.py index fbe8c07..f102792 100644 --- a/src/docbot/handlers/doctors/meet_doctor_handler.py +++ b/src/docbot/handlers/doctors/meet_doctor_handler.py @@ -18,7 +18,7 @@ async def show_terms(update: Update, context: ContextTypes.DEFAULT_TYPE) -> int: ) logger.info(f"Ask user {user_id} to enter their payment link.") - return ConversationHandler.END + return GET_TERMS_ACKNOWLEDGED def meet_doctor_handler() -> ConversationHandler: return ConversationHandler( diff --git a/src/docbot/handlers/start_handler.py b/src/docbot/handlers/start_handler.py index aa9b12e..320d788 100644 --- a/src/docbot/handlers/start_handler.py +++ b/src/docbot/handlers/start_handler.py @@ -1,11 +1,9 @@ -from docbot.handlers.doctors.meet_doctor_handler import GET_TERMS_ACKNOWLEDGED from src.docbot.services.doctors_service import get_doctor from telegram import Update, InlineKeyboardButton, InlineKeyboardMarkup from telegram.constants import ParseMode from telegram.ext import ContextTypes, CommandHandler - async def start(update: Update, context: ContextTypes.DEFAULT_TYPE) -> int: user_id = update.effective_user.id @@ -42,7 +40,6 @@ async def start(update: Update, context: ContextTypes.DEFAULT_TYPE) -> int: ) await context.bot.send_message(chat_id=update.effective_chat.id, text=text, parse_mode=ParseMode.HTML) - return GET_TERMS_ACKNOWLEDGED def get_start_handler() -> CommandHandler: """Фабрика для регистрации в Application."""