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

Method safeGetInputEntity

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

Source from the content-addressed store, hash-verified

270
271 private static async safeGetInputEntity(
272 client: TelegramClient,
273 target: any
274 ): Promise<any | undefined> {
275 try {
276 return await client.getInputEntity(target);
277 } catch {
278 return undefined;
279 }
280 }
281
282 private static async resolveParticipantFromContext(
283 client: TelegramClient,
284 message: Api.Message,

Callers 3

resolveTargetMethod · 0.95
resolveFromStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected