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

Function sendLongMessage

oxost/oxost.ts:36–46  ·  view source on GitHub ↗
(msg: Api.Message, text: string)

Source from the content-addressed store, hash-verified

34 if (parts.length === 1) {
35 await msg.edit({ text: parts[0], parseMode: "html" });
36 } else {
37 await msg.edit({ text: parts[0] + "\n\n📄 (1/" + parts.length + ")", parseMode: "html" });
38 for (let i = 1; i < parts.length; i++) {
39 await msg.reply({ message: parts[i] + "\n\n📄 (" + (i + 1) + "/" + parts.length + ")", parseMode: "html" });
40 }
41 }
42}
43
44const timeout = 60000;
45const prefixes = getPrefixes();
46const mainPrefix = prefixes[0];
47const pluginName = "0x0";
48const commandName = `${mainPrefix}${pluginName}`;
49

Callers 1

Ox0PluginClass · 0.70

Calls 2

splitMessageFunction · 0.70
editMethod · 0.45

Tested by

no test coverage detected