diff --git a/index.d.ts b/index.d.ts index 4698c0c..260f8e5 100644 --- a/index.d.ts +++ b/index.d.ts @@ -70,7 +70,7 @@ declare namespace WAWebJS { resetState(): Promise /** Send a message to a specific chatId */ - sendMessage(chatId: string, content: MessageContent, options: MessageSendOptions): Promise + sendMessage(chatId: string, content: MessageContent, options?: MessageSendOptions): Promise /** Marks the client as online */ sendPresenceAvailable(): Promise @@ -302,7 +302,7 @@ declare namespace WAWebJS { /** Returns the Contacts affected by this GroupNotification */ getRecipients: () => Promise, /** Sends a message to the same chat this GroupNotification was produced in */ - reply: (content: MessageContent, options: MessageSendOptions) => Promise, + reply: (content: MessageContent, options?: MessageSendOptions) => Promise, } @@ -484,7 +484,7 @@ declare namespace WAWebJS { * If chatId is specified, it will be sent through the specified Chat. * If not, it will send the message in the same Chat as the original message was sent. */ - reply: (content: MessageContent, chatId: string, options: MessageSendOptions) => Promise, + reply: (content: MessageContent, chatId?: string, options?: MessageSendOptions) => Promise, } /** ID that represents a message */