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) => {