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

Method getChatKind

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

Source from the content-addressed store, hash-verified

472
473 await Promise.all(
474 ordered.map((group) =>
475 limit(async () => {
476 if (found.participant) return;
477 if (excludeId && Number(group.id) === excludeId) return;
478 try {
479 if (group.kind === "channel") {
480 const channel = await resolveChannelInput(client, group);
481 const res: any = await client.invoke(
482 new Api.channels.GetParticipant({
483 channel: channel as any,

Callers 3

checkAdminPermissionMethod · 0.95
isTargetAdminMethod · 0.95
canDeleteMessagesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected