(m: Partial<Incoming>)
| 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 |
no test coverage detected