Whatsapp framework simplifies building and deploying whatsapp based application
Project description
Whatsapp Framework
Whatsapp Framework framework simplifies building and deploying whatsapp based applications.
Installation
pip install whatsapp-framework
Example Usage
Here's a basic example of how to use Whatsapp Framework:
from whatsapp.chat import ChatHandler
from whatsapp.events import MessageEvent
from whatsapp.reply_message import Message, Text
class SimpleChatHandler(ChatHandler):
token = "<whatsapp_access_token>"
whatsapp_number = "<whatsapp_phone_number>"
def on_message(self, message: MessageEvent):
req = Message(
type="text",
to=message.from_,
text=Text(
preview_url=False,
body="Hello, World!"
),
)
self.send(req)
def main():
chat_handler = SimpleChatHandler()
chat_handler.start()
if __name__ == "__main__":
main()
License
Whatsapp Framework is licensed under the MIT License. See the LICENSE file for details.
Contact
If you have any questions or need support, please open an issue on GitHub Issues or contact us at support@ravenconsulting.site.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file whatsapp_framework-0.1.11.tar.gz
.
File metadata
- Download URL: whatsapp_framework-0.1.11.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/5.15.0-119-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb3700e7355c17df98a942ba1d556829f527f5acad7bebc5ca48eb70ff991302 |
|
MD5 | 154176c8e94c5dff79d3db7c582205ed |
|
BLAKE2b-256 | 3ce494bdbf28da38c916ef0786a35270a85adca2a56c3778a3083174147e45f5 |
File details
Details for the file whatsapp_framework-0.1.11-py3-none-any.whl
.
File metadata
- Download URL: whatsapp_framework-0.1.11-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/5.15.0-119-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4286c2390924aadbb3331b9a9dae27f41d90a88d603982d22b088242268ec96e |
|
MD5 | b2bffb570dea254b057c9766286fe85c |
|
BLAKE2b-256 | acc1b1b2c2a4b72ae67ae7ee9337adc249e2c4db59e7c8a0272e0700c04dd5e1 |