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

Method attempt

aban/aban.ts:968–987  ·  view source on GitHub ↗
(retriesLeft: number)

Source from the content-addressed store, hash-verified

966 viewMessages: true,
967 sendMessages: true,
968 sendMedia: true,
969 sendStickers: true,
970 sendGifs: true,
971 sendGames: true,
972 sendInline: true,
973 embedLinks: true,
974 });
975
976 await this.applyBanLikeAction(client, chatId, resolvedParticipant, rights, 'ban');
977 return true;
978 } catch (error) {
979 console.error(`[BanManager] 封禁失败: ${error}`);
980 return false;
981 }
982 }
983
984 static async unbanUser(
985 client: TelegramClient,
986 chatId: any,
987 userId: number,
988 participant?: any
989 ): Promise<boolean> {
990 try {

Callers

nothing calls this directly

Calls 3

getErrorReasonMethod · 0.95
getFloodWaitSecondsFunction · 0.85
sleepFunction · 0.70

Tested by

no test coverage detected