Skip to content
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

feat: Create WPP.conn.setLimit function #1069

Merged
merged 48 commits into from
Apr 28, 2023

Conversation

vphelipe
Copy link
Contributor

@vphelipe vphelipe commented Apr 22, 2023

/**

  • Change limits
  • @example
  • //Change the maximum size (bytes) for uploading media (max 70MB)
  • WPP.conn.setLimit('maxMediaSize',16777216);
  • //Change the maximum size (bytes) for uploading files (max 1GB)
  • WPP.conn.setLimit('maxFileSize',104857600);
  • //Change the maximum number of contacts that can be selected when sharing (Default 5)
  • WPP.conn.setLimit('maxShare',100);
  • //Change the maximum time (seconds) of a video status
  • WPP.conn.setLimit('statusVideoMaxDuration',120);
  • //Remove pinned conversation limit (only whatsapp web) (Default 3)
  • WPP.conn.setLimit('unlimitedPin',true);

*/

src/whatsapp/functions/ABPropConfig.ts Outdated Show resolved Hide resolved
src/whatsapp/functions/getNumChatsPinned.ts Outdated Show resolved Hide resolved
src/whatsapp/misc/Limits.ts Outdated Show resolved Hide resolved
src/whatsapp/functions/ABPropConfig.ts Outdated Show resolved Hide resolved
src/whatsapp/functions/getNumChatsPinned.ts Show resolved Hide resolved
src/whatsapp/misc/Limits.ts Outdated Show resolved Hide resolved
src/whatsapp/misc/Limits.ts Outdated Show resolved Hide resolved
Co-authored-by: Edgard Lorraine Messias <edgardmessias@gmail.com>
@edgardmessias edgardmessias merged commit 9988fc7 into wppconnect-team:main Apr 28, 2023
2 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants