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

Function shouldFallbackToReplyOnEditError

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

Source from the content-addressed store, hash-verified

1142
1143const shouldFallbackToReplyOnEditError = (error: any): boolean => {
1144 const text = getEditErrorText(error);
1145 return (
1146 text.includes("MESSAGE_ID_INVALID") ||
1147 text.includes("MESSAGE_AUTHOR_REQUIRED")
1148 );
1149};
1150
1151const getTopicRootId = (msg: Api.Message): number | undefined => {
1152 const typedMsg = msg as Api.Message & {
1153 replyTo?: { replyToTopId?: number; replyToMsgId?: number };

Callers 1

sendOrEditMethod · 0.85

Calls 1

getEditErrorTextFunction · 0.85

Tested by

no test coverage detected