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

Function processKeywordMessage

keyword/keyword.ts:883–904  ·  view source on GitHub ↗
(
  message: Api.Message
)

Source from the content-addressed store, hash-verified

881 (message.media && "caption" in message.media
882 ? String(message.media.caption || "")
883 : "");
884 if (!text) {
885 return;
886 }
887
888 if (message.out) {
889 return;
890 }
891
892 await keywordTasks.checkAndReply(message);
893 } catch (error) {
894 console.error("Process keyword message error:", error);
895 }
896}

Callers

nothing calls this directly

Calls 2

checkAndReplyMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected