MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / setCachedAvgEntry

Function setCachedAvgEntry

admin_board/admin_board.ts:464–472  ·  view source on GitHub ↗
(
  target: TargetChat,
  userId: string,
  avgPerDay: number,
)

Source from the content-addressed store, hash-verified

462async function setCachedUserInfo(
463 target: TargetChat,
464 user: Api.User,
465): Promise<void> {
466 await setCachedEntry(target, getUserIdString(user), {
467 name: getUserDisplayName(user),
468 username: user.username || null,
469 });
470}
471
472async function getCachedUserInfo(
473 target: TargetChat,
474 userId: string,
475): Promise<{ name?: string; username?: string | null } | undefined> {

Callers 1

collectAdminStatFunction · 0.85

Calls 1

setCachedEntryFunction · 0.85

Tested by

no test coverage detected