Whatsapp-chatbot-python

Latest version: v0.9.1

Safety actively analyzes 625566 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.9.1

Enhancements

- Updated docs

Dependencies

- Bump whatsapp-api-client-python from 0.0.44 to 0.0.45

0.9.0

Important changes

- The default value for the `raise_errors` option has been changed to `False`
- Now if an error is received during event handling, the bot will attempt to handle the event again after **5** seconds

Features

- Added poll support

[Example of working with a poll](https://github.com/green-api/whatsapp-chatbot-python/blob/master/examples/poll.py)

You can subscribe to notifications for incoming polls and incoming poll updates using the `poll_message` and `poll_update_message` decorators. Example:

python
bot.router.poll_message()
def poll_message_handler(notification: Notification) -> None:
print(notification.event["messageData"]["pollMessageData"]["options"])


python
bot.router.poll_update_message()
def poll_update_message_handler(notification: Notification) -> None:
print(notification.event["messageData"]["pollMessageData"]["votes"])

0.8.0

Fixes

- Fixed docs
- Fixed workflows

Enhancements

- Updated docs
- Updated setup

Features

- Added FAQ
- Added logger
- Added debug mode

In debug mode you can see data received from `whatsapp-api-client-python`

python
bot = GreenAPIBot("", "", debug_mode=True)


- Added `raise_errors` option

If the option is enabled, it will be raised when an error is received. Enabled by default

python
bot = GreenAPIBot("", "", raise_errors=True)


- Added bot debug mode

In the bot debug mode you can see all actions with the received data and their handling

python
bot = GreenAPIBot("", "", bot_debug_mode=True)


- Added Python **3.12** support

Dependencies

- Bump whatsapp-api-client-python from 0.0.41 to 0.0.44

0.7.0

Fixes

- Fixed docs

Features

- Updated RegExpFilter (flags have been added)

python
bot.router.message(regexp=("message", re.IGNORECASE))
def message_handler(notification: Notification) -> None:
print(notification.event)


- Added __validate_response (to validate requests)

Dependencies

- Bump whatsapp-api-client-python from 0.0.40 to 0.0.41

0.6.0

- Added parameter `settings` (is used to set up instance settings)
- Added parameter `delete_notifications_at_startup` (is used to delete old incoming notifications)

0.5.3

- Added constant with all text types (`TEXT_TYPES`)
- Added processing of all text types (SomedayIsTheDay)

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.