(
client: TelegramClient,
userId: number,
participant?: any
)
| 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; |
no outgoing calls
no test coverage detected