mirror of
https://github.com/olegvodyanov/docbot.git
synced 2026-02-02 02:45:46 +03:00
meet doctor logic
This commit is contained in:
parent
53ab694f5f
commit
855fbf8d0e
@ -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(
|
||||
|
||||
@ -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."""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user