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

Method resolveParticipant

aban/aban.ts:707–716  ·  view source on GitHub ↗
(
    client: TelegramClient,
    userId: number,
    participant?: any
  )

Source from the content-addressed store, hash-verified

705 return false;
706 }
707
708 const targetParticipant = participants.find((p: any) => Number(p?.userId) === userId);
709 return targetParticipant instanceof Api.ChatParticipantCreator || targetParticipant instanceof Api.ChatParticipantAdmin;
710 }
711
712 const participant = await client.invoke(
713 new Api.channels.GetParticipant({
714 channel: chatId,
715 participant: userId
716 })
717 );
718
719 const p = participant.participant;

Callers 5

banUserMethod · 0.95
unbanUserMethod · 0.95
muteUserMethod · 0.95
batchBanUserMethod · 0.95
batchUnbanUserMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected