from utils.telegram import send_message
from bot.keyboards import main_menu
from config import FORMATION_LINKS

def handle_start(chat_id):
    send_message(
        chat_id,
        "Tu viens pour quelle formation ?",
        reply_markup=main_menu()
    )

def handle_button(chat_id, data):
    link = FORMATION_LINKS.get(data)

    if not link:
        send_message(chat_id, "Choix invalide.")
        return

    send_message(
        chat_id,
        f"Voici le lien de la formation :\n{link}"
    )
