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

Method getBasicGroupParticipants

aban/aban.ts:486–499  ·  view source on GitHub ↗
(client: TelegramClient, chatId: any)

Source from the content-addressed store, hash-verified

484 participant: new Api.InputPeerUser({
485 userId: bigInt(userId),
486 accessHash: bigInt(0),
487 }),
488 })
489 );
490 const matched = (res?.users || []).find((u: any) => Number(u?.id) === userId);
491 if (matched && !found.participant) {
492 const input = await this.safeGetInputEntity(client, matched);
493 if (input) found = { participant: input, entity: matched };
494 }
495 return;
496 }
497
498 const full: any = await client.invoke(
499 new Api.messages.GetFullChat({
500 chatId: bigInt(Math.abs(Number(group.id))),
501 })
502 );

Callers 3

checkAdminPermissionMethod · 0.95
isTargetAdminMethod · 0.95
canDeleteMessagesMethod · 0.95

Calls 1

getBasicGroupChatIdMethod · 0.95

Tested by

no test coverage detected