Skip to main content

Whatsapp framework simplifies building and deploying whatsapp based application

Project description

WhatsappPy

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

whatsapp_framework-0.1.10.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

whatsapp_framework-0.1.10-py2.py3-none-any.whl (4.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file whatsapp_framework-0.1.10.tar.gz.

File metadata

  • Download URL: whatsapp_framework-0.1.10.tar.gz
  • Upload date:
  • Size: 3.4 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

Hashes for whatsapp_framework-0.1.10.tar.gz
Algorithm Hash digest
SHA256 5eca65576b87ee8515bad8744736711c6864ca4c46360dd8c2b086b9b9086eac
MD5 a31bee69909b6fea8dfc5829225185a8
BLAKE2b-256 e2d28ada38477af96d70d3f1bb31f96138b44a1a687e13a7fee9a850f2bd2083

See more details on using hashes here.

File details

Details for the file whatsapp_framework-0.1.10-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for whatsapp_framework-0.1.10-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e04be0ca147695de0c3306df7cd9d87815ee8cdabc7f4eefb951edc91f86d074
MD5 648b38cf78d06c9c830683293b6a7ff7
BLAKE2b-256 213dc1244993c0e7754b5547987226d0933dbe87d9274b9ca6807a417dd96c1c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page