Metadata-Version: 2.1
Name: whatsapp_messager
Version: 0.0.2
Summary: WhatsApp message sender using WhatsApp Business API
Home-page: https://github.com/John-sys/whatsapp-sender_library
Author: John Gbaya-kokoya
Author-email: John Gbaya-Kokoya <gbayakokoyajohnjr@gmail.com>
Project-URL: Homepage, https://github.com/John-sys/whatsapp-sender_library?tab=readme-ov-file
Project-URL: Documentation, https://github.com/John-sys/whatsapp-sender_library?tab=readme-ov-file
Project-URL: Repository, https://github.com/John-sys/whatsapp-sender_library
Project-URL: Issues, https://github.com/John-sys/whatsapp-sender_library/issues
Keywords: whatsapp,messaging,automation,api
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.25.0
Requires-Dist: setuptools>=42.0.0

`whatsapp_messager` is a Python library that makes it easy to send messages using WhatsApp's official API. This library is built to interact with the WhatsApp Business API, providing a simple way to send text messages and OTP messages.

## Features

- Send OTP messages via WhatsApp.
    
- Send general text messages via WhatsApp.
    
- Simple and easy-to-use interface for developers.

## Installation

You can install the library using `pip`:

`pip install whatsapp_sender`

## Usage
To start using `whatsapp-sender`, you need to create an instance of the `WhatsAppSender` class with your access token, phone number ID, and version number.

### Import and Setup
```
from whatsapp_sender import WhatsAppSender

# Initialize the WhatsAppSender
sender = WhatsAppSender(
    access_token="your_access_token",
    phone_number_id="your_phone_number_id",
    version_number="v15.0"  # Optional, default is v15.0
)
```

### Send OTP Message

To send an OTP message:
```
response = sender.send_otp_message(recipient_phone_number="1234567890", otp="123456")
print(response)
```
### Send Text Message

To send a text message:
```
response = sender.send_text_message(
    recipient_phone_number="1234567890",
    message="Hello from WhatsApp Sender!",
    country_code="+1"  # Include the appropriate country code
)
print(response)
```
## Requirements

- Python 3.7+
    
- `requests` library

## Error Handling

The library provides basic error handling and returns success or failure messages based on the API response. If an error occurs, the response will contain details about the failure.

## License

This project is licensed under the MIT License. See the LICENSE file for details.

## Author

- John Gbaya-kokoya
    
- Email
    

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request or open an Issue to improve the library.

## Links

- [GitHub Repository](https://github.com/yourusername/whatsapp-sender)
    
- [Bug Reports](https://github.com/yourusername/whatsapp-sender/issues)
    
- [Documentation](https://github.com/yourusername/whatsapp-sender#readme)
