whatsapp-chatbot-python

This library helps you easily create a Python chatbot with WhatsApp API.

OTHER License

Downloads
1.1K
Stars
53
Committers
7

Bot releases are hidden (Show)

whatsapp-chatbot-python - Updated dependencies Latest Release

Published by Amele9 7 months ago

Enhancements

  • Updated docs

Dependencies

  • Bump whatsapp-api-client-python from 0.0.44 to 0.0.45
whatsapp-chatbot-python - Added poll support

Published by Amele9 9 months ago

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"])
whatsapp-chatbot-python - Added logger

Published by Amele9 11 months ago

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
whatsapp-chatbot-python - Updated RegExpFilter

Published by Amele9 about 1 year ago

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
whatsapp-chatbot-python - Added parameters for the bot

Published by Amele9 about 1 year ago

  • Added parameter settings (is used to set up instance settings)
  • Added parameter delete_notifications_at_startup (is used to delete old incoming notifications)
whatsapp-chatbot-python - Fixed method of getting message text

Published by Amele9 over 1 year ago

  • Added constant with all text types (TEXT_TYPES)
  • Added processing of all text types (@SomedayIsTheDay)
  • Fixed Notification.get_message_text method (@SomedayIsTheDay)
whatsapp-chatbot-python - Bump whatsapp-api-client-python from 0.0.39 to 0.0.40

Published by Amele9 over 1 year ago

  • Bump whatsapp-api-client-python from 0.0.39 to 0.0.40
whatsapp-chatbot-python - Bump whatsapp-api-client-python from 0.0.38 to 0.0.39

Published by Amele9 over 1 year ago

  • Bump whatsapp-api-client-python from 0.0.38 to 0.0.39
whatsapp-chatbot-python - Added FSM

Published by Amele9 over 1 year ago

  • Added FSM
  • Updated python version
  • Updated docs and examples
  • Bump whatsapp-api-client-python from 0.0.37 to 0.0.38
whatsapp-chatbot-python - Added settings update function and fixed filters

Published by Amele9 over 1 year ago

  • Added settings update function
  • Updated tests
  • Fixed filters
whatsapp-chatbot-python - Updated filters and added break statement

Published by Amele9 over 1 year ago

  • Updated filters
  • Added break statement
  • Added full example
  • Updated docs
  • Updated examples
whatsapp-chatbot-python - Bump whatsapp-api-client-python from 0.0.36 to 0.0.37

Published by Amele9 over 1 year ago

  • Bump whatsapp-api-client-python from 0.0.36 to 0.0.37
whatsapp-chatbot-python - Updated example and fixed links

Published by Amele9 over 1 year ago

  • Updated example
  • Fixed links
whatsapp-chatbot-python - Bump whatsapp-api-client-python from 0.0.35 to 0.0.36

Published by Amele9 over 1 year ago

  • Bump whatsapp-api-client-python from 0.0.35 to 0.0.36
whatsapp-chatbot-python - Added GreenAPIBot class

Published by Amele9 over 1 year ago

  • Updated docs
  • Added GreenAPIBot class
whatsapp-chatbot-python - v0.1.0

Published by Amele9 over 1 year ago

  • Added files
Package Rankings
Top 13.8% on Pypi.org
Related Projects