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

Function isTemporaryAdminParticipant

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

Source from the content-addressed store, hash-verified

294 );
295}
296
297function getParticipantRank(participant?: any): string {
298 const rank = (participant as any)?.rank;
299 return typeof rank === "string" ? rank : "";
300}
301
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("无效的目标");

Callers 3

addTemporaryAdminMethod · 0.85
removeTemporaryAdminMethod · 0.85
scheduleWithDelayMethod · 0.85

Calls 1

hasNonOtherAdminRightsFunction · 0.85

Tested by

no test coverage detected