miniproto.peers.PeerCache.get_me
miniproto.peers.PeerCache.get_me
Section titled “miniproto.peers.PeerCache.get_me”get_me(*, refresh: bool = False) -> UserReturn the authenticated user, reading cache unless refresh is true.
Parameters:
- refresh (
bool) – When true, tryusers.getUsers(inputUserSelf)first. If its result lacks a self user, return a cached identity when one exists; otherwise raiseUnauthorized.
Raises:
Unauthorized– If Telegram does not return a concrete self user and no cached identity is available.