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

Method kickUser

aban/aban.ts:850–871  ·  view source on GitHub ↗
(
    client: TelegramClient,
    chatId: any,
    userId: number,
    participant?: any
  )

Source from the content-addressed store, hash-verified

848 }
849 } catch (error) {
850 console.error(`[GroupManager] 获取群组失败: ${error}`);
851 }
852
853 return groups;
854 }
855
856 static async clearCache(): Promise<void> {
857 await this.cache.clear();
858 }
859}
860
861// ==================== 封禁操作管理器 ====================
862type BatchGroupFailure = {
863 group: ManagedGroup;
864 reason: string;
865};
866
867type ChatKind = "channel" | "chat";
868
869type BatchBanResult = {
870 success: number;
871 failed: number;
872 failedGroups: string[];
873 failureDetails: BatchGroupFailure[];
874 unresolved: boolean;

Callers 1

handleBasicCommandMethod · 0.80

Calls 4

getChatKindMethod · 0.95
banUserMethod · 0.95
unbanUserMethod · 0.95
errorMethod · 0.80

Tested by

no test coverage detected