Skip to content

Releases: green-api/whatsapp-chatbot-python

Updated dependencies

03 Oct 12:40
51d1a1a
Compare
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
Compare
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
Compare
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
Compare
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"])

Added logger

28 Nov 19:23
5c5a379
Compare
Choose a tag to compare

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 option

    If 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

24 Aug 16:58
63ed29e
Compare
Choose a tag to compare

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

28 Jul 09:36
0dea83e
Compare
Choose a tag to compare
  • 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

21 Jul 05:58
d91ef10
Compare
Choose a tag to compare
  • 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

14 Jul 05:43
9adc580
Compare
Choose a tag to compare
  • 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

06 Jul 11:56
bfdf7c2
Compare
Choose a tag to compare
  • Bump whatsapp-api-client-python from 0.0.38 to 0.0.39