Frequently Asked Questions¶
Common questions and answers about Neonize.
General Questions¶
What is Neonize?¶
Neonize is a Python library for WhatsApp automation built on top of the Whatsmeow Go library. It provides a simple, Python-native API for interacting with WhatsApp Web.
Is Neonize free?¶
Yes, Neonize is completely free and open-source under the Apache 2.0 license.
What Python versions are supported?¶
Neonize requires Python 3.10 or higher.
Installation & Setup¶
How do I install Neonize?¶
| Bash | |
|---|---|
See the Installation Guide for more details.
Do I need to install Go?¶
No, pre-built binaries are included with the package. You don't need to install Go unless you're building from source.
Why do I get "ModuleNotFoundError: No module named 'neonize'"?¶
Make sure you've installed Neonize in the correct Python environment:
| Bash | |
|---|---|
Authentication¶
How do I authenticate with WhatsApp?¶
You can use either QR code or pairing code authentication. See the Authentication Guide.
Can I use multiple WhatsApp accounts?¶
Yes, create separate client instances with different session names:
How long does my session last?¶
Sessions persist indefinitely unless you logout or WhatsApp revokes the session.
My QR code won't scan, what should I do?¶
- Make sure your terminal supports QR code display
- Try saving the QR code to an image file
- Check that your phone and computer have internet connection
Usage & Features¶
Can I send messages to unsaved numbers?¶
Yes, use the build_jid function:
| Python | |
|---|---|
How do I send images/videos?¶
| Python | |
|---|---|
See Media Handling for more details.
Can I create WhatsApp groups?¶
Yes:
| Python | |
|---|---|
See Group Management.
Does Neonize support WhatsApp Business features?¶
Neonize works with both regular WhatsApp and WhatsApp Business accounts.
Performance & Limitations¶
What are WhatsApp's rate limits?¶
WhatsApp has undocumented rate limits. To avoid bans:
- Don't send more than 20-30 messages per minute
- Implement delays between messages
- Don't spam users
Can I use Neonize in production?¶
Yes, Neonize is production-ready. Use PostgreSQL for production databases:
How many messages can Neonize handle?¶
Neonize can handle thousands of messages per day. For high-volume applications, use the async client.
Is Neonize faster than other libraries?¶
Yes, because it's built on the Go-based Whatsmeow library, Neonize is significantly faster than pure Python implementations.
Errors & Troubleshooting¶
I'm getting "SendMessageError", what should I do?¶
Common causes:
- Invalid JID format
- User blocked your number
- Rate limiting
Enable debug logging to see details:
The bot disconnects randomly¶
This is usually due to:
- Poor internet connection
- WhatsApp maintenance
- Session issues
Implement reconnection logic:
| Python | |
|---|---|
"Database is locked" error with SQLite¶
This occurs with concurrent access. Solutions:
- Use PostgreSQL for multi-threaded applications
- Enable WAL mode for SQLite
- Use the async client
FFmpeg errors when sending videos¶
Make sure FFmpeg is installed and in your PATH:
| Bash | |
|---|---|
Database & Storage¶
Can I use PostgreSQL instead of SQLite?¶
Yes, recommended for production:
| Python | |
|---|---|
Where is session data stored?¶
By default in {session_name}.db in the current directory. You can customize:
| Python | |
|---|---|
How do I backup my session?¶
Simply backup the database file:
Can I migrate from SQLite to PostgreSQL?¶
Yes, but you'll need to re-authenticate. Session data is not directly portable between database types.
Development¶
How do I contribute to Neonize?¶
See the Contributing Guide.
Where do I report bugs?¶
Open an issue on GitHub.
How do I request features?¶
Open a feature request on GitHub Discussions.
Can I use Neonize commercially?¶
Yes, the Apache 2.0 license allows commercial use.
WhatsApp Policies¶
Is using Neonize against WhatsApp's Terms of Service?¶
WhatsApp's Terms of Service prohibit using unauthorized third-party clients. Use at your own risk and responsibility.
Can my account get banned?¶
Possible if you:
- Send spam
- Violate WhatsApp's policies
- Exceed rate limits
- Use aggressive automation
To minimize risk:
- Follow WhatsApp's policies
- Implement rate limiting
- Don't spam users
- Use for personal/business communication only
What happens if I get banned?¶
WhatsApp may temporarily or permanently ban your number. There's no guaranteed way to appeal.
Comparison with Other Libraries¶
Neonize vs other WhatsApp libraries?¶
| Feature | Neonize | Others |
|---|---|---|
| Performance | ⚡ Very Fast (Go-based) | 🐌 Slower (Pure Python) |
| Async Support | ✅ Yes | ❌ Limited |
| Type Hints | ✅ Full | ⚠️ Partial |
| Documentation | ✅ Comprehensive | ⚠️ Varies |
| Protocol Buffers | ✅ Native | ❌ Manual |
Should I migrate from library X?¶
Neonize offers:
- Better performance
- More features
- Active development
- Better documentation
Consider migrating if you need these benefits.
Still Have Questions?¶
- 💬 Join GitHub Discussions
- 🐛 Report bugs on GitHub Issues
- 📧 Check existing issues before creating new ones