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

Function editMessageIgnoringNotModified

tmp_admin/tmp_admin.ts:120–129  ·  view source on GitHub ↗
(
  msg: Api.Message,
  options: Parameters<Api.Message["edit"]>[0]
)

Source from the content-addressed store, hash-verified

118 await msg.edit(options);
119 } catch (error) {
120 if (!isMessageNotModified(error)) throw error;
121 }
122}
123
124async function deleteMessageQuiet(msg: Api.Message): Promise<void> {
125 try {
126 const target = msg as any;
127 if (typeof target.safeDelete === "function") {
128 await target.safeDelete({ revoke: true });
129 return;
130 }
131 if (typeof target.delete === "function") {
132 await target.delete({ revoke: true });

Callers 1

respondToCommandFunction · 0.85

Calls 2

isMessageNotModifiedFunction · 0.85
editMethod · 0.45

Tested by

no test coverage detected