Skip to content

Commit

Permalink
SW-4282 Library update
Browse files Browse the repository at this point in the history
  • Loading branch information
prostraction committed Sep 30, 2024
1 parent 589bf02 commit db43f0a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ def message_handler(notification: Notification) -> None:
bot.run_forever()
```

### How to handle buttons
### How to handle buttons (deprecated)

The method is temporarily not working. When the method is called, a 403 error will be returned.

To be notified when a button is pressed, you must use the `bot.router.buttons` object.

Expand Down
4 changes: 3 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ def message_handler(notification: Notification) -> None:
bot.run_forever()
```

### Как обрабатывать кнопки
### Как обрабатывать кнопки (неактуально)

Метод временно не работает. При вызове метода вернется ошибка 403.

Чтобы получать уведомления о нажатиях на кнопку, нужно использовать объект `bot.router.buttons`.

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
whatsapp-api-client-python==0.0.45
whatsapp-api-client-python==0.0.46
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="whatsapp-chatbot-python",
version="0.9.1",
version="0.9.2",
description=(
"This library helps you easily create"
" a Python chatbot with WhatsApp API."
Expand Down

0 comments on commit db43f0a

Please sign in to comment.