Replies: 1 comment
-
Not at the moment, but I'm open to adding something. Meanwhile, it's easy to do something like // chunk util
const chunk = (str, size) =>
Array.from({ length: Math.ceil(str.length / size) }, (v, i) =>
str.slice(i * size, i * size + size)
);
// --- elsewhere
bot.command("sendLongMsg", ctx => {
for (const part of chunk(longMsg, 4096))
await ctx.sendMessage(part);
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I got "Error: 400: Bad Request" when the message is too long.
Is there any plugin that can split the long message into parts automatically? thx
Beta Was this translation helpful? Give feedback.
All reactions