Releases: green-api/whatsapp-chatbot-python
Releases · green-api/whatsapp-chatbot-python
Release v0.9.9
Full Changelog: v0.9.8...v0.9.9
Release v0.9.8
Release v0.9.7
Features
- Added sendInteractiveButtons method
- Added sendInteractiveButtonsReply method
Enhancements
- Updated examples for new methods
v0.9.6
Bump whatsapp_api_client_python version up to 0.0.49.
Changed requierements setting to >=.
0.9.5
- Bump whatsapp_api_client_python version up to 0.0.48.
0.9.4
Release 0.9.4
- Added an example of handling outgoing messages: https://github.com/green-api/whatsapp-chatbot-python/blob/master/examples/outgoing_message.py
- Added an example of handling group/personal messages: https://github.com/green-api/whatsapp-chatbot-python/blob/master/examples/groups_filter.py
- Added helpers:
get_id_message(),get_status_message(),get_message_data() - Fix
get_message_text()bug when called to outgoing status message
Updated dependencies
Dependencies
- Bump whatsapp-api-client-python from 0.0.46 to 0.0.47
Updated dependencies
Enhancements
- Updated docs
Dependencies
- Bump whatsapp-api-client-python from 0.0.45 to 0.0.46
Updated dependencies
Enhancements
- Updated docs
Dependencies
- Bump whatsapp-api-client-python from 0.0.44 to 0.0.45
Added poll support
Important changes
- The default value for the
raise_errorsoption has been changed toFalse - 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
You can subscribe to notifications for incoming polls and incoming poll updates using the poll_message and poll_update_message decorators. Example:
@bot.router.poll_message()
def poll_message_handler(notification: Notification) -> None:
print(notification.event["messageData"]["pollMessageData"]["options"])@bot.router.poll_update_message()
def poll_update_message_handler(notification: Notification) -> None:
print(notification.event["messageData"]["pollMessageData"]["votes"])