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

Method getChatKind

aban/aban.ts:724–734  ·  view source on GitHub ↗
(chatId: any)

Source from the content-addressed store, hash-verified

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);

Callers 2

applyBanLikeActionMethod · 0.95
kickUserMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected