MCPcopy Index your code
hub / github.com/TeleBoxOrg/TeleBox_Plugins / edit

Function edit

pmcaptcha/pmcaptcha.ts:1682–1697  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

1680 }
1681
1682 const edit = async (text: string) => {
1683 try {
1684 await client.editMessage(message.peerId, {
1685 message: message.id,
1686 text,
1687 parseMode: "html",
1688 linkPreview: false
1689 });
1690 } catch (e: any) {
1691 if (String(e).includes("Could not find the input entity")) {
1692 try { await message.reply({ message: text, parseMode: "html", linkPreview: false }); } catch {}
1693 } else {
1694 throw e;
1695 }
1696 }
1697 };
1698
1699 try {
1700 switch (command) {

Callers 1

pmcaptchaFunction · 0.85

Calls 1

editMessageMethod · 0.80

Tested by

no test coverage detected