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

Function getEditErrorText

ai/ai.ts:1133–1139  ·  view source on GitHub ↗
(error: any)

Source from the content-addressed store, hash-verified

1131
1132const getEditErrorText = (error: any): string => {
1133 const parts = [
1134 typeof error?.errorMessage === "string" ? error.errorMessage : "",
1135 typeof error?.message === "string" ? error.message : "",
1136 ].filter(Boolean);
1137 return parts.join(" ");
1138};
1139
1140const isMessageNotModifiedError = (error: any): boolean =>
1141 getEditErrorText(error).includes("MESSAGE_NOT_MODIFIED");
1142

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected