-
Notifications
You must be signed in to change notification settings - Fork 200
Open
Labels
Description
Description
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