import os, requests

BOT_TOKEN = os.getenv("TELEGRAM_BOT_TOKEN")
API = f"https://api.telegram.org/bot{BOT_TOKEN}"

def send_text(chat_id: int, text: str):
    if not BOT_TOKEN:
        raise RuntimeError("BOT_TOKEN 누락")
    requests.post(f"{API}/sendMessage", json={"chat_id": chat_id, "text": text})
