(retriesLeft: number)
| 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 { |
nothing calls this directly
no test coverage detected