()
| 676 | await Promise.all( |
| 677 | entries.map(async (entry) => { |
| 678 | const filePath = path.join(this.tempDir, entry); |
| 679 | try { |
| 680 | await fs.unlink(filePath); |
| 681 | } catch {} |
| 682 | }) |
| 683 | ); |
| 684 | } catch {} |
| 685 | } |
| 686 | |
| 687 | private async saveMediaToLocal( |
| 688 | sourceMsg: Api.Message, |
| 689 | sourceChatId: string, |
| 690 | sourceMessageId: number, |
| 691 | replyMsg?: Api.Message, |
| 692 | index: number = 0, |
| 693 | options?: { groupDirName?: string } |