From e2dd3bb9d04ebf8649d342d7d3e118541de6eb78 Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 22 Mar 2026 14:20:16 +0100 Subject: [PATCH] fix: cast sendMessage result type for strict TypeScript Co-Authored-By: Claude Opus 4.6 (1M context) --- bot/src/tdlib/client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/src/tdlib/client.ts b/bot/src/tdlib/client.ts index 9846b9d..a9c45a1 100644 --- a/bot/src/tdlib/client.ts +++ b/bot/src/tdlib/client.ts @@ -189,8 +189,8 @@ async function waitForSendConfirmation( }), "sendMessage:copyToUser" ) - .then((result: { id: number }) => { - tempMsgId = result.id; + .then((result) => { + tempMsgId = (result as { id: number }).id; log.debug({ tempMsgId, label }, "Message queued, waiting for confirmation"); }) .catch((err: Error) => {