Skip to content

Commit 506fbf3

Browse files
committed
add support for idThread and clean parameters
1 parent 30b8bc2 commit 506fbf3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,14 @@ async function sendRequest(namespace, text, level = 'INFO', options = {}) {
6969
},
7070
body: JSON.stringify({
7171
idChat: options?.chat?.id || undefined,
72+
idThread: options.idThread || undefined,
7273
secret: options?.chat?.secret || undefined,
7374
namespace,
7475
level,
7576
text,
7677
env: options.env || undefined,
77-
silent: options.silent || false,
78+
silent: options.silent || undefined,
79+
clean: options.clean || undefined,
7880
}),
7981
}
8082

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"type": "module",
3-
"version": "0.3.2",
3+
"version": "0.3.3",
44
"name": "pushnotice",
55
"description": "Application Notifications sent to Telegram. Linking pushnotice.chat into your project.",
66
"keywords": [

0 commit comments

Comments
 (0)