(client: TelegramClient, chatId: any)
| 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 | ); |
no test coverage detected