MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / sendLongMessage

Method sendLongMessage

ids/ids.ts:215–222  ·  view source on GitHub ↗
(msg: Api.Message, text: string)

Source from the content-addressed store, hash-verified

213 const parts = text.match(/[\s\S]{1,4000}/g) || [];
214 for (let i = 0; i < parts.length; i++) {
215 if (i === 0) await msg.edit({ text: parts[i] + `\n\n📄 (1/${parts.length})`, parseMode: "html" });
216 else await msg.reply({ message: parts[i] + `\n\n📄 (${i + 1}/${parts.length})`, parseMode: "html" });
217 }
218 }
219}
220
221export default new IdsPlugin();

Callers 1

IdsPluginClass · 0.95

Calls 1

editMethod · 0.45

Tested by

no test coverage detected