From 9d68accf1bd3970b47fe11cf6e2797cfb646acde Mon Sep 17 00:00:00 2001 From: Izan Gil <66965250+SrIzan10@users.noreply.github.com> Date: Sun, 19 Apr 2026 20:02:25 +0200 Subject: [PATCH] docs: add more setup guide --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ff41af6..ce0a49c 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ bun install ## run -populate env: +populate env: ``` REDIS_URL="" # you are better off generating this with "openssl rand -base64 32" @@ -18,6 +18,13 @@ AUTH_KEY="asdfasdasddfasdfasddf" CHAT_ID="" ``` +to get the chat id, add the following code to `src/index.ts` (under the qr code listener) and run it locally. then send a message to the chat you want to send notifs to: +```ts +wa.on("message_create", (message) => { + console.log(`[WA] the chat id for the message you sent is: ${message.to}`); +}) +``` + ```bash bun run src/index.ts ```