Overview
FIFA Bot integrates with WhatsApp Web to send you real-time notifications about every important event: purchases, sales, errors, and system status updates. Stay informed about your trading bot from anywhere, even when you’re away from your computer.Notification Types
- Purchase Confirmations: When a player is successfully bought
- Failed Purchases: When a purchase attempt doesn’t complete
- New Price Ranges: When the bot adjusts search parameters
- Balance Updates: Current coin balance after clearing sold items
- Screenshots: Visual confirmation of bot status
- System Events: Process started/stopped, errors, timing updates
How It Works
The bot uses a second Chrome instance with Selenium to control WhatsApp Web:WhatsApp notifications require a Chrome instance running on port 9222 with WhatsApp Web already logged in. See setup instructions below.
Text Notifications
Sending Messages
The core function sends text messages to your configured WhatsApp chat:XPath Targeting
XPath Targeting
The function uses XPath selectors to identify WhatsApp Web elements. These paths:
- Target the first chat in your chat list
- Locate the message input field
- Find the send button
Message Examples
- Purchase Success
- Purchase Failed
- Price Range Update
- Balance Update
- System Status
- A player was purchased
- Purchase price: 850 coins
- Iteration number: 127
Screenshot Notifications
Automated Screenshots
The bot can capture and send screenshots of the FIFA Web App:Sending Images
When Screenshots Are Sent
- After clearing sold items (to show transfer list)
- When errors occur (for debugging)
- On demand via remote control SCREENSHOT command
- After re-login sequence completes
Clipboard Helper Function
Notification Settings
Control which notifications are sent using checkboxes in the bot interface:- Enable Text Notifications
- Enable Screenshot Notifications
Check the “Enviar Whatsapp eW=1” checkbox in the bot interface.This enables:
- Purchase notifications
- Price range updates
- Balance updates
- System status messages
Setup Instructions
Launch WhatsApp Web
Run Chrome in debugging mode on port 9222:
Use a separate user data directory from your FIFA Web App Chrome instance (which runs on port 9250).
Login to WhatsApp Web
- Navigate to https://web.whatsapp.com
- Scan QR code with your phone
- Keep this Chrome window open
Configure Chat
Pin the chat where you want to receive notifications to the top of your chat list.The bot sends messages to the first chat in the sidebar (top-pinned chat).Options:
- Personal chat with yourself (create a group with only you)
- Dedicated bot notifications group
- Chat with a trusted friend/partner
Enable Notifications
In the bot interface:
- Check “Enviar Whatsapp eW=1” for text notifications
- Check “Enviar ScreenShot eSS=1” for screenshot notifications
Common Notification Scenarios
Successful Trading Session
Successful Trading Session
- Price range calculation
- Two successful purchases
- Sold items cleared
- Updated balance
Failed Purchase Attempt
Failed Purchase Attempt
Error Recovery
Error Recovery
Re-Login Sequence
Re-Login Sequence
Troubleshooting
Messages not sending
Messages not sending
Possible causes:
- WhatsApp Web not logged in
- Chrome on port 9222 not running
- Wrong chat selected (not pinned at top)
- XPath selectors outdated
- Verify Chrome debugger connection
- Check WhatsApp Web is active
- Re-pin notification chat to top
- Update XPaths if WhatsApp Web updated
Screenshots not sending
Screenshots not sending
Possible causes:
- Screenshot setting disabled (eSS=0)
- Clipboard access issues
- Screenshot file path problems
- Enable “Enviar ScreenShot eSS=1”
- Run bot as administrator (for clipboard access)
- Check screenshot.png is created in bot directory
Duplicate messages
Duplicate messages
Cause: Network delay causing retry logicSolution: Increase time.sleep() delays in enviarWhatsapp function
Privacy & Security
Next Steps
Remote Control
Control your bot from anywhere
Automated Trading
Understand the trading algorithms
Error Handling
Learn how to handle errors
Advanced Configuration
Optimize notification settings