Releases: green-api/whatsapp-api-client-python
Releases · green-api/whatsapp-api-client-python
Added new buttons methods
Features
- Added sendInteractiveButtons method
- Added sendInteractiveButtonsAsync method
- Added sendInteractiveButtonsReply method
- Added sendInteractiveButtonsReplyAsync method
Enhancements
- Updated docs for new methods
- Updated examples for new methods
Example:
greenAPI.sending.sendInteractiveButtons(
"79001234567@c.us",
"This is message with buttons!",
[{
"type": "call",
"buttonId": "1",
"buttonText": "Call me",
"phoneNumber": "79001234567"
},
{
"type": "url",
"buttonId": "2",
"buttonText": "Green-api",
"url": "https://green-api.com/en/docs/api/sending/SendInteractiveButtons/"
}],
This is header",
"This is footer"
)
Added Async Methods
- Added async methods
- Added documentation for async methods
Added EditMessage
What's Changed
- EditMessage Support in #67
Fixed LastIncomingMessages and LastOutgoingMessages
Fixes
- Fixed minutes argument in
def LastIncomingMessagesanddef LastOutgoingMessages.
Added timeouts for requests
Updated dependencies
Dependencies
- Bump requests from 2.31.0 to 2.32.3
Fixed JSONDecodeError
Added GetAuthorizationCode method
Fixes
- Fixed logger
Enhancements
- Updated python-package.yml
Features
- Added time to logs
- Added links to docs
- Added GetAuthorizationCode method (thanks to @Jibek100)
Example:
greenAPI.account.getAuthorizationCode(11001234567)Added new methods
Fixes
- Fixed workflows
- Fixed UploadFile method logging
Enhancements
- Updated docs
- Updated examples
- Updated tests
Features
- Added Python 3.12 support
- Added GetWaSettings method (thanks to @andreyMalyshkin)
Example:
greenAPI.sending.getWaSettings()- Added SendPoll method (thanks to @Jibek100)
Example:
greenAPI.sending.sendPoll(
"11001234567@c.us",
"Please choose a color:",
[
{"optionName": "Red"},
{"optionName": "Green"},
{"optionName": "Blue"}
]
)Added logger
Fixes
- Fixed webhook connection
Enhancements
- Updated examples
Features
-
Added debug mode
In debug mode you can see data received from the Green API. To enable debug mode, add
debug_modeoption withTruevalue
greenAPI = API.GreenAPI(
"", "", debug_mode=True
)-
Added
raise_errorsoptionIf the option is enabled, it will be raised when an error is received
greenAPI = API.GreenAPI(
"", "", raise_errors=True
)