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

Function sendErrorMessage

ai/ai.ts:611–619  ·  view source on GitHub ↗
(
  msg: Api.Message,
  error: any,
  trigger?: Api.Message,
)

Source from the content-addressed store, hash-verified

609
610const sendErrorMessage = async (
611 msg: Api.Message,
612 error: any,
613 trigger?: Api.Message,
614): Promise<void> => {
615 await MessageSender.sendOrEdit(trigger || msg, formatErrorForDisplay(error), {
616 parseMode: "html",
617 });
618};
619
620const parseDataUrl = (
621 url: string,
622): { mimeType: string; data: Buffer } | null => {

Callers 1

AIPluginClass · 0.85

Calls 2

formatErrorForDisplayFunction · 0.85
sendOrEditMethod · 0.45

Tested by

no test coverage detected