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

Function _anon

api/remote.py:566–568  ·  view source on GitHub ↗

A stable, non-secret tag for a Telegram code (the code itself is a credential).

(code: str)

Source from the content-addressed store, hash-verified

564
565
566def _anon(code: str) -> str:
567 """A stable, non-secret tag for a Telegram code (the code itself is a credential)."""
568 return "tg-" + hashlib.sha256(code.encode()).hexdigest()[:8]
569
570
571# --- The two routes: IN and OUT ---

Callers 2

remote_telegram_inboxFunction · 0.85
remote_telegram_replyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected