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

Function inject

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

Source from the content-addressed store, hash-verified

15 ...(withPhoto ? { sendPhoto: async (_c: string, path: string, caption?: string, buttons?: Button[][]) => { photos.push({ path, caption, buttons }); return { id: 'p' } as MessageRef; } } : {}),
16 };
17 const inject = (m: Partial<Incoming>) => onMsg({ platform: 'telegram', chatId: 'c1', userId: 'u1', text: '', ...m } as Incoming);
18 return { t, sent, photos, inject };
19}
20

Callers 1

Calls 1

onMsgFunction · 0.70

Tested by

no test coverage detected