telegram error on brand new install
root@orchestrator:~/clawdbot# pnpm install && pnpm run build
Scope: all 2 workspace projects
Lockfile is up to date, resolution step is skipped
Already up to date
. postinstall$ node scripts/postinstall.js
└─ Done in 54ms
Done in 1.3s using pnpm v10.23.0
src/channels/plugins/outbound/telegram.ts:31:7 - error TS2322: Type 'string | number | undefined' is not assignable to type 'number | undefined'.
Type 'string' is not assignable to type 'number'.
31 messageThreadId: threadId ?? undefined,
~~~
src/channels/plugins/outbound/telegram.ts:44:7 - error TS2322: Type 'string | number | undefined' is not assignable to type 'number | undefined'.
Type 'string' is not assignable to type 'number'.
44 messageThreadId: threadId ?? undefined,
~~~
src/channels/plugins/telegram.ts:240:9 - error TS2322: Type 'string | number | undefined' is not assignable to type 'number | undefined'.
Type 'string' is not assignable to type 'number'.
240 messageThreadId: threadId ?? undefined,
~~~
src/channels/plugins/telegram.ts:255:9 - error TS2322: Type 'string | number | undefined' is not assignable to type 'number | undefined'.
Type 'string' is not assignable to type 'number'.
255 messageThreadId: threadId ?? undefined,
~~~
Found 4 errors in 2 files.
Errors Files
2 src/channels/plugins/outbound/telegram.ts:31
2 src/channels/plugins/telegram.ts:240
ELIFECYCLE Command failed with exit code 1.
Scope: all 2 workspace projects
Lockfile is up to date, resolution step is skipped
Already up to date
. postinstall$ node scripts/postinstall.js
└─ Done in 54ms
Done in 1.3s using pnpm v10.23.0
clawdbot@2026.1.14 build /root/clawdbot
tsc -p tsconfig.json && tsx scripts/canvas-a2ui-copy.ts
src/channels/plugins/outbound/telegram.ts:31:7 - error TS2322: Type 'string | number | undefined' is not assignable to type 'number | undefined'.
Type 'string' is not assignable to type 'number'.
31 messageThreadId: threadId ?? undefined,
src/channels/plugins/outbound/telegram.ts:44:7 - error TS2322: Type 'string | number | undefined' is not assignable to type 'number | undefined'.
Type 'string' is not assignable to type 'number'.
44 messageThreadId: threadId ?? undefined,
src/channels/plugins/telegram.ts:240:9 - error TS2322: Type 'string | number | undefined' is not assignable to type 'number | undefined'.
Type 'string' is not assignable to type 'number'.
240 messageThreadId: threadId ?? undefined,
src/channels/plugins/telegram.ts:255:9 - error TS2322: Type 'string | number | undefined' is not assignable to type 'number | undefined'.
Type 'string' is not assignable to type 'number'.
255 messageThreadId: threadId ?? undefined,
Found 4 errors in 2 files.
Errors Files
2 src/channels/plugins/outbound/telegram.ts:31
2 src/channels/plugins/telegram.ts:240
ELIFECYCLE Command failed with exit code 1.
