"""Deprecated: app.telegram 패키지 사용 권장. 하위 호환용 re-export."""
from .telegram import handle_webhook, send_approval_request, send_raw, setup_webhook
from .telegram.messaging import send_agent_message


# 기존 호출자가 쓰던 이름들
async def send_message(text: str, reply_markup: dict = None) -> dict:
    return await send_raw(text, reply_markup)


async def send_stock_summary(summary: str) -> dict:
    return await send_raw(summary)


async def send_task_result(agent_id: str, title: str, result: str) -> dict:
    return await send_agent_message(agent_id, "report", title, result)


__all__ = [
    "send_message",
    "send_stock_summary",
    "send_task_result",
    "send_approval_request",
    "send_agent_message",
    "handle_webhook",
    "setup_webhook",
]
