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

Method handleEditedMessage

im/im.ts:474–488  ·  view source on GitHub ↗
(event: EditedMessageEvent)

Source from the content-addressed store, hash-verified

472 } else {
473 output += "无";
474 }
475 output += `\n\n<b>贴纸ID列表:</b>\n`;
476 const stickers = Object.entries(config.bannedStickerIds || {});
477 if (stickers.length > 0) {
478 output += stickers.map(([sid, action]) => `<code>- ${htmlEscape(sid)} (${action})</code>`).join("\n");
479 } else {
480 output += "无";
481 }
482 await MessageManager.edit(msg, output, { deleteAfter: 30 });
483 break;
484 }
485 case "help":
486 default:
487 await MessageManager.edit(msg, HELP_TEXT, { deleteAfter: 30 });
488 break;
489 }
490 } catch (error: any) {
491 console.error(`[${PLUGIN_NAME}] Command failed:`, error);

Callers 1

ImageMonitorPluginClass · 0.95

Calls 3

processImageMessageMethod · 0.95
getPeerIdFunction · 0.85
getConfigMethod · 0.45

Tested by

no test coverage detected