meet doctor logic

This commit is contained in:
Oleg Oleg 2026-01-09 19:42:45 +04:00
parent 53ab694f5f
commit 855fbf8d0e
2 changed files with 1 additions and 4 deletions

View File

@ -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(

View File

@ -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."""