From e20fb63b943d2adcd2b582cf6728cdd2d1f05e90 Mon Sep 17 00:00:00 2001 From: gekkedev <17025257+gekkedev@users.noreply.github.com> Date: Tue, 1 Oct 2024 14:47:46 +0200 Subject: [PATCH] fix: enhanced type definition for recipients of the sendFile method --- src/api/layers/sender.layer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/layers/sender.layer.ts b/src/api/layers/sender.layer.ts index 79c237fc4..fb072c749 100644 --- a/src/api/layers/sender.layer.ts +++ b/src/api/layers/sender.layer.ts @@ -38,7 +38,7 @@ import { stickerSelect, } from '../helpers'; import { filenameFromMimeType } from '../helpers/filename-from-mimetype'; -import { Message, SendFileResult, SendStickerResult } from '../model'; +import { Message, SendFileResult, SendStickerResult, Wid } from '../model'; import { ChatState } from '../model/enum'; import { ListenerLayer } from './listener.layer'; import { @@ -604,7 +604,7 @@ export class SenderLayer extends ListenerLayer { * @param options */ public async sendFile( - to: string, + to: string | Wid, pathOrBase64: string, options?: FileMessageOptions );