You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
## Rectify Error in WhatsApp Automation sendMsg Function #349
The sendMsg function in src/apps/pages/automations/Messenger/whatsApp.py has a TODO comment indicating there's an error that needs to be rectified. The current implementation uses pywhatkit.sendwhatmsg_instantly() combined with pyautogui keyboard simulation, which is unreliable and prone to failures.
Problem
The current approach has several issues:
Relies on browser automation which is fragile
Uses hardcoded sleep times that may not work on all systems
No proper error handling for common failure scenarios
Browser focus issues can cause messages to be sent incorrectly
Proposed Solution
Replace the current implementation with a more reliable approach
Add proper error handling and validation
Implement retry mechanisms for transient failures
Add user feedback for success/failure states
Acceptance Criteria
Messages are sent reliably across different systems
Proper error handling for network issues, authentication failures, etc.
User-friendly feedback for success and failure cases
No dependency on browser automation or UI simulation
Assignees:
Labels: bug, enhancement, good first issue
Thank you for creating this issue! We'll look into it as soon as possible. Your contributions are highly appreciated! 😊
For further communication, join our discord server https://discord.gg/tSqtvHUJzE.
Activity
github-actions commentedon Oct 27, 2025
Thank you for creating this issue! We'll look into it as soon as possible. Your contributions are highly appreciated! 😊
For further communication, join our discord server https://discord.gg/tSqtvHUJzE.
fix: rectify WhatsApp automation sendMsg function with improved error…