@open-wa/wa-automate-types-only 4.35.2 → 4.35.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/Client.d.ts +3 -3
- package/dist/api/model/chat.d.ts +4 -0
- package/package.json +1 -1
package/dist/api/Client.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="node" />
|
2
2
|
import { Page } from 'puppeteer';
|
3
|
-
import { Chat, LiveLocationChangedEvent, ChatState, ChatMuteDuration, GroupChatCreationResponse } from './model/chat';
|
3
|
+
import { Chat, LiveLocationChangedEvent, ChatState, ChatMuteDuration, GroupChatCreationResponse, EphemeralDuration } from './model/chat';
|
4
4
|
import { Contact, NumberCheck } from './model/contact';
|
5
5
|
import { Message } from './model/message';
|
6
6
|
import { AxiosRequestConfig } from 'axios';
|
@@ -1551,10 +1551,10 @@ export declare class Client {
|
|
1551
1551
|
*
|
1552
1552
|
* Turn the ephemeral setting in a chat to on or off
|
1553
1553
|
* @param chatId The ID of the chat
|
1554
|
-
* @param ephemeral `true` to turn on the ephemeral setting, `false` to turn off the ephemeral setting.
|
1554
|
+
* @param ephemeral `true` to turn on the ephemeral setting to 1 day, `false` to turn off the ephemeral setting. Other options: `604800 | 7776000`
|
1555
1555
|
* @returns `Promise<boolean>` true if the setting was set, `false` if the chat does not exist
|
1556
1556
|
*/
|
1557
|
-
setChatEphemeral(chatId: ChatId, ephemeral: boolean): Promise<boolean>;
|
1557
|
+
setChatEphemeral(chatId: ChatId, ephemeral: EphemeralDuration | boolean): Promise<boolean>;
|
1558
1558
|
/**
|
1559
1559
|
* Send a giphy GIF as an animated sticker.
|
1560
1560
|
* @param to ChatId
|
package/dist/api/model/chat.d.ts
CHANGED
@@ -207,3 +207,7 @@ export interface GroupChatCreationResponse {
|
|
207
207
|
ContactId?: GroupChatCreationParticipantAddResponse;
|
208
208
|
}[];
|
209
209
|
}
|
210
|
+
/**
|
211
|
+
* Ephemeral duration can be 1 day, 7 days or 90 days. The default is 1 day.
|
212
|
+
*/
|
213
|
+
export declare type EphemeralDuration = 86400 | 604800 | 7776000;
|