diff --git a/tgbot.deno.ts b/tgbot.deno.ts index 80631cf..82a7311 100644 --- a/tgbot.deno.ts +++ b/tgbot.deno.ts @@ -52,6 +52,7 @@ async function domeny() { ) .map((x) => x.item_title); x.sort(); + x.sort((a,b)=>a.length - b.length); while (x.length > 0) { const chunk = x.splice(0, 50); await tgCall({