Releases: green-api/whatsapp-chatbot-python
Releases · green-api/whatsapp-chatbot-python
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_errors
option 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"])
Added logger
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
bot = GreenAPIBot("", "", debug_mode=True)
-
Added
raise_errors
optionIf the option is enabled, it will be raised when an error is received. Enabled by default
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
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
Updated RegExpFilter
Fixes
- Fixed docs
Features
- Updated RegExpFilter (flags have been added)
@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
Added parameters for the bot
- Added parameter
settings
(is used to set up instance settings) - Added parameter
delete_notifications_at_startup
(is used to delete old incoming notifications)
Fixed method of getting message text
- Added constant with all text types (
TEXT_TYPES
) - Added processing of all text types (@SomedayIsTheDay)
Bump whatsapp-api-client-python from 0.0.39 to 0.0.40
- Bump whatsapp-api-client-python from 0.0.39 to 0.0.40
Bump whatsapp-api-client-python from 0.0.38 to 0.0.39
- Bump whatsapp-api-client-python from 0.0.38 to 0.0.39