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

Function remote_status

api/remote.py:640–646  ·  view source on GitHub ↗

Whether the caller's code is paired on WhatsApp, and to whom, for the settings card. Answers the question the whitelist check can't: whitelisted means "we may message this number", linked means "this phone can talk to my Observer session".

(code: str, current_user: AuthUser)

Source from the content-addressed store, hash-verified

638
639@remote_router.get("/remote/status", tags=["Remote"])
640async def remote_status(code: str, current_user: AuthUser):
641 """
642 Whether the caller's code is paired on WhatsApp, and to whom, for the settings card.
643 Answers the question the whitelist check can't: whitelisted means "we may message
644 this number", linked means "this phone can talk to my Observer session".
645 """
646 return await _status(await _require_owner(code, current_user.id), "whatsapp")
647
648
649@remote_router.get("/remote/telegram/status", tags=["Remote"])

Callers

nothing calls this directly

Calls 2

_statusFunction · 0.85
_require_ownerFunction · 0.85

Tested by

no test coverage detected