(chatId: any)
| 722 | p instanceof Api.ChannelParticipantAdmin |
| 723 | ); |
| 724 | } catch (error) { |
| 725 | return false; |
| 726 | } |
| 727 | } |
| 728 | |
| 729 | static async canDeleteMessages( |
| 730 | client: TelegramClient, |
| 731 | chatId: any |
| 732 | ): Promise<boolean> { |
| 733 | try { |
| 734 | const me = await safeGetMe(client); |
| 735 | if (!me) return false; |
| 736 | if (this.getChatKind(chatId) === 'chat') { |
| 737 | const participants = await this.getBasicGroupParticipants(client, chatId); |
no outgoing calls
no test coverage detected