On GitHub you can find an implementation of a simple WhatsApp chatbot that demonstrates the basic functionality of sending and receiving messages of different types and working with groups.
Using this source code will allow you to customize the bot to your needs or take it as a basis for creating any other integration.
Bot's source code
Basic Version (for Beginners)
This version is ideal if you're just starting with bot development. The bot responds to commands with text messages and image sharing, allowing you to focus on the core functionality without being overwhelmed by unnecessary features.