()
| 946 | await client.invoke( |
| 947 | new Api.channels.EditBanned({ |
| 948 | channel: chatId, |
| 949 | participant: resolvedParticipant, |
| 950 | bannedRights, |
| 951 | }) |
| 952 | ); |
| 953 | } |
| 954 | |
| 955 | static async banUser( |
| 956 | client: TelegramClient, |
| 957 | chatId: any, |
| 958 | userId: number, |
| 959 | until: number = 0, |
| 960 | participant?: any |
| 961 | ): Promise<boolean> { |
| 962 | try { |
| 963 | const resolvedParticipant = await this.resolveParticipant(client, userId, participant); |
| 964 | const rights = new Api.ChatBannedRights({ |
| 965 | untilDate: until, |
| 966 | viewMessages: true, |
| 967 | sendMessages: true, |
| 968 | sendMedia: true, |
nothing calls this directly
no test coverage detected