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

Function getParticipantRank

tmp_admin/tmp_admin.ts:304–307  ·  view source on GitHub ↗
(participant?: any)

Source from the content-addressed store, hash-verified

302async function formatEntity(target: any, mention?: boolean, throwErrorIfFailed?: boolean) {
303 const client = await getGlobalClient();
304 if (!client) throw new Error("Telegram 客户端未初始化");
305 if (!target) throw new Error("无效的目标");
306
307 let id: any;
308 let entity: any;
309 try {
310 entity = target?.className ? target : await client.getEntity(target);

Callers 1

addTemporaryAdminMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected