MCPcopy Create free account
hub / github.com/Roy3838/Observer / remote_telegram_reply

Function remote_telegram_reply

api/remote.py:714–727  ·  view source on GitHub ↗

Deprecated: use /remote/send. Send the MCP's final answer to the code's paired Telegram chat.

(request_data: RemoteReplyRequest)

Source from the content-addressed store, hash-verified

712
713@remote_router.post("/remote/telegram/reply", tags=["Remote"], deprecated=True)
714async 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}

Callers

nothing calls this directly

Calls 7

assert_content_allowedFunction · 0.90
_require_codeFunction · 0.85
_deprecatedFunction · 0.85
_anonFunction · 0.85
_set_busyFunction · 0.85
bound_addressFunction · 0.85
_deliverFunction · 0.85

Tested by

no test coverage detected