Deprecated: use /remote/send. Send the MCP's final answer to the code's paired Telegram chat.
(request_data: RemoteReplyRequest)
| 712 | |
| 713 | @remote_router.post("/remote/telegram/reply", tags=["Remote"], deprecated=True) |
| 714 | async def remote_telegram_reply(request_data: RemoteReplyRequest): |
| 715 | """Deprecated: use /remote/send. Send the MCP's final answer to the code's paired Telegram chat.""" |
| 716 | from messaging import assert_content_allowed |
| 717 | |
| 718 | code = _require_code(request_data.code) |
| 719 | await _deprecated("/remote/telegram/reply", _anon(code)) |
| 720 | await _set_busy(code, "telegram", False) |
| 721 | address = await bound_address(code, "telegram") |
| 722 | if not address: |
| 723 | raise HTTPException(status_code=404, detail="No Telegram chat linked to this code.") |
| 724 | |
| 725 | assert_content_allowed(request_data.text) |
| 726 | await _deliver("telegram", address, request_data.text, (request_data.images or [])[:MAX_REPLY_IMAGES]) |
| 727 | return {"success": True} |
nothing calls this directly
no test coverage detected