()
| 6 | /** Fake transport that also captures the native command-menu registration. */ |
| 7 | function fakeTransport() { |
| 8 | let onMsg: (m: Incoming) => void = () => {}; |
| 9 | const sent: Array<{ text: string; buttons?: Button[][] }> = []; |
| 10 | let menu: { command: string; description: string }[] | null = null; |
| 11 | const t: Transport = { |