-
Notifications
You must be signed in to change notification settings - Fork 0
eng updates + BR translation #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
purpshell
wants to merge
1
commit into
main
Choose a base branch
from
docs/jids-socket-config-ptbr
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -39,7 +39,7 @@ sock.ev.on('creds.update', saveCreds) | |||||
|
|
||||||
| ### `browser` | ||||||
|
|
||||||
| Controls how Baileys identifies itself to WhatsApp. The type is `WABrowserDescription`, which is a `[platform, browserName, version]` tuple. Use the `Browsers` constant instead of writing the tuple manually. | ||||||
| Controls how Baileys identifies itself to WhatsApp. The type is `WABrowserDescription`, which is a `[platform, browserName, version]` tuple. Use the `Browsers` constant instead of writing the tuple manually — this is also the name that appears in WhatsApp's **Linked Devices** list. | ||||||
|
|
||||||
| ```typescript | ||||||
| import makeWASocket, { Browsers } from '@whiskeysockets/baileys' | ||||||
|
|
@@ -56,7 +56,35 @@ const sock = makeWASocket({ | |||||
| }) | ||||||
| ``` | ||||||
|
|
||||||
| The browser you choose affects how much history WhatsApp sends on first sync. Desktop browser identities (macOS or Windows) receive more history than mobile ones. | ||||||
| A few ready-made presets are available: | ||||||
|
|
||||||
| | Preset | Example | | ||||||
| | --- | --- | | ||||||
| | `Browsers.ubuntu('My App')` | Ubuntu — My App | | ||||||
| | `Browsers.macOS('Desktop')` | macOS — Desktop | | ||||||
| | `Browsers.windows('My App')` | Windows — My App | | ||||||
|
|
||||||
| The browser you choose also affects how much history WhatsApp sends on first sync. Desktop identities (macOS or Windows) receive significantly more history than mobile ones. | ||||||
|
|
||||||
| ### Receiving full message history | ||||||
|
|
||||||
| By default, Baileys connects with a Chrome browser profile, which limits how much history WhatsApp delivers on the initial sync. To request the full history, set `syncFullHistory: true` and use the `Browsers.macOS('Desktop')` preset, which WhatsApp treats as a desktop client eligible for extended history. | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P3: This wording contradicts the documented default for Prompt for AI agents
Suggested change
|
||||||
|
|
||||||
| ```typescript | ||||||
| import makeWASocket, { Browsers } from '@whiskeysockets/baileys' | ||||||
|
|
||||||
| const sock = makeWASocket({ | ||||||
| auth: state, | ||||||
| browser: Browsers.macOS('Desktop'), | ||||||
| syncFullHistory: true, | ||||||
| }) | ||||||
| ``` | ||||||
|
|
||||||
| History messages arrive asynchronously via the `messaging-history.set` event after the connection opens. See [Sync chat history](/advanced/history-sync) for details on consuming the payload. | ||||||
|
|
||||||
| <Note> | ||||||
| Requesting full history can significantly increase startup time and memory usage on accounts with large chat histories. | ||||||
| </Note> | ||||||
|
|
||||||
| ### `logger` | ||||||
|
|
||||||
|
|
||||||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2: Clarify that
META_AI_JID(@c.us) does not matchisJidMetaAI(@bot) to avoid a misleading detection example.Prompt for AI agents
</file context>