Skip to content

Commit 6988529

Browse files
Release 4.75.0
1 parent c1d2e74 commit 6988529

File tree

10 files changed

+78
-7
lines changed

10 files changed

+78
-7
lines changed

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
99

10-
## [4.74.2](https://github.com/open-wa/wa-automate-nodejs/compare/4.74.1...4.74.2)
10+
## [4.75.0](https://github.com/open-wa/wa-automate-nodejs/compare/4.74.2...4.75.0)
1111

1212
### Commits
1313

14+
- ✨ feat: `pinMessage` #3256 [`d434a2a`](https://github.com/open-wa/wa-automate-nodejs/commit/d434a2ab7842b0e24f8eba1f513590f3ed23e62d)
15+
- ✨ feat: `keepMessage` #3256 [`686a71e`](https://github.com/open-wa/wa-automate-nodejs/commit/686a71ec1f0d65464ff02f92eeaf6d4ab43cbba0)
16+
- updated types-only package [`b6a9cd6`](https://github.com/open-wa/wa-automate-nodejs/commit/b6a9cd6095460f258e1bfd4d976e304bf8cc1114)
17+
18+
## [4.74.2](https://github.com/open-wa/wa-automate-nodejs/compare/4.74.1...4.74.2) - 2024-11-21
19+
20+
### Commits
21+
22+
- Release 4.74.2 [`22e89f1`](https://github.com/open-wa/wa-automate-nodejs/commit/22e89f109a6f9274723825705a80c8a5d67147eb)
1423
- 🚑 fix missing isGroup #3253 [`c8e45b6`](https://github.com/open-wa/wa-automate-nodejs/commit/c8e45b6a94754406c67e8ec191dc882f382d6317)
1524
- updated types-only package [`ec082b2`](https://github.com/open-wa/wa-automate-nodejs/commit/ec082b2133a8f0ab39ec0ed516e7e81e766ed2dc)
1625

bin/oas-type-schemas.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/docs/reference/api/Client/classes/Client.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2597,6 +2597,28 @@ true to join the beta, false to leave
25972597

25982598
***
25992599

2600+
### keepMessage()
2601+
2602+
> **keepMessage**(`id`, `keep`): `Promise`\<`boolean`\>
2603+
2604+
Keep a message inside an ephemeral chat
2605+
2606+
#### Parameters
2607+
2608+
**id**: [`MessageId`](/reference/api/model/aliases/type-aliases/MessageId.md)
2609+
2610+
The id of the message
2611+
2612+
**keep**: `boolean`
2613+
2614+
#### Returns
2615+
2616+
`Promise`\<`boolean`\>
2617+
2618+
boolean true: worked
2619+
2620+
***
2621+
26002622
### kill()
26012623

26022624
> **kill**(`reason`): `Promise`\<`boolean`\>
@@ -2987,6 +3009,36 @@ The id of the conversation
29873009

29883010
**pin**: `boolean`
29893011

3012+
boolean true => pin, false => unpin
3013+
3014+
#### Returns
3015+
3016+
`Promise`\<`boolean`\>
3017+
3018+
boolean true: worked
3019+
3020+
***
3021+
3022+
### pinMessage()
3023+
3024+
> **pinMessage**(`id`, `pin`, `pinDuration`): `Promise`\<`boolean`\>
3025+
3026+
Pin/Unpin message
3027+
3028+
#### Parameters
3029+
3030+
**id**: [`MessageId`](/reference/api/model/aliases/type-aliases/MessageId.md)
3031+
3032+
The id of the message
3033+
3034+
**pin**: `boolean`
3035+
3036+
boolean true => pin, false => unpin
3037+
3038+
**pinDuration**: [`MessagePinDuration`](/reference/api/model/message/type-aliases/MessagePinDuration.md) = `"ThirtyDays"`
3039+
3040+
The length of time to pin the message. Default `ThirtyDays`
3041+
29903042
#### Returns
29913043

29923044
`Promise`\<`boolean`\>

docs/docs/reference/api/model/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,12 @@ Re-exports [MessageInfoInteraction](/reference/api/model/message/interfaces/Mess
314314

315315
***
316316

317+
### MessagePinDuration
318+
319+
Re-exports [MessagePinDuration](/reference/api/model/message/type-aliases/MessagePinDuration.md)
320+
321+
***
322+
317323
### MessageTypes
318324

319325
Re-exports [MessageTypes](/reference/api/model/message/enumerations/MessageTypes.md)

docs/docs/reference/api/model/message/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@
1717
- [PollVote](/reference/api/model/message/interfaces/PollVote.md)
1818
- [QuoteMap](/reference/api/model/message/interfaces/QuoteMap.md)
1919
- [ReactionSender](/reference/api/model/message/interfaces/ReactionSender.md)
20+
21+
### Type Aliases
22+
23+
- [MessagePinDuration](/reference/api/model/message/type-aliases/MessagePinDuration.md)

docs/docs/reference/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @open-wa/wa-automate v4.74.2
1+
# @open-wa/wa-automate v4.75.0
22

33
## Modules
44

docs/docs/reference/typedoc-sidebar.cjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@open-wa/wa-automate",
3-
"version": "4.74.2",
3+
"version": "4.75.0",
44
"licenseCheckUrl": "https://funcs.openwa.dev/license-check",
55
"brokenMethodReportUrl": "https://funcs.openwa.dev/report-bm",
66
"patches": "https://cdn.openwa.dev/patches.json",

release.png

10.8 KB
Loading

0 commit comments

Comments
 (0)