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

Function _status

api/remote.py:491–499  ·  view source on GitHub ↗

Whether the code is paired on `channel`, to whom, and whether it was revoked.

(code: str, channel: Channel)

Source from the content-addressed store, hash-verified

489
490
491async def _status(code: str, channel: Channel) -> dict:
492 """Whether the code is paired on `channel`, to whom, and whether it was revoked."""
493 r = await get_redis()
494 return {
495 "code": code,
496 "linked": bool(await r.get(_bind_key(code, channel))),
497 "name": await r.get(_name_key(code, channel)),
498 "revoked": bool(await r.exists(_revoked_key(code))),
499 }
500
501
502async def _deliver(channel: Channel, address: str, text: str, images: list[str]) -> None:

Callers 2

remote_statusFunction · 0.85
remote_telegram_statusFunction · 0.85

Calls 4

get_redisFunction · 0.90
_bind_keyFunction · 0.85
_name_keyFunction · 0.85
_revoked_keyFunction · 0.85

Tested by

no test coverage detected