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

Method safeGetEntity

aban/aban.ts:261–270  ·  view source on GitHub ↗
(
    client: TelegramClient,
    target: any
  )

Source from the content-addressed store, hash-verified

259
260 private static async safeGetEntity(
261 client: TelegramClient,
262 target: any
263 ): Promise<any | null> {
264 try {
265 return await client.getEntity(target);
266 } catch {
267 return null;
268 }
269 }
270
271 private static async safeGetInputEntity(
272 client: TelegramClient,
273 target: any

Callers 2

resolveFromStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected