MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / inject

Function inject

test/bot-gateway.test.ts:18–18  ·  view source on GitHub ↗
(m: Partial<Incoming>)

Source from the content-addressed store, hash-verified

16 stop: async () => {},
17 send: async (chatId, text, buttons) => { sent.push({ chatId, text, buttons }); return { id: `m${++n}` } as MessageRef; },
18 edit: async () => {},
19 ackCallback: async () => {},
20 };
21 const inject = (m: Partial<Incoming>) => onMsg({ platform, chatId: 'c1', userId: 'u1', text: '', ...m } as Incoming);

Callers 1

Calls 1

onMsgFunction · 0.70

Tested by

no test coverage detected