Skip to content

Releases: green-api/whatsapp-chatbot-python

Release v0.9.9

17 Feb 08:04

Choose a tag to compare

Release v0.9.8

25 Nov 04:12
9075ba4

Choose a tag to compare

What's Changed

  • Added sendTyping method in #49

Full Changelog: v0.9.7...v0.9.8

Release v0.9.7

13 Nov 06:19
2f39b18

Choose a tag to compare

Features

  • Added sendInteractiveButtons method
  • Added sendInteractiveButtonsReply method

Enhancements

  • Updated examples for new methods

v0.9.6

07 Feb 15:11

Choose a tag to compare

Bump whatsapp_api_client_python version up to 0.0.49.
Changed requierements setting to >=.

0.9.5

27 Jan 11:04

Choose a tag to compare

  • Bump whatsapp_api_client_python version up to 0.0.48.

0.9.4

16 Dec 06:23

Choose a tag to compare

Release 0.9.4

Updated dependencies

03 Oct 12:40
51d1a1a

Choose a tag to compare

Dependencies

  • Bump whatsapp-api-client-python from 0.0.46 to 0.0.47

Updated dependencies

30 Sep 14:50
d2a3364

Choose a tag to compare

Enhancements

  • Updated docs

Dependencies

  • Bump whatsapp-api-client-python from 0.0.45 to 0.0.46

Updated dependencies

13 Mar 05:54
589bf02

Choose a tag to compare

Enhancements

  • Updated docs

Dependencies

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

Added poll support

07 Feb 12:09
e1af0c5

Choose a tag to compare

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

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"])