From 3413dc39d75174239c88c283d58ea3cb121a121a Mon Sep 17 00:00:00 2001 From: "k.mesniankin" Date: Sat, 23 Nov 2024 23:16:59 +0300 Subject: [PATCH] fix: formatting --- src/composers/TorrentsComposer.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/composers/TorrentsComposer.ts b/src/composers/TorrentsComposer.ts index fe8ffa8..bd4cd7f 100644 --- a/src/composers/TorrentsComposer.ts +++ b/src/composers/TorrentsComposer.ts @@ -238,7 +238,7 @@ export class TorrentsComposer< const texts = await Promise.all( files.map((file) => this.formatTorrentFile(ctx, uid, file)), ); - const text = texts.join('\n\n'); + const text = texts.join('\n'); try { await ctx.reply(text, { @@ -593,7 +593,7 @@ export class TorrentsComposer< if (completedTorrents.length > 0) { const text = completedTorrents .map((torrent) => this.formatTorrent(chatId, torrent)) - .join('\n\n\n'); + .join('\n'); try { await this.bot.api.sendMessage(chatId, text, { @@ -613,7 +613,7 @@ export class TorrentsComposer< const text = pendingTorrents .map((torrent) => this.formatTorrent(chatId, torrent)) - .join('\n\n\n'); + .join('\n'); await (message ? this.updateTorrentsMessage(message, text)